replaced iconElement with image property
This commit is contained in:
1 parent
6e5898bb85
commit
4805b70c14
1 file changed
+3
-3
@@ -35,7 +35,7 @@
|
|||||||
Width="{TemplateBinding ImageWidth}"
|
Width="{TemplateBinding ImageWidth}"
|
||||||
Height="{TemplateBinding ImageHeight}"
|
Height="{TemplateBinding ImageHeight}"
|
||||||
Margin="15,0,0,0"
|
Margin="15,0,0,0"
|
||||||
Data="{TemplateBinding Image}"
|
Data="{TemplateBinding controls:IconElement.Geometry}"
|
||||||
Fill="{TemplateBinding Foreground}"
|
Fill="{TemplateBinding Foreground}"
|
||||||
Stretch="Fill" />
|
Stretch="Fill" />
|
||||||
</Border>
|
</Border>
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsEnabled" Value="False" />
|
<Trigger Property="IsEnabled" Value="False" />
|
||||||
<Trigger Property="IsPressed" Value="True" />
|
<Trigger Property="IsPressed" Value="True" />
|
||||||
<Trigger Property="Image" Value="{x:Null}">
|
<Trigger Property="controls:IconElement.Geometry" Value="{x:Null}">
|
||||||
<Setter Property="Visibility" Value="Collapsed" TargetName="img"/>
|
<Setter Property="Visibility" Value="Collapsed" TargetName="img"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsChecked" Value="True">
|
<Trigger Property="IsChecked" Value="True">
|
||||||
@@ -95,4 +95,4 @@
|
|||||||
<Style x:Key="RadioGroupItemVerticalLast" BasedOn="{StaticResource RadioGroupItemBaseStyle}" TargetType="RadioButton">
|
<Style x:Key="RadioGroupItemVerticalLast" BasedOn="{StaticResource RadioGroupItemBaseStyle}" TargetType="RadioButton">
|
||||||
<Setter Property="controls:BorderElement.CornerRadius" Value="0,0,4,4"/>
|
<Setter Property="controls:BorderElement.CornerRadius" Value="0,0,4,4"/>
|
||||||
</Style>
|
</Style>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
Reference in new issue
Block a user