|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls">
-
- <!--#region 右斜边按钮-->
- <Style x:Key="BeveledRadioButtonStyle" TargetType="{x:Type RadioButton}">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Width" Value="100" />
- <Setter Property="Height" Value="30" />
- <Setter Property="IsChecked" Value="False" />
- <Setter Property="FontSize" Value="13" />
- <Setter Property="Foreground" Value="#ddd" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid x:Name="gr" SnapsToDevicePixels="True">
-
- <pry:BeveledButton
- x:Name="bb"
- FillColor="#4B8EC4"
- IsParallelogram="False"
- StrokeThickness="1" />
-
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="0,0,10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="bb" Property="FillColor" Value="#55007acc" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <!--#region 右斜边按钮1-->
- <Style x:Key="Beveledcheck" TargetType="{x:Type CheckBox}">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Width" Value="100" />
- <Setter Property="Height" Value="30" />
- <Setter Property="IsChecked" Value="False" />
- <Setter Property="FontSize" Value="13" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type CheckBox}">
- <Grid x:Name="gr" SnapsToDevicePixels="True">
-
- <pry:BeveledButton
- x:Name="bb"
- FillColor="#4B8EC4"
- IsParallelogram="False"
- StrokeThickness="1" />
-
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="0,0,10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="bb" Property="FillColor" Value="#4B8EC4" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="bb" Property="FillColor" Value="#50EB53" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <!--#region 平行四边形按钮-->
- <Style x:Key="ParallelogramRadioButtonStyle" TargetType="{x:Type RadioButton}">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Width" Value="100" />
- <Setter Property="IsChecked" Value="False" />
- <Setter Property="FontSize" Value="13" />
- <Setter Property="Foreground" Value="#ddd" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid SnapsToDevicePixels="True">
-
- <pry:BeveledButton
- x:Name="bb"
- FillColor="#4B8EC4"
- IsParallelogram="True"
- StrokeThickness="1" />
-
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="0,0,10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="bb" Property="FillColor" Value="#55007acc" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <!--#region 长方形按钮-->
- <Style x:Key="RectangleRadioButtonStyle" TargetType="{x:Type RadioButton}">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Width" Value="100" />
- <Setter Property="IsChecked" Value="False" />
- <Setter Property="FontSize" Value="16" />
- <Setter Property="Foreground" Value="#ff2AB2E7" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid SnapsToDevicePixels="True">
-
- <Border
- x:Name="bb"
- BorderBrush="#4B8EC4"
- BorderThickness="0,0,0,2" />
-
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <!--<Setter TargetName="bb" Property="Background" Value="#4B8EC4" />-->
- <Setter TargetName="bb" Property="Visibility" Value="Visible" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="bb" Property="Visibility" Value="Hidden" />
- <!--<Setter TargetName="bb" Property="Background" Value="Transparent" />-->
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <!--#region 长方形左侧按钮-->
- <Style x:Key="RectangleLeftRadioButtonStyle" TargetType="{x:Type RadioButton}">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Width" Value="100" />
- <Setter Property="IsChecked" Value="False" />
- <Setter Property="FontSize" Value="16" />
- <Setter Property="Foreground" Value="#ff2AB2E7" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid SnapsToDevicePixels="True">
-
- <Border x:Name="bb">
- <Border.Background>
- <ImageBrush ImageSource="../Image/leftImageSub.png" />
- </Border.Background>
- </Border>
-
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="bb" Property="Visibility" Value="Visible" />
- <!--<Setter TargetName="bb" Property="Background" Value="#4B8EC4" />-->
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="bb" Property="Visibility" Value="Hidden" />
- <!--<Setter TargetName="bb" Property="Background" Value="Transparent" />-->
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <!--#region 长方形左侧按钮-->
- <Style x:Key="MenuRadioButtonStyle" TargetType="{x:Type RadioButton}">
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Width" Value="130" />
- <Setter Property="IsChecked" Value="False" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid SnapsToDevicePixels="True">
- <Image x:Name="im" />
-
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="im" Property="Source" Value="../Image/窗体样式/Tab/Tab4_Select.png" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="im" Property="Source" Value="../Image/窗体样式/Tab/Tab4_No.png" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
- </ResourceDictionary>
|