|
@@ -0,0 +1,100 @@
|
|
|
+<UserControl x:Class="ConfigFileManager.Controls.ConfigFilePlot"
|
|
|
+ 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:local="clr-namespace:ConfigFileManager.Controls"
|
|
|
+ mc:Ignorable="d"
|
|
|
+ x:Name="This"
|
|
|
+ d:DesignHeight="450" d:DesignWidth="800">
|
|
|
+ <UserControl.Resources>
|
|
|
+ <ResourceDictionary Source="/ConfigFileManager;component/Resources.xaml"/>
|
|
|
+ </UserControl.Resources>
|
|
|
+ <Border BorderBrush="DarkGray" Background="#f2f2f2" CornerRadius="16" BorderThickness="1" Margin="8" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
+ <Grid Margin="16,8" VerticalAlignment="Top">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="120"/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
+ <RowDefinition Height="16"/>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition Height="2"/>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition Height="2"/>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition Height="2"/>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition Height="2"/>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Grid.Row="0" FontSize="14" FontWeight="Bold" Text="{Binding ElementName=This,Path=DeviceInfo.DeviceModel}"/>
|
|
|
+ <TextBlock Grid.Row="2" VerticalAlignment="Center" Text="{Binding ElementName=This,Path=DeviceInfo.DeviceSubModel}"/>
|
|
|
+
|
|
|
+ <TextBlock Grid.Row="4" VerticalAlignment="Center" Text="{Binding ElementName=This,Path=DeviceInfo.DeviceName}"/>
|
|
|
+ <TextBlock Grid.Row="6" VerticalAlignment="Center" Text="{Binding ElementName=This,Path=DeviceInfo.Position}"/>
|
|
|
+ <TextBlock Grid.Row="8" VerticalAlignment="Center" Text="{Binding ElementName=This,Path=DeviceInfo.SoftwareVersion}"/>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Grid.Column="1" VerticalAlignment="Center">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <CheckBox VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
+ <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition Height="8"/>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Image Source="{StaticResource Icon_File}" Height="48"></Image>
|
|
|
+ <TextBlock Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center">Configs</TextBlock>
|
|
|
+ </Grid>
|
|
|
+ </CheckBox>
|
|
|
+
|
|
|
+ <CheckBox Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
+ <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ <RowDefinition Height="8"/>
|
|
|
+ <RowDefinition Height="auto"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Image Source="{StaticResource Icon_File}" Height="48"></Image>
|
|
|
+ <TextBlock Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center">Recipes</TextBlock>
|
|
|
+ </Grid>
|
|
|
+ </CheckBox>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Grid.Row="2" Grid.ColumnSpan="3">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="60"/>
|
|
|
+ <ColumnDefinition Width="8"/>
|
|
|
+ <ColumnDefinition Width="60"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="auto"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <Button Grid.Column="0" Background="Transparent"
|
|
|
+ BorderBrush="{StaticResource ThemeColor}" TextElement.Foreground="{StaticResource ThemeColor}"
|
|
|
+ Command="{Binding ElementName=This, Path=UpdateCommand}"
|
|
|
+ CommandParameter="{Binding ElementName=This, Path=DeviceInfo}">更新</Button>
|
|
|
+ <Button Grid.Column="2" Background="Transparent"
|
|
|
+ BorderBrush="{StaticResource ThemeColor}" TextElement.Foreground="{StaticResource ThemeColor}"
|
|
|
+ Command="{Binding ElementName=This,Path=MigrateCommand}"
|
|
|
+ CommandParameter="{Binding ElementName=This, Path=DeviceInfo}">迁移</Button>
|
|
|
+ <StackPanel Grid.Column="4">
|
|
|
+ <TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Text="更新时间:"></TextBlock>
|
|
|
+ <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Text="2024-06-24 12:23:33"></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+</UserControl>
|