aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Storage/TaskBarItems/StorageTaskBarItemView.xaml
blob: dc63949a0c60402ecf3743e05b975f5c226c8774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<UserControl x:Class="Tango.PPC.Storage.TaskBarItems.StorageTaskBarItemView"
             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" 
             xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
             xmlns:local="clr-namespace:Tango.PPC.Storage.TaskBarItems"
             mc:Ignorable="d" 
             d:DesignHeight="20" d:DesignWidth="20" d:DataContext="{d:DesignInstance Type=local:StorageTaskBarItem, IsDesignTimeCreatable=False}">
    <Grid>
        <touch:TouchIcon Width="20" Height="20" Icon="HddSolid">
            <touch:TouchIcon.Style>
                <Style TargetType="touch:TouchIcon" BasedOn="{StaticResource {x:Type touch:TouchIcon}}">
                    <Setter Property="Foreground" Value="{StaticResource TangoGrayBrush}"></Setter>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding StorageProvider.IsConnected}" Value="True">
                            <Setter Property="Foreground" Value="{StaticResource TangoSuccessBrush}"></Setter>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </touch:TouchIcon.Style>
        </touch:TouchIcon>
    </Grid>
</UserControl>