aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Visuals/AnalogSwitch/AnalogSwitch.xaml
blob: c7ae4fe57dd5de396d94540605529744df536022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<UserControl x:Class="Tango.Visuals.AnalogSwitch"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="120" d:DesignWidth="70">
    <Grid>
        <Image x:Name="imgOFF" Source="../Images/off.png" RenderOptions.BitmapScalingMode="Fant"></Image>
        <Image x:Name="imgON" Source="../Images/on.png" RenderOptions.BitmapScalingMode="Fant" Visibility="Hidden"></Image>
    </Grid>
</UserControl>
ol},Path=CornerRadius,FallbackValue=0}"></Setter> <Setter Property="Effect" Value="{x:Null}"></Setter> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=local:ITouchControl},Path=EnableDropShadow}" Value="True"> <Setter Property="Effect"> <Setter.Value> <DropShadowEffect BlurRadius="{Binding RelativeSource={RelativeSource AncestorType=local:ITouchControl},Path=BlurRadius,FallbackValue=0}" ShadowDepth="{Binding RelativeSource={RelativeSource AncestorType=local:ITouchControl},Path=ShadowDepth,FallbackValue=0}" Color="{Binding RelativeSource={RelativeSource AncestorType=local:ITouchControl},Path=ShadowColor}" /> </Setter.Value> </Setter> </DataTrigger> </Style.Triggers> </Style> <Style TargetType="Border" x:Key="TangoTouchBorder"> <Setter Property="Background" Value="{StaticResource TangoPrimaryBackgroundBrush}"></Setter> <Setter Property="CornerRadius" Value="3"></Setter> <Setter Property="Effect"> <Setter.Value> <DropShadowEffect Color="{StaticResource TangoDropShadowColor}" ShadowDepth="0" /> </Setter.Value> </Setter> </Style> </ResourceDictionary>