aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Dialogs/PowerEurekaView.xaml
blob: 3ef594046f186cf4586050dffd1b4cc9a44cdffa (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
56
57
58
59
60
61
62
63
64
65
66
<UserControl x:Class="Tango.PPC.UI.Dialogs.PowerEurekaView"
             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" 
             Width="500" Height="625"
             Background="{StaticResource TangoPrimaryBackgroundBrush}"  d:DesignHeight="555" d:DesignWidth="500"  d:DataContext="{d:DesignInstance Type=local:PowerEurekaViewVM, IsDesignTimeCreatable=False}">
    <UserControl.Resources>
        
        <Style TargetType="touch:TouchButton" >
            <Setter Property="Foreground" Value="{StaticResource TangoLightForegroundBrush}"></Setter>
            <Setter Property="Background" Value="{StaticResource TangoPrimaryAccentBrush}"/>
            <Setter Property="Height" Value="50"/>
            <Setter Property="Width" Value="165"/>
            <Setter Property="CornerRadius" Value="30"/>
            <Setter Property="EnableDropShadow" Value="False"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="FontSize" Value="18"/>
            <Style.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="Foreground" Value="{StaticResource TangoDisabledForegroundBrush}"></Setter>
                    <Setter Property="Background" Value="{StaticResource TangoDisabledBackgroundBrush}"></Setter>
                </Trigger>
            </Style.Triggers>
        </Style>
        
    </UserControl.Resources>
    <Grid>
       
            <Border BorderBrush="{StaticResource TangoMidAccentBrush}" Margin="-24" CornerRadius="40" BorderThickness="1" Background="{StaticResource TangoPrimaryBackgroundBrush}">
            <StackPanel Orientation="Vertical" HorizontalAlignment="Center" Margin="10">
                <DockPanel  VerticalAlignment="Top" Margin="0 20 0 18" Width="470">
                    <touch:TouchIconButton DockPanel.Dock="Right" VerticalAlignment="Center"  Height="25" Width="25"  Command="{Binding CloseCommand}"  Foreground="{StaticResource TangoDarkForegroundBrush}" RippleBrush="{StaticResource TangoRippleDarkBrush}" Icon="Close"  HorizontalAlignment="Right" />
                    <TextBlock FontSize="{StaticResource TangoButtonFontSize}" FontWeight="SemiBold" HorizontalAlignment="Center"> Power</TextBlock>
                </DockPanel>
                <UniformGrid Rows="3" >
                    <Grid  VerticalAlignment="Top" Margin="0 30 0 0">
                        <Image Source="../Images/Menu/AppPower_image.png" Stretch="UniformToFill"  HorizontalAlignment="Left" Width="120" VerticalAlignment="Center" Margin="0 0 0 0"/>
                        <touch:TouchButton Margin="0" Command="{Binding MinimizeCommand}">Minimize</touch:TouchButton>
                    </Grid>
                    <touch:TouchButton  Margin="0 35 0 0"  Command="{Binding RestartTabletCommand}">Restart UI</touch:TouchButton>
                    <touch:TouchButton  Margin="0 35 0 0" Command="{Binding CloseAppCommand}">Close</touch:TouchButton>
                </UniformGrid>
                
                <Border Height="2" Width="380" Background="{StaticResource TangoLightBorderBrush}"  VerticalAlignment="Bottom"  Margin="0 36 0 0" CornerRadius="2"></Border>

                <UniformGrid Rows="3">
                    <Grid  HorizontalAlignment="Center" Width="470" VerticalAlignment="Top" Margin="0 30 0 0">
                        <Image Source="../Images/Menu/Power_image.png" Stretch="UniformToFill" VerticalAlignment="Center" HorizontalAlignment="Left"  Height="50" Width="120"/>
                        <touch:TouchButton Margin="0" Command="{Binding StandByCommand}" HorizontalAlignment="Center">Power Save</touch:TouchButton>
                    </Grid>
                    <touch:TouchButton Margin="0 35 0 0" Command="{Binding RestartCommand}">Restart FW</touch:TouchButton>
                    <touch:TouchButton Margin="0 35 0 0" Content="Turn Off" Command="{Binding TurnOffCommand}"  ></touch:TouchButton>
                    
                </UniformGrid>

            </StackPanel>

            
        </Border>
            
    </Grid>
</UserControl>