| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <UserControl
- x:Class="FurnaceUI.Views.Parameter.BackUpView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:cal="http://www.caliburn.org"
- xmlns:converter1="clr-namespace:Aitex.Core.UI.Converters;assembly=MECF.Framework.UI.Core"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:usercontrols="clr-namespace:MECF.Framework.UI.Client.ClientBase.UserControls;assembly=MECF.Framework.UI.Client"
- d:DesignHeight="700"
- d:DesignWidth="1000"
- mc:Ignorable="d">
- <UserControl.Resources>
- <Style BasedOn="{StaticResource ExModifyScrollBar}" TargetType="ScrollBar"/>
- <converter1:BoolToBoolReverseConverter x:Key="BoolToBoolReverseConverter"/>
- </UserControl.Resources>
- <Grid>
- <Grid IsEnabled="{Binding BusyIndicatorVisibility, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource BoolToBoolReverseConverter}}">
- <Grid.RowDefinitions>
- <RowDefinition Height="65"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Border>
- <StackPanel Margin="10,10,0,0" Orientation="Horizontal">
- <Button
- Width="150"
- Height="50"
- Content="BackUp"
- FontFamily="Arial"
- FontSize="16"
- Foreground="{DynamicResource FG_Black}"
- IsEnabled="{Binding IsAllEnable, UpdateSourceTrigger=PropertyChanged}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="BackUpClick"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- <Button
- Width="150"
- Height="50"
- Margin="30,0,0,0"
- Command="{Binding CompareCommand}"
- Content="Compare"
- FontFamily="Arial"
- FontSize="16"
- Foreground="{DynamicResource FG_Black}"/>
- <Button
- Width="150"
- Height="50"
- Margin="30,0,0,0"
- Command="{Binding RollBackCommand}"
- Content="RollBack"
- FontFamily="Arial"
- FontSize="16"
- Foreground="{DynamicResource FG_Black}"
- IsEnabled="{Binding IsAllEnable, UpdateSourceTrigger=PropertyChanged}"/>
- <Button
- Width="150"
- Height="50"
- Margin="30,0,0,0"
- Content="Create ZIP"
- FontFamily="Arial"
- FontSize="16"
- Foreground="{DynamicResource FG_Black}"
- IsEnabled="{Binding IsAllEnable, UpdateSourceTrigger=PropertyChanged}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="CreateZIP"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- </StackPanel>
- </Border>
- <Border Grid.Row="1">
- <DataGrid
- Name="HTAUX"
- Grid.Row="1"
- Grid.Column="0"
- Grid.ColumnSpan="4"
- Height="700"
- Margin="10,0,25,0"
- HorizontalAlignment="Left"
- HorizontalContentAlignment="Stretch"
- AutoGenerateColumns="False"
- CanUserAddRows="False"
- CanUserReorderColumns="False"
- CanUserSortColumns="False"
- FontSize="14"
- IsReadOnly="True"
- ItemsSource="{Binding HistoryTableDatas, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
- ScrollViewer.CanContentScroll="True"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- SelectedItem="{Binding SelectedItemHistory}"
- VirtualizingStackPanel.ScrollUnit="Pixel"
- Visibility="{Binding GridHistoryVisibility}">
- <DataGrid.Columns>
- <DataGridCheckBoxColumn Binding="{Binding IsSelect, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Header="IsSelected">
- <DataGridCheckBoxColumn.EditingElementStyle>
- <Style TargetType="CheckBox">
- <Setter Property="LayoutTransform">
- <Setter.Value>
- <ScaleTransform ScaleX="3.0" ScaleY="3.0"/>
- </Setter.Value>
- </Setter>
- </Style>
- </DataGridCheckBoxColumn.EditingElementStyle>
- <DataGridCheckBoxColumn.ElementStyle>
- <Style TargetType="CheckBox">
- <Setter Property="LayoutTransform">
- <Setter.Value>
- <ScaleTransform ScaleX="3.0" ScaleY="3.0"/>
- </Setter.Value>
- </Setter>
- </Style>
- </DataGridCheckBoxColumn.ElementStyle>
- </DataGridCheckBoxColumn>
- <DataGridTemplateColumn
- Width="300"
- Header="File Name"
- IsReadOnly="True">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock
- Width="auto"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- IsEnabled="False"
- Text="{Binding Name}"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn
- Width="300"
- Header="Operating Time"
- IsReadOnly="True">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- IsEnabled="False"
- Text="{Binding ValueStr}"/>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- </Border>
- </Grid>
- <usercontrols:BusyIndicator
- Canvas.Bottom="5"
- Width="Auto"
- Height="Auto"
- Padding="20,10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Center"
- Panel.ZIndex="13"
- Background="{StaticResource Tab_BG}"
- BorderBrush="Gray"
- BorderThickness="3"
- Message="{Binding BusyIndicatorContent}"
- Visibility="{Binding BusyIndicatorVisibility, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource bool2VisibilityConverter}}"/>
- </Grid>
- </UserControl>
|