ConfigFilePlot.xaml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <UserControl x:Class="ConfigFileManager.Controls.ConfigFilePlot"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ConfigFileManager.Controls"
  7. mc:Ignorable="d"
  8. x:Name="This"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <UserControl.Resources>
  11. <ResourceDictionary Source="/ConfigFileManager;component/Resources.xaml"/>
  12. </UserControl.Resources>
  13. <Border BorderBrush="DarkGray" Background="#f2f2f2" CornerRadius="16" BorderThickness="1" Margin="8" VerticalAlignment="Center" HorizontalAlignment="Center">
  14. <Grid Margin="16,8" VerticalAlignment="Top">
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="120"/>
  17. <ColumnDefinition/>
  18. </Grid.ColumnDefinitions>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="*"/>
  21. <RowDefinition Height="16"/>
  22. <RowDefinition Height="auto"/>
  23. </Grid.RowDefinitions>
  24. <Grid>
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="auto"/>
  27. <RowDefinition Height="2"/>
  28. <RowDefinition Height="auto"/>
  29. <RowDefinition Height="2"/>
  30. <RowDefinition Height="auto"/>
  31. <RowDefinition Height="2"/>
  32. <RowDefinition Height="auto"/>
  33. <RowDefinition Height="2"/>
  34. <RowDefinition Height="auto"/>
  35. </Grid.RowDefinitions>
  36. <TextBlock Grid.Row="0" FontSize="14" FontWeight="Bold" Text="{Binding ElementName=This,Path=DeviceInfo.DeviceModel}"/>
  37. <TextBlock Grid.Row="2" VerticalAlignment="Center" Text="{Binding ElementName=This,Path=DeviceInfo.DeviceSubModel}"/>
  38. <TextBlock Grid.Row="4" VerticalAlignment="Center" Text="{Binding ElementName=This,Path=DeviceInfo.DeviceName}"/>
  39. <TextBlock Grid.Row="6" VerticalAlignment="Center" Text="{Binding ElementName=This,Path=DeviceInfo.Position}"/>
  40. <TextBlock Grid.Row="8" VerticalAlignment="Center" Text="{Binding ElementName=This,Path=DeviceInfo.SoftwareVersion}"/>
  41. </Grid>
  42. <Grid Grid.Column="1" VerticalAlignment="Center">
  43. <Grid.ColumnDefinitions>
  44. <ColumnDefinition Width="auto"/>
  45. <ColumnDefinition Width="8"/>
  46. <ColumnDefinition Width="auto"/>
  47. </Grid.ColumnDefinitions>
  48. <CheckBox VerticalAlignment="Center" HorizontalAlignment="Center">
  49. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  50. <Grid.RowDefinitions>
  51. <RowDefinition Height="auto"/>
  52. <RowDefinition Height="8"/>
  53. <RowDefinition Height="auto"/>
  54. </Grid.RowDefinitions>
  55. <Image Source="{StaticResource Icon_File}" Height="48"></Image>
  56. <TextBlock Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center">Configs</TextBlock>
  57. </Grid>
  58. </CheckBox>
  59. <CheckBox Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center">
  60. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  61. <Grid.RowDefinitions>
  62. <RowDefinition Height="auto"/>
  63. <RowDefinition Height="8"/>
  64. <RowDefinition Height="auto"/>
  65. </Grid.RowDefinitions>
  66. <Image Source="{StaticResource Icon_File}" Height="48"></Image>
  67. <TextBlock Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center">Recipes</TextBlock>
  68. </Grid>
  69. </CheckBox>
  70. </Grid>
  71. <Grid Grid.Row="2" Grid.ColumnSpan="3">
  72. <Grid.ColumnDefinitions>
  73. <ColumnDefinition Width="60"/>
  74. <ColumnDefinition Width="8"/>
  75. <ColumnDefinition Width="60"/>
  76. <ColumnDefinition Width="*"/>
  77. <ColumnDefinition Width="auto"/>
  78. </Grid.ColumnDefinitions>
  79. <Button Grid.Column="0" Background="Transparent"
  80. BorderBrush="{StaticResource ThemeColor}" TextElement.Foreground="{StaticResource ThemeColor}"
  81. Command="{Binding ElementName=This, Path=UpdateCommand}"
  82. CommandParameter="{Binding ElementName=This, Path=DeviceInfo}">更新</Button>
  83. <Button Grid.Column="2" Background="Transparent"
  84. BorderBrush="{StaticResource ThemeColor}" TextElement.Foreground="{StaticResource ThemeColor}"
  85. Command="{Binding ElementName=This,Path=MigrateCommand}"
  86. CommandParameter="{Binding ElementName=This, Path=DeviceInfo}">迁移</Button>
  87. <StackPanel Grid.Column="4">
  88. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Text="更新时间:"></TextBlock>
  89. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Text="2024-06-24 12:23:33"></TextBlock>
  90. </StackPanel>
  91. </Grid>
  92. </Grid>
  93. </Border>
  94. </UserControl>