<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
    xmlns:icons="using:Richasy.FluentIcon.Uwp"
    xmlns:local="using:Bili.App.Controls"
    xmlns:muxc="using:Microsoft.UI.Xaml.Controls">
    <Style TargetType="local:CommonImageEx">
        <Setter Property="PlaceholderSource" Value="/Assets/img_holder_rect.png" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:CommonImageEx">
                    <controls:ImageEx
                        x:Name="Image"
                        CornerRadius="{TemplateBinding CornerRadius}"
                        DecodePixelWidth="{TemplateBinding DecodePixelWidth}"
                        EnableLazyLoading="True"
                        PlaceholderSource="{TemplateBinding PlaceholderSource}"
                        PlaceholderStretch="Uniform"
                        Source="{TemplateBinding ImageUrl}"
                        Stretch="{TemplateBinding Stretch}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
