|
@@ -0,0 +1,496 @@
|
|
|
|
|
+<Window x:Class="InkjetScale.Shell"
|
|
|
|
|
+ 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:InkjetScale"
|
|
|
|
|
+ mc:Ignorable="d"
|
|
|
|
|
+ xmlns:prism="http://prismlibrary.com/"
|
|
|
|
|
+ prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
|
|
+ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
|
+ xmlns:materialDesignColors="clr-namespace:MaterialDesignColors;assembly=MaterialDesignColors"
|
|
|
|
|
+ xmlns:wpf="clr-namespace:MaterialDesignThemes.Wpf;assembly=MaterialDesignThemes.Wpf"
|
|
|
|
|
+ xmlns:CommonString="clr-namespace:InkjetScale.Common.StringNames;assembly=InkjetScale.Common"
|
|
|
|
|
+ xmlns:c ="clr-namespace:CalcBinding;assembly=CalcBinding"
|
|
|
|
|
+ WindowStartupLocation="CenterScreen"
|
|
|
|
|
+ WindowStyle="None"
|
|
|
|
|
+ Background="{DynamicResource MaterialDesignPaper}"
|
|
|
|
|
+ FontFamily="{DynamicResource MaterialDesignFont}"
|
|
|
|
|
+ TextElement.Foreground="White"
|
|
|
|
|
+ TextElement.FontWeight="Regular"
|
|
|
|
|
+ TextElement.FontSize="13"
|
|
|
|
|
+ TextOptions.TextFormattingMode="Ideal"
|
|
|
|
|
+ TextOptions.TextRenderingMode="Auto"
|
|
|
|
|
+ Height="1080" Width="1920" Foreground="White">
|
|
|
|
|
+
|
|
|
|
|
+ <Window.Resources>
|
|
|
|
|
+ <ResourceDictionary>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <DataTemplate x:Key="listBox3DriveResource">
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="1.5*"/>
|
|
|
|
|
+ <RowDefinition/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="10, 0, 0, 0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
|
|
|
|
|
+ <TextBlock Text="{Binding Tag, StringFormat={}{0} -, Mode=OneWay}" VerticalAlignment="Center" FontWeight="Normal" Style="{StaticResource MaterialDesignHeadline6TextBlock}"
|
|
|
|
|
+ Foreground="Black"/>
|
|
|
|
|
+ <TextBlock Grid.Column="1" Text="{Binding Value1, StringFormat={}{0:0.0} %, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Foreground="Black" HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center" Margin="5 0 0 0" Style="{StaticResource MaterialDesignSubtitle1TextBlock}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
|
|
+ <ProgressBar MinHeight="20" Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="5, 0, 5, 0" Maximum="100" Minimum="0"
|
|
|
|
|
+ Value="{Binding Value1, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </DataTemplate>
|
|
|
|
|
+
|
|
|
|
|
+ </ResourceDictionary>
|
|
|
|
|
+ </Window.Resources>
|
|
|
|
|
+
|
|
|
|
|
+ <materialDesign:DialogHost Identifier="RootDialog" >
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="1.3*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="15*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0" x:Name="gridHead" Background="{DynamicResource PrimaryHueMidBrush}" >
|
|
|
|
|
+
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition Width="0.8*"/>
|
|
|
|
|
+ <ColumnDefinition Width="1.4*"/>
|
|
|
|
|
+ <ColumnDefinition Width="0.2*"/>
|
|
|
|
|
+ <ColumnDefinition Width="0.6*"/>
|
|
|
|
|
+ <ColumnDefinition Width="5*"/>
|
|
|
|
|
+ <ColumnDefinition Width="0.1*"/>
|
|
|
|
|
+ <ColumnDefinition Width="1.5*"/>
|
|
|
|
|
+ <ColumnDefinition Width="1.4*"/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="0">
|
|
|
|
|
+ <TextBlock Text="SON.220609" Margin="10,5,0,0" Background="{x:Null}" FontSize="15" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="1">
|
|
|
|
|
+
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition/>
|
|
|
|
|
+ <RowDefinition/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="AccessPoint" Foreground="Red" Margin="0,4,0,0" Width="20"
|
|
|
|
|
+ Visibility="{c:Binding !IsCam1Connected, Converter={StaticResource BooleanToVisibilityConverter}}"/>
|
|
|
|
|
+ <materialDesign:PackIcon Kind="AccessPoint" Foreground="LimeGreen" Margin="0,4,0,0" Width="20"
|
|
|
|
|
+ Visibility="{c:Binding IsCam1Connected, Converter={StaticResource BooleanToVisibilityConverter}}"/>
|
|
|
|
|
+ <TextBlock Text=" Head Align(Cam1)" FontSize="20"/>
|
|
|
|
|
+ </StackPanel>-->
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="AccessPoint" Foreground="Red" Margin="0,4,0,0" Width="20"
|
|
|
|
|
+ Visibility="{c:Binding !IsCam2Connected, Converter={StaticResource BooleanToVisibilityConverter}}"/>
|
|
|
|
|
+ <materialDesign:PackIcon Kind="AccessPoint" Foreground="LimeGreen" Margin="0,4,0,0" Width="20"
|
|
|
|
|
+ Visibility="{c:Binding IsCam2Connected, Converter={StaticResource BooleanToVisibilityConverter}}"/>
|
|
|
|
|
+ <TextBlock Text=" HeadPack Align(Cam2)" FontSize="20"/>
|
|
|
|
|
+ </StackPanel>-->
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="2">
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition/>
|
|
|
|
|
+ <RowDefinition/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <!--<TextBlock Grid.Row="0" Text=":" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
|
|
|
|
+ <TextBlock Grid.Row="1" Text=":" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center" />-->
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="3">
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition/>
|
|
|
|
|
+ <RowDefinition/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <!--<TextBlock Text="{Binding SerialNum1, FallbackValue= 12345678 }" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" />-->
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <!--<TextBlock Text="{Binding SerialNum2, FallbackValue= 12345678 }" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" />-->
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="4">
|
|
|
|
|
+ <Label Content="Inkjet Scale" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="35" />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="5">
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="6">
|
|
|
|
|
+
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Left" >
|
|
|
|
|
+ <TextBlock FontSize="22" Margin="10,0,0,0"><Run Text="ID : "/></TextBlock>
|
|
|
|
|
+ <TextBlock Text="{Binding SystemID, FallbackValue=IMS}" FontSize="22" />
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
|
|
|
|
+ <materialDesign:PackIcon HorizontalContentAlignment="Left" Kind="Timetable" VerticalAlignment="Stretch" HorizontalAlignment="Left" Height="24" Width="auto" />
|
|
|
|
|
+ <TextBlock Text="{Binding CurrentTime, FallbackValue=2020-02-24 13:09:33, StringFormat=' \{0:yyyy-MM-dd HH:mm:ss\}'}" TextAlignment="Left" VerticalAlignment="Center" FontSize="20" Margin="6,0,0,0"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="7">
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition/>
|
|
|
|
|
+ <RowDefinition/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1" Background="{DynamicResource PrimaryHueDarkBrush}">
|
|
|
|
|
+
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="0">
|
|
|
|
|
+ <Button Background="{x:Null}" Height="Auto" HorizontalAlignment="Center" BorderThickness="0" Command="{Binding NavigateCommand}" >
|
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="Scale" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0" Height="25" Width="auto"/>
|
|
|
|
|
+ <TextBlock Text="Scale" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="25"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="1">
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="2">
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="3">
|
|
|
|
|
+ <!--<Border CornerRadius="10" Background="{DynamicResource PrimaryHueDarkBrush}" BorderBrush="Gainsboro" Padding="5" BorderThickness="2">
|
|
|
|
|
+ <Button Background="{x:Null}" Height="Auto" BorderThickness="0" Command="{Binding NavigateCommand}" CommandParameter="{x:Static Common:ViewNames.InterfaceView}">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="ApplicationSettings" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0" Height="25" Width="auto"/>
|
|
|
|
|
+ <TextBlock Text="I/O" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="25"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ </Border>-->
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="4">
|
|
|
|
|
+ <!--<Border CornerRadius="10" Background="{DynamicResource PrimaryHueDarkBrush}" BorderBrush="Gainsboro" Padding="5" BorderThickness="2">
|
|
|
|
|
+ <Button Background="{x:Null}" Height="Auto" BorderThickness="0" Command="{Binding NavigateCommand}" CommandParameter="{x:Static Common:ViewNames.LogView}">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="PagePreviousOutline" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0" Height="25" Width="auto"/>
|
|
|
|
|
+ <TextBlock Text="Log" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="25"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ </Border>-->
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="5">
|
|
|
|
|
+ <!--<Border CornerRadius="10" Background="{DynamicResource PrimaryHueDarkBrush}" BorderBrush="Gainsboro" Padding="5" BorderThickness="2">
|
|
|
|
|
+ <Button Background="{x:Null}" Height="Auto" BorderThickness="0" Command="{Binding NavigateCommand}" CommandParameter="{x:Static Common:ViewNames.SettingView}">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="SettingsTransferOutline" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0" Height="25" Width="auto"/>
|
|
|
|
|
+ <TextBlock Text="Setting" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="25"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ </Border>-->
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="6">
|
|
|
|
|
+
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ <ColumnDefinition/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="0">
|
|
|
|
|
+ <Button Background="{x:Null}" Height="Auto" BorderThickness="0" Command="{Binding MinCommand}" >
|
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="CreditCardMinusOutline" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0" Height="25" Width="auto"/>
|
|
|
|
|
+ <TextBlock Text="Min" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="25"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="1">
|
|
|
|
|
+ <Button Background="{x:Null}" Height="Auto" BorderThickness="0" Command="{Binding ExitCommand}" >
|
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
|
|
+ <materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0" Height="25" Width="auto"/>
|
|
|
|
|
+ <TextBlock Text="Exit" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="25"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="2" Background="{DynamicResource PrimaryHueLightBrush}">
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <!--<ColumnDefinition Width="*"/>-->
|
|
|
|
|
+ <ColumnDefinition Width="6*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <!--<Grid Grid.Column="0">
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="6*"/>
|
|
|
|
|
+ <RowDefinition Height="0.01*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <ContentControl prism:RegionManager.RegionName="{x:Static Common:RegionNames.InterfaceRegion}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>-->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="0">
|
|
|
|
|
+ <ContentControl prism:RegionManager.RegionName="{x:Static CommonString:RegionNames.MainRegion}" Width="auto" Height="auto"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Column="1">
|
|
|
|
|
+
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="2*"/>
|
|
|
|
|
+ <RowDefinition Height="2.5*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+
|
|
|
|
|
+ <Border BorderBrush="#FF323232" Grid.Row="0" CornerRadius="5" BorderThickness="2" Margin="2" Background="#FFF0F0F0">
|
|
|
|
|
+
|
|
|
|
|
+ <materialDesign:Card Background="#FFF0F0F0" Foreground="{DynamicResource PrimaryHueLightForegroundBrush}" Padding="8" Margin="5">
|
|
|
|
|
+
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="6"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <TextBlock Text="Current Model" FontSize="25" Style="{DynamicResource MaterialDesignHeadline5TextBlock}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <Separator />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="2">
|
|
|
|
|
+ <TextBlock Grid.Row="2" FontSize="25" Text="{Binding CurrentModelName, FallbackValue=DefaultModel}" Style="{DynamicResource MaterialDesignBody2TextBlock}" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{DynamicResource PrimaryHueMidBrush}" FontWeight="Bold"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </materialDesign:Card>
|
|
|
|
|
+
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+
|
|
|
|
|
+ <Border BorderBrush="#FF323232" Grid.Row="0" CornerRadius="5" BorderThickness="2" Margin="2" Background="#FFF0F0F0">
|
|
|
|
|
+
|
|
|
|
|
+ <materialDesign:Card Background="#FFF0F0F0" Foreground="{DynamicResource PrimaryHueLightForegroundBrush}" Padding="8" Margin="5">
|
|
|
|
|
+
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="6"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <TextBlock Text="Type" FontSize="25" Style="{DynamicResource MaterialDesignHeadline5TextBlock}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <Separator/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="2">
|
|
|
|
|
+ <TextBlock Grid.Row="2" FontSize="25" Text="Manual Align" Style="{DynamicResource MaterialDesignBody2TextBlock}" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{DynamicResource PrimaryHueMidBrush}" FontWeight="Bold"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </materialDesign:Card>
|
|
|
|
|
+
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="2">
|
|
|
|
|
+ <Border BorderBrush="#FF323232" Grid.Row="0" CornerRadius="5" BorderThickness="2" Margin="2" Background="#FFF0F0F0">
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <materialDesign:Card Background="#FFF0F0F0" Foreground="{DynamicResource PrimaryHueLightForegroundBrush}" Padding="8" Margin="5">
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="5"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <Border Grid.Row="0" CornerRadius="10" >
|
|
|
|
|
+ <TextBlock Text="Model Manager" Style="{DynamicResource MaterialDesignBody2TextBlock}" FontWeight="Bold"
|
|
|
|
|
+ Foreground="Black" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <Separator />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="2">
|
|
|
|
|
+ <Button Grid.Row="2" FontSize="16" Command="{Binding CreateModelCommand}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
|
|
|
|
|
+ Content="Edit Model"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </materialDesign:Card>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <materialDesign:Card Background="#FFF0F0F0" Foreground="{DynamicResource PrimaryHueLightForegroundBrush}" Padding="8" Margin="5">
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="6*"/>
|
|
|
|
|
+ <RowDefinition/>
|
|
|
|
|
+ <RowDefinition Height="4*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+ <Grid Grid.Row="0" >
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="1*"/>
|
|
|
|
|
+ <RowDefinition Height="2*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <StackPanel HorizontalAlignment="Left">
|
|
|
|
|
+ <Label VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14" FontWeight="Bold" >Target Model</Label>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom">
|
|
|
|
|
+ <ComboBox ItemsSource="{Binding ModelList}" SelectedItem="{Binding TargetModel}" FontSize="18" Width="auto"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Separator Grid.Row="1"/>
|
|
|
|
|
+ <Button Grid.Row="2" FontSize="16" Command="{Binding ChangeModelCommand}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Content="Change Model"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </materialDesign:Card>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="3">
|
|
|
|
|
+
|
|
|
|
|
+ <Border BorderBrush="#FF323232" CornerRadius="5" BorderThickness="2" Margin="2" Background="#FFF0F0F0">
|
|
|
|
|
+
|
|
|
|
|
+ <materialDesign:Card Background="#FFF0F0F0" Padding="8" Margin="5">
|
|
|
|
|
+
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="2*"/>
|
|
|
|
|
+ <RowDefinition Height="0.5*"/>
|
|
|
|
|
+ <RowDefinition Height="2*"/>
|
|
|
|
|
+ <RowDefinition Height="0.5*"/>
|
|
|
|
|
+ <RowDefinition Height="6*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Border Grid.Row="0" >
|
|
|
|
|
+ <ContentControl ContentTemplate="{StaticResource listBox3DriveResource}" Content="{Binding CPUUsage}" HorizontalAlignment="Stretch"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ <Border Grid.Row="2" >
|
|
|
|
|
+ <ContentControl ContentTemplate="{StaticResource listBox3DriveResource}" Content="{Binding RAMUsage}" HorizontalAlignment="Stretch"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ <Border Grid.Row="4" >
|
|
|
|
|
+ <ItemsControl ItemTemplate="{StaticResource listBox3DriveResource}" ItemsSource="{Binding HDDDriveList}"
|
|
|
|
|
+ VerticalContentAlignment="Stretch" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </materialDesign:Card>
|
|
|
|
|
+
|
|
|
|
|
+ </Border>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ </materialDesign:DialogHost>
|
|
|
|
|
+</Window>
|