First Created a Style
<Style x:Key="RoundButtonTemplate" TargetType="Button">
<Setter Property="Background" Value="Brown"/>
<Setter Property="Foreground" Value="White"
/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border CornerRadius="15" Background="{TemplateBinding Background}"
BorderThickness="1">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center">
</ContentPresenter>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Call the style to Respective Button.
<Button Focusable="False"
Style="{StaticResource RoundButtonTemplate}"
Width="264"
Height="90"
Grid.Row="0"
Margin="0,0,0,0"
HorizontalAlignment="Center"
BorderBrush="#FFF"
Name="PasswordButton"
Click="PasswordButton_Click">
</Button>
Its really useful for my enhancement thank you
ReplyDeleteGuys i'm very new to this platform please anybody tell me clearly about this concept plssss
ReplyDeleteActualy i'm an Aeronautical Student so plsss light me up with a clear concept
This is a very bad example.
ReplyDelete