123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:customControl="clr-namespace:CyberX8_Themes.CustomControls"
- xmlns:Attach="clr-namespace:CyberX8_UI.Themes.Attach"
- >
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/CyberX8_Themes;component/Themes/Generic.xaml"/>
- </ResourceDictionary.MergedDictionaries>
- <Style TargetType="{x:Type customControl:AduRadioButtonIcon}">
- <Setter Property="Height" Value="30" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="Background" Value="White" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="FontSize" Value="16" />
- <Setter Property="FontFamily" Value="Arial" />
- <Setter Property="FontWeight" Value="DemiBold" />
- <Setter Property="Foreground" Value="White" />
- <!--<Setter Property="Opacity" Value="1" />-->
- <!--<Setter Property="Effect">
- <Setter.Value>
- <DropShadowEffect Color="LightBlue"></DropShadowEffect>
- </Setter.Value>
- </Setter>-->
- <Setter Property="Attach:IconElement.Margin" Value="15,0"/>
- <Setter Property="Attach:IconElement.Width" Value="16"/>
- <Setter Property="Margin" Value="10,0,0,0"/>
- <Setter Property="Padding" Value="0" />
- <Setter Property="BorderThickness" Value="0,0,0,0"></Setter>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type customControl:AduRadioButtonIcon}">
- <Border
- x:Name="templateRoot"
- Background="{Binding DefaultBackground, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{TemplateBinding Margin}"
- Padding="{TemplateBinding Padding}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="5">
- <StackPanel
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Orientation="Horizontal"
- Margin="0"
- SnapsToDevicePixels="True">
- <Border>
- <Path x:Name="Icon" VerticalAlignment="Center" Width="{TemplateBinding Attach:IconElement.Width}" Margin="0,0,10,0" Fill="{TemplateBinding Foreground}" Stretch="Uniform" Data="{TemplateBinding Attach:IconElement.PathData}" />
- </Border>
- <TextBlock
- x:Name="contentPresenter"
- Grid.Column="1"
- Foreground="{TemplateBinding Foreground}"
- Margin="0,0,3,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Text="{TemplateBinding Content}"
- Padding="0,0,0,0"
- Focusable="False"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
- <!--<Trigger Property="IsMouseOver" Value="True" >
- <Setter TargetName="templateRoot" Property="Opacity" Value=".8" />
- </Trigger>-->
- <Trigger Property="IsEnabled" Value="False" />
- <Trigger Property="IsPressed" Value="True" />
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="templateRoot" Property="Background" Value="{Binding SelectBackground, RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
- <!--<Setter Property="Opacity" Value="1" />-->
- <Setter Property="IsEnabled" Value="False" />
- <Setter TargetName="templateRoot" Property="BorderThickness" Value="0" />
- <Setter TargetName="Icon" Property="Fill" Value="{Binding SelectColor, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- <Setter TargetName="templateRoot" Property="BorderBrush" Value="{Binding SelectColor, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- <Setter TargetName="contentPresenter" Property="Foreground" Value="{Binding SelectColor, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- <Setter Property="customControl:AduRadioButtonIcon.Effect">
- <Setter.Value>
- <DropShadowEffect Color="Black"></DropShadowEffect>
- </Setter.Value>
- </Setter>
- <!--<Setter Property="customControl:AduRadioButtonIcon.FontSize" Value="26"/>-->
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|