replaced iconElement with image property

This commit is contained in:
Mahdi Hosseini authored and GitHub committed 2018-12-06 20:25:37 +03:30
1 parent 6e5898bb85
commit 4805b70c14
1 file changed
+3 -3
+3 -3
View File
@@ -35,7 +35,7 @@
Width="{TemplateBinding ImageWidth}"
Height="{TemplateBinding ImageHeight}"
Margin="15,0,0,0"
Data="{TemplateBinding Image}"
Data="{TemplateBinding controls:IconElement.Geometry}"
Fill="{TemplateBinding Foreground}"
Stretch="Fill" />
</Border>
@@ -59,7 +59,7 @@
</Trigger>
<Trigger Property="IsEnabled" Value="False" />
<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"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
@@ -95,4 +95,4 @@
<Style x:Key="RadioGroupItemVerticalLast" BasedOn="{StaticResource RadioGroupItemBaseStyle}" TargetType="RadioButton">
<Setter Property="controls:BorderElement.CornerRadius" Value="0,0,4,4"/>
</Style>
</ResourceDictionary>
</ResourceDictionary>