maui-linux/Xamarin.Forms.Platform.WPF/Themes/FormsBitmapIcon.xaml

20 строки
933 B
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:Xamarin.Forms.Platform.WPF.Controls">
<Style TargetType="controls:FormsBitmapIcon">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="VerticalAlignment" Value="Stretch"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Height" Value="22.4"/>
<Setter Property="Width" Value="22.4"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="controls:FormsBitmapIcon">
<Image Source="{Binding UriSource, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>