aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater/MainWindow.xaml
blob: 8733d4e0c181bb0c5553e561c66a9565428d975a (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
<Window x:Class="Tango.MachineStudio.Updater.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Tango.MachineStudio.Updater"
        mc:Ignorable="d"
        Title="Machine Studio Update" Height="400" Width="700" ShowInTaskbar="False" WindowStartupLocation="CenterScreen" WindowStyle="None" ResizeMode="NoResize" Foreground="#202020">

    <Border BorderThickness="1" BorderBrush="#0288D1">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="60"/>
                <RowDefinition Height="156*"/>
            </Grid.RowDefinitions>

            <Grid Background="#0288D1">
                <Grid.Effect>
                    <DropShadowEffect BlurRadius="10" ShadowDepth="5" Direction="270" Opacity="0.5" />
                </Grid.Effect>

                <StackPanel Orientation="Horizontal" Margin="8" HorizontalAlignment="Center">
                    <Image Source="/Images/machine-trans.png" RenderOptions.BitmapScalingMode="Fant"></Image>
                    <TextBlock Foreground="White" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="23">MACHINE STUDIO</TextBlock>
                </StackPanel>
            </Grid>

            <Grid Grid.Row="1">
                <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
                    <Image Source="/Images/update.png" Width="100" />
                    <TextBlock x:Name="txtStatus" Margin="0 20 0 0" FontSize="12" Text="Updating Machine Studio..." HorizontalAlignment="Center"></TextBlock>
                    <ProgressBar x:Name="prog" Margin="0 30 0 0" Width="500" Height="10" Maximum="100" Value="0" Foreground="#0288D1"></ProgressBar>
                </StackPanel>
            </Grid>
        </Grid>
    </Border>
</Window>
quot;0" BlurRadius="20" Opacity="1" /> </Border.Effect> <TextBlock VerticalAlignment="Center" FontSize="{StaticResource TangoHeaderFontSize}" FontWeight="SemiBold">Power</TextBlock> </Border> <UniformGrid Grid.Row="1" Rows="2" Margin="20 50 20 20"> <StackPanel Margin="-90 0 0 0" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <Image Source="../Images/tablet.png" Width="256" RenderOptions.BitmapScalingMode="Fant" VerticalAlignment="Top" HorizontalAlignment="Left" /> <Grid VerticalAlignment="Top" Margin="40 0 0 0"> <StackPanel> <controls:TableGrid RowHeight="40" MakeFirstColumnVerticalAlignmentBottom="False"> <TextBlock FontWeight="SemiBold">CPU:</TextBlock> <TextBlock>38%</TextBlock> <TextBlock FontWeight="SemiBold">RAM:</TextBlock> <TextBlock>50%</TextBlock> <TextBlock FontWeight="SemiBold">UWF:</TextBlock> <TextBlock>Active</TextBlock> <TextBlock FontWeight="SemiBold">Free Space:</TextBlock> <touch:TouchProgressBar Margin="10 5 0 0" Height="10" VerticalAlignment="Top" Maximum="100" Value="60" Foreground="{StaticResource TangoSuccessBrush}" /> </controls:TableGrid> <touch:TouchButton Height="60" Margin="0 0 0 0" CornerRadius="30" Width="250" Command="{Binding RestartCommand}">RESTART</touch:TouchButton> </StackPanel> </Grid> </StackPanel> <Grid> <Rectangle VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="100 0" StrokeThickness="1" Stroke="{StaticResource TangoDividerBrush}"></Rectangle> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <Image Source="../Images/machine.png" Width="256" RenderOptions.BitmapScalingMode="Fant" VerticalAlignment="Top" HorizontalAlignment="Left" /> <Grid Margin="0 0 0 0" VerticalAlignment="Top"> <StackPanel Margin="20 0 0 0"> <controls:TableGrid RowHeight="40" MakeFirstColumnVerticalAlignmentBottom="False" HorizontalAlignment="Left"> <TextBlock FontWeight="SemiBold">Firmware Version:</TextBlock> <TextBlock Text="{Binding MachineProvider.MachineOperator.DeviceInformation.Version,TargetNullValue='N/A',FallbackValue='N/A'}"></TextBlock> <TextBlock FontWeight="SemiBold">Status:</TextBlock> <TextBlock Text="{Binding MachineProvider.MachineOperator.Status,Converter={StaticResource EnumToDescriptionConverter}}"></TextBlock> </controls:TableGrid> <UniformGrid Columns="3"> <touch:TouchButton Style="{StaticResource TangoRoundTouchButton}" Background="{StaticResource TangoErrorBrush}" Width="90" Height="90">TURN OFF</touch:TouchButton> <touch:TouchButton Margin="10 0 0 0" Style="{StaticResource TangoRoundTouchButton}" Background="{StaticResource TangoWarningBrush}" Width="90" Height="90">STAND BY</touch:TouchButton> <touch:TouchButton Margin="10 0 0 0" Style="{StaticResource TangoRoundTouchButton}" Background="{StaticResource TangoSuccessBrush}" Width="90" Height="90">GET READY</touch:TouchButton> </UniformGrid> </StackPanel> </Grid> </StackPanel> </Grid> </UniformGrid> </Grid> </UserControl>