Button

Allows the user to run a separate subroutine.


<Button Name="btnCancel" 
        Grid.Column="
        Grid.Row=""
        Grid.ColumnSpan=""
        Grid.RowSpan=""
        Content="Cancel"
        Click="btnCancel_Click"
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch"
        IsDefault="True"
        IsCancel="False"
        FontFamily="Microsoft Sans Serif"
        FontSize="12" >
</Button/>


Sizes

Standard - Height 20, Width ?
Small
Medium
Large - Height 280, Width 322


Closing

System.Windows.Window.GetWindow(this).Close(); 


Escape to Close

Button IsCancel="True" 


Margins

Left, Top, Right, Bottom


Images

Set Build Action to "Resource" not "Embedded Resource"

<Button Name="btnCancel" 
   <Image Source="Resources/Image.png"
          VerticalAlignment="Center"/>
</Button>


Arrows

Webdings 12 pt
Up - 5
Down - 6
Left - 3
Right - 4


size - (H30, W 80)




© 2017 Better Solutions Limited. All Rights Reserved. © 2017 Better Solutions Limited

Top

PrevNext