Set Padding for Button : Button Style « Windows Presentation Foundation « VB.Net Tutorial






<Window x:Class="WpfApplication1.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Canvas" Height="244" Width="242">
    <Canvas>
        <Button Canvas.Left="119" Canvas.Top="24" Name="button1" Width="70" Height="23" >Button</Button>
        <Button Canvas.Left="44" Canvas.Top="69" Name="button2">Button2 is quite wide</Button>
        <Button Canvas.Left="78" Canvas.Top="119" Name="button3" Padding="10 2" >Button</Button>
    </Canvas>
</Window>
WPF Set Padding For Button








16.8.Button Style
16.8.1.Button.Background and DrawingBrushButton.Background and DrawingBrush
16.8.2.Button with Semi-Transparent imageButton with Semi-Transparent image
16.8.3.Set Width for ButtonSet Width for Button
16.8.4.Button HorizontalAlignmentButton HorizontalAlignment
16.8.5.Button PaddingButton Padding
16.8.6.Button MarginButton Margin
16.8.7.Button Padding and HorizontalAlignmentButton Padding and HorizontalAlignment
16.8.8.Button HorizontalAlignment: StretchButton HorizontalAlignment: Stretch
16.8.9.Set BlurBitmapEffect for ButtonSet BlurBitmapEffect for Button
16.8.10.Set Padding for ButtonSet Padding for Button
16.8.11.Set Margin for ButtonSet Margin for Button
16.8.12.Fisheye Effect for ButtonFisheye Effect for Button
16.8.13.Custom Shaped ButtonCustom Shaped Button
16.8.14.Scale TransformScale Transform
16.8.15.Scale Transformate a ButtonScale Transformate a Button
16.8.16.Setting FontSize for ButtonSetting FontSize for Button