| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <Application x:Class="NetTool.Client.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:NetTool.Client"
- StartupUri="MainWindow.xaml">
- <Application.Resources>
- <Style TargetType="Button">
- <Setter Property="MinHeight" Value="32" />
- <Setter Property="Padding" Value="14,0" />
- <Setter Property="Background" Value="White" />
- <Setter Property="Foreground" Value="#333333" />
- <Setter Property="BorderBrush" Value="#D5D5D5" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="FontSize" Value="13" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="ButtonBorder"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4"
- SnapsToDevicePixels="True">
- <ContentPresenter x:Name="ButtonContent"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- RecognizesAccessKey="True"
- TextElement.Foreground="{TemplateBinding Foreground}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="ButtonBorder" Property="BorderBrush" Value="#BEBEBE" />
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="ButtonBorder" Property="Opacity" Value="0.86" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Cursor" Value="Arrow" />
- <Setter TargetName="ButtonBorder" Property="Background" Value="#F5F5F5" />
- <Setter TargetName="ButtonBorder" Property="BorderBrush" Value="#DADADA" />
- <Setter TargetName="ButtonContent" Property="TextElement.Foreground" Value="#B9B9B9" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="PrimaryButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
- <Setter Property="Background" Value="#1677FF" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="BorderBrush" Value="#1677FF" />
- </Style>
- </Application.Resources>
- </Application>
|