12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:customControl="clr-namespace:Venus_Themes.CustomControls"
- xmlns:Attach="clr-namespace:Venus_UI.Themes.Attach"
- >
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/Venus_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="Silver" />
- <Setter Property="FontSize" Value="16" />
- <Setter Property="FontFamily" Value="Arial" />
- <Setter Property="FontWeight" Value="DemiBold" />
- <Setter Property="Foreground" Value="Black" />
- <Setter Property="Attach:IconElement.Margin" Value="15,0"/>
- <Setter Property="Attach:IconElement.Width" Value="16"/>
- <!--<Setter Property="Margin" Value="0,0,0,0"/>-->
- <Setter Property="Padding" Value="0" />
- <Setter Property="BorderThickness" Value="1,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="0">
- <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"
- FontSize="22"
- 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>
|