aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/FirmwareNotificationView.xaml
blob: 6951ce0ad8f6e5c505880244ffdaf1dbdb749235 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<UserControl x:Class="Tango.PPC.UI.Dialogs.FirmwareNotificationView"
             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.UI.Dialogs"
             mc:Ignorable="d" 
             Background="{StaticResource TangoPrimaryBackgroundBrush}"  d:DesignHeight="555" d:DesignWidth="560" Width="570" Height="600" d:DataContext="{d:DesignInstance Type=local:FirmwareNotificationViewVM, IsDesignTimeCreatable=False}">
    <Grid Margin="20">
        <DockPanel>
            <Grid DockPanel.Dock="Bottom">
                <touch:TouchButton HorizontalAlignment="Right" CornerRadius="25" Command="{Binding CloseCommand}" Style="{StaticResource TangoHollowButton}" Width="150" Height="50" VerticalAlignment="Bottom">CLOSE</touch:TouchButton>
            </Grid>
            <StackPanel DockPanel.Dock="Top">
                <touch:TouchIcon DockPanel.Dock="Left" MaxHeight="100">
                    <touch:TouchIcon.Style>
                        <Style TargetType="touch:TouchIcon">
                            <Setter Property="Icon" Value="Information"></Setter>
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding Type}" Value="NotifyInfo">
                                    <Setter Property="Icon" Value="Information"></Setter>
                                    <Setter Property="Foreground" Value="{StaticResource TangoDarkForegroundBrush}"></Setter>
                                </DataTrigger>
                                <DataTrigger Binding="{Binding Type}" Value="NotifySuccess">
                                    <Setter Property="Icon" Value="Check"></Setter>
                                    <Setter Property="Foreground" Value="{StaticResource TangoSuccessBrush}"></Setter>
                                </DataTrigger>
                                <DataTrigger Binding="{Binding Type}" Value="NotifyWarning">
                                    <Setter Property="Icon" Value="AlertCircleOutline"></Setter>
                                    <Setter Property="Foreground" Value="{StaticResource TangoWarningBrush}"></Setter>
                                </DataTrigger>
                                <DataTrigger Binding="{Binding Type}" Value="NotifyError">
                                    <Setter Property="Icon" Value="AlertCircleOutline"></Setter>
                                    <Setter Property="Foreground" Value="{StaticResource TangoErrorBrush}"></Setter>
                                </DataTrigger>
                                <DataTrigger Binding="{Binding Type}" Value="NotifyCritical">
                                    <Setter Property="Icon" Value="Alert"></Setter>
                                    <Setter Property="Foreground" Value="{StaticResource TangoErrorBrush}"></Setter>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </touch:TouchIcon.Style>
                </touch:TouchIcon>
                <TextBlock HorizontalAlignment="Center" Margin="0 20 0 0" FontSize="{StaticResource TangoHeaderFontSize}" Text="{Binding Title}"></TextBlock>
                <TextBlock Margin="20 10" HorizontalAlignment="Center" TextWrapping="Wrap" TextAlignment="Center" Text="{Binding Message}">

                </TextBlock>
            </StackPanel>
            <Grid>

            </Grid>
        </DockPanel>
    </Grid>
</UserControl>