aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls/TouchGifAnimation.xaml
blob: 15154125e1cbb6110c8f42748bab8bd20fce4552 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:gif="clr-namespace:Tango.AnimatedGif;assembly=Tango.AnimatedGif"
                    xmlns:local="clr-namespace:Tango.Touch.Controls">

    <Style TargetType="{x:Type local:TouchGifAnimation}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:TouchGifAnimation}">
                    <Image 
                        Stretch="{TemplateBinding Stretch}"
                        gif:ImageBehavior.AnimatedSource="{TemplateBinding Source}"
                        gif:ImageBehavior.EnableAnimation="{TemplateBinding EnableAnimation}"
                        gif:ImageBehavior.SpeedRatio="{TemplateBinding SpeedRatio}"
                        />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>