123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:cal="http://www.caliburn.org"
- xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"
- xmlns:local="clr-namespace:FurnaceUI.Views.Maintenances"
- mc:Ignorable="d" xmlns:usercontrols="clr-namespace:MECF.Framework.UI.Client.ClientBase.UserControls;assembly=MECF.Framework.UI.Client"
- xmlns:converter1="clr-namespace:Aitex.Core.UI.Converters;assembly=MECF.Framework.UI.Core"
- d:DesignHeight="700" d:DesignWidth="1000">
- <UserControl.Resources>
- <Style TargetType="ScrollBar" BasedOn="{StaticResource ExModifyScrollBar}"/>
- <converter1:BoolToBoolReverseConverter x:Key="BoolToBoolReverseConverter"/>
- </UserControl.Resources>
-
- <Grid >
- <Grid IsEnabled="{Binding BusyIndicatorVisibility,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource BoolToBoolReverseConverter}}">
- <Grid.RowDefinitions>
- <RowDefinition Height="65"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Border>
- <StackPanel Margin="10,10,0,0" Orientation="Horizontal">
- <Button IsEnabled="{Binding IsAllEnable,UpdateSourceTrigger=PropertyChanged}" Content="BackUp" Foreground="{DynamicResource FG_Black}" FontSize="16" Height="50" Width="150" FontFamily="Arial" >
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="BackUpClick">
- </cal:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- <Button Command="{Binding CompareCommand}" Margin="30,0,0,0" Content="Compare" Foreground="{DynamicResource FG_Black}" FontSize="16" Height="50" Width="150" FontFamily="Arial" >
- </Button>
- <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" >
- </Button>
- <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" >
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <cal:ActionMessage MethodName="CreateZIP">
- </cal:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- </StackPanel>
- </Border>
- <Border Grid.Row="1">
- <DataGrid
- 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}"
- ScrollViewer.CanContentScroll="True"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- HorizontalAlignment="Left"
- VirtualizingStackPanel.ScrollUnit="Pixel"
- AutoGenerateColumns="False"
- CanUserReorderColumns="False" CanUserAddRows="False"
- CanUserSortColumns="False"
- IsReadOnly="True" FontSize="14" SelectedItem="{Binding HistoryTableDatas}">
- <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 Header="File Name" Width="300" IsReadOnly="True">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock IsEnabled="False" Width="auto" Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center" />
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Header="Operating Time" Width="300" IsReadOnly="True">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock IsEnabled="False" Text="{Binding ValueStr}" VerticalAlignment="Center" HorizontalAlignment="Center" ></TextBlock>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
-
-
- </DataGrid>
- </Border>
- </Grid>
- <usercontrols:BusyIndicator
- Panel.ZIndex="13"
- HorizontalContentAlignment="Center"
- Width="Auto"
- Height="Auto"
- Padding="20,10"
- Canvas.Bottom="5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="{StaticResource Tab_BG}"
- BorderBrush="Gray"
- BorderThickness="3"
- Message="{Binding BusyIndicatorContent}"
- Visibility="{Binding BusyIndicatorVisibility,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}"
- >
- </usercontrols:BusyIndicator>
- </Grid>
- </UserControl>
|