添加项目文件。
This commit is contained in:
33
Views/Style/ButtonStyle.xaml
Normal file
33
Views/Style/ButtonStyle.xaml
Normal file
@@ -0,0 +1,33 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style x:Key="IconButtonStyle">
|
||||
|
||||
<Setter Property="Button.Background" Value="Transparent"/>
|
||||
<Setter Property="Button.BorderBrush" Value="Transparent"/>
|
||||
<Setter Property="Button.BorderThickness" Value="0"/>
|
||||
<Setter Property="Button.Foreground" Value="White"/>
|
||||
<Setter Property="Button.FontSize" Value="12"/>
|
||||
<Setter Property="Button.FontWeight" Value="Bold"/>
|
||||
<Setter Property="Button.Padding" Value="5"/>
|
||||
<Setter Property="Button.Margin" Value="5"/>
|
||||
<Setter Property="Button.Width" Value="150"/>
|
||||
<Setter Property="Button.Height" Value="50"/>
|
||||
<Setter Property="Button.HorizontalAlignment" Value="Left"/>
|
||||
<Setter Property="Button.VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="Button.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="RoundCornerButtonStyle">
|
||||
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user