BackUpView.xaml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <UserControl x:Class="FurnaceUI.Views.Parameter.BackUpView"
  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:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
  7. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  8. xmlns:cal="http://www.caliburn.org"
  9. xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"
  10. xmlns:local="clr-namespace:FurnaceUI.Views.Maintenances"
  11. mc:Ignorable="d" xmlns:usercontrols="clr-namespace:MECF.Framework.UI.Client.ClientBase.UserControls;assembly=MECF.Framework.UI.Client"
  12. xmlns:converter1="clr-namespace:Aitex.Core.UI.Converters;assembly=MECF.Framework.UI.Core"
  13. d:DesignHeight="700" d:DesignWidth="1000">
  14. <UserControl.Resources>
  15. <Style TargetType="ScrollBar" BasedOn="{StaticResource ExModifyScrollBar}"/>
  16. <converter1:BoolToBoolReverseConverter x:Key="BoolToBoolReverseConverter"/>
  17. </UserControl.Resources>
  18. <Grid >
  19. <Grid IsEnabled="{Binding BusyIndicatorVisibility,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource BoolToBoolReverseConverter}}">
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="65"></RowDefinition>
  22. <RowDefinition></RowDefinition>
  23. </Grid.RowDefinitions>
  24. <Border>
  25. <StackPanel Margin="10,10,0,0" Orientation="Horizontal">
  26. <Button IsEnabled="{Binding IsAllEnable,UpdateSourceTrigger=PropertyChanged}" Content="BackUp" Foreground="{DynamicResource FG_Black}" FontSize="16" Height="50" Width="150" FontFamily="Arial" >
  27. <i:Interaction.Triggers>
  28. <i:EventTrigger EventName="Click">
  29. <cal:ActionMessage MethodName="BackUpClick">
  30. </cal:ActionMessage>
  31. </i:EventTrigger>
  32. </i:Interaction.Triggers>
  33. </Button>
  34. <Button Command="{Binding CompareCommand}" Margin="30,0,0,0" Content="Compare" Foreground="{DynamicResource FG_Black}" FontSize="16" Height="50" Width="150" FontFamily="Arial" >
  35. </Button>
  36. <Button IsEnabled="{Binding IsAllEnable,UpdateSourceTrigger=PropertyChanged}" Command="{Binding RollBackCommand}" Margin="30,0,0,0" Content="RollBack" Foreground="{DynamicResource FG_Black}" FontSize="16" Height="50" Width="150" FontFamily="Arial" >
  37. </Button>
  38. <Button IsEnabled="{Binding IsAllEnable,UpdateSourceTrigger=PropertyChanged}" Content="Create ZIP" Margin="30,0,0,0" Foreground="{DynamicResource FG_Black}" FontSize="16" Height="50" Width="150" FontFamily="Arial" >
  39. <i:Interaction.Triggers>
  40. <i:EventTrigger EventName="Click">
  41. <cal:ActionMessage MethodName="CreateZIP">
  42. </cal:ActionMessage>
  43. </i:EventTrigger>
  44. </i:Interaction.Triggers>
  45. </Button>
  46. </StackPanel>
  47. </Border>
  48. <Border Grid.Row="1">
  49. <DataGrid
  50. Height="700" Grid.Row="1" Grid.ColumnSpan="4" Grid.Column="0" Margin="10,0,25,0" Visibility="{Binding GridHistoryVisibility}" Name="HTAUX" HorizontalContentAlignment="Stretch" ItemsSource="{Binding HistoryTableDatas,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"
  51. ScrollViewer.CanContentScroll="True"
  52. ScrollViewer.VerticalScrollBarVisibility="Auto"
  53. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  54. HorizontalAlignment="Left"
  55. VirtualizingStackPanel.ScrollUnit="Pixel"
  56. AutoGenerateColumns="False"
  57. CanUserReorderColumns="False" CanUserAddRows="False"
  58. CanUserSortColumns="False"
  59. IsReadOnly="True" FontSize="14" SelectedItem="{Binding HistoryTableDatas}">
  60. <DataGrid.Columns>
  61. <DataGridCheckBoxColumn Binding="{Binding IsSelect, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Header="IsSelected">
  62. <DataGridCheckBoxColumn.EditingElementStyle>
  63. <Style TargetType="CheckBox">
  64. <Setter Property="LayoutTransform">
  65. <Setter.Value>
  66. <ScaleTransform ScaleX="3.0" ScaleY="3.0" />
  67. </Setter.Value>
  68. </Setter>
  69. </Style>
  70. </DataGridCheckBoxColumn.EditingElementStyle>
  71. <DataGridCheckBoxColumn.ElementStyle>
  72. <Style TargetType="CheckBox">
  73. <Setter Property="LayoutTransform">
  74. <Setter.Value>
  75. <ScaleTransform ScaleX="3.0" ScaleY="3.0" />
  76. </Setter.Value>
  77. </Setter>
  78. </Style>
  79. </DataGridCheckBoxColumn.ElementStyle>
  80. </DataGridCheckBoxColumn>
  81. <DataGridTemplateColumn Header="File Name" Width="300" IsReadOnly="True">
  82. <DataGridTemplateColumn.CellTemplate>
  83. <DataTemplate>
  84. <TextBlock IsEnabled="False" Width="auto" Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center" />
  85. </DataTemplate>
  86. </DataGridTemplateColumn.CellTemplate>
  87. </DataGridTemplateColumn>
  88. <DataGridTemplateColumn Header="Operating Time" Width="300" IsReadOnly="True">
  89. <DataGridTemplateColumn.CellTemplate>
  90. <DataTemplate>
  91. <TextBlock IsEnabled="False" Text="{Binding ValueStr}" VerticalAlignment="Center" HorizontalAlignment="Center" ></TextBlock>
  92. </DataTemplate>
  93. </DataGridTemplateColumn.CellTemplate>
  94. </DataGridTemplateColumn>
  95. </DataGrid.Columns>
  96. </DataGrid>
  97. </Border>
  98. </Grid>
  99. <usercontrols:BusyIndicator
  100. Panel.ZIndex="13"
  101. HorizontalContentAlignment="Center"
  102. Width="Auto"
  103. Height="Auto"
  104. Padding="20,10"
  105. Canvas.Bottom="5"
  106. HorizontalAlignment="Center"
  107. VerticalAlignment="Center"
  108. Background="{StaticResource Tab_BG}"
  109. BorderBrush="Gray"
  110. BorderThickness="3"
  111. Message="{Binding BusyIndicatorContent}"
  112. Visibility="{Binding BusyIndicatorVisibility,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}"
  113. >
  114. </usercontrols:BusyIndicator>
  115. </Grid>
  116. </UserControl>