|
@@ -16,6 +16,8 @@
|
|
|
<Setter Property="FontFamily" Value="Arial" />
|
|
|
<Setter Property="FontWeight" Value="DemiBold" />
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
+ <Setter Property="Opacity" Value=".8" />
|
|
|
+
|
|
|
<!--<Setter Property="Effect">
|
|
|
<Setter.Value>
|
|
|
<DropShadowEffect Color="LightBlue"></DropShadowEffect>
|
|
@@ -31,14 +33,17 @@
|
|
|
<ControlTemplate TargetType="{x:Type customControl:AduRadioButtonIcon}">
|
|
|
<Border
|
|
|
x:Name="templateRoot"
|
|
|
- Background="#00FFFFFF"
|
|
|
+ Background="{Binding DefaultBackground, RelativeSource={RelativeSource Mode=TemplatedParent}}"
|
|
|
Margin="{TemplateBinding Margin}"
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
- BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ CornerRadius="5">
|
|
|
<StackPanel
|
|
|
VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
Orientation="Horizontal"
|
|
|
+ Margin="-10,0,0,0"
|
|
|
SnapsToDevicePixels="True">
|
|
|
<Border>
|
|
|
<Path x:Name="Icon" VerticalAlignment="Center" Width="{TemplateBinding Attach:IconElement.Width}" Margin="{TemplateBinding Attach:IconElement.Margin}" Fill="{TemplateBinding Foreground}" Stretch="Uniform" Data="{TemplateBinding Attach:IconElement.PathData}" />
|
|
@@ -57,14 +62,14 @@
|
|
|
</StackPanel>
|
|
|
</Border>
|
|
|
<ControlTemplate.Triggers>
|
|
|
- <Trigger Property="IsMouseOver" Value="True" >
|
|
|
+ <!--<Trigger Property="IsMouseOver" Value="True" >
|
|
|
<Setter TargetName="templateRoot" Property="Opacity" Value=".8" />
|
|
|
- </Trigger>
|
|
|
+ </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 TargetName="templateRoot" Property="Opacity" Value=".8" />
|
|
|
+ <Setter TargetName="templateRoot" Property="Opacity" Value="1" />
|
|
|
<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}}" />
|
|
@@ -74,7 +79,7 @@
|
|
|
<DropShadowEffect Color="Black"></DropShadowEffect>
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
- <Setter Property="customControl:AduRadioButtonIcon.FontSize" Value="26"/>
|
|
|
+ <!--<Setter Property="customControl:AduRadioButtonIcon.FontSize" Value="26"/>-->
|
|
|
</Trigger>
|
|
|
</ControlTemplate.Triggers>
|
|
|
</ControlTemplate>
|