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

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="../Controls/TouchButton.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <Style TargetType="{x:Type local:TouchImageButton}" BasedOn="{StaticResource {x:Type local:TouchButton}}">
        <Setter Property="Width" Value="{Binding RelativeSource={RelativeSource Self},Path=ActualHeight}"></Setter>
        <Setter Property="Background" Value="Transparent"></Setter>
        <Setter Property="RippleBrush" Value="{StaticResource TangoRippleDarkBrush}"></Setter>
        <Setter Property="EnableDropShadow" Value="False"></Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Image Source="{Binding RelativeSource={RelativeSource AncestorType=local:TouchImageButton},Path=Image}"></Image>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
n serializer. /// </summary> public interface ISerializableEntity { /// <summary> /// Gets the default serialization strategy. /// </summary> /// <param name="flags">The serialization flags.</param> /// <returns></returns> EntitySerializationStrategy GetDefaultSerializationStrategy(EntitySerializationFlags flags); /// <summary> /// Converts the entity to a json string using the specified serialization strategy. /// </summary> /// <param name="serializationStrategy">The serialization strategy.</param> /// <param name="flags">The flags.</param> /// <returns></returns> String ToJson(EntitySerializationStrategy serializationStrategy, EntitySerializationFlags flags); /// <summary> /// Converts the entity to a json string using the default serialization strategy. /// </summary> /// <returns></returns> String ToJson(); /// <summary> /// Merges the specified json string into this entity. /// </summary> /// <param name="json">The json.</param> void PopulateFromJson(String json); } }