123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719 |
- <UserControl x:Class="Aitex.Sorter.UI.Views.EventLogView"
- 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:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
- xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:controls="clr-namespace:Aitex.Sorter.UI.Controls"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- xmlns:local="clr-namespace:Aitex.Sorter.UI.Views"
- Height="800" Width="1920" >
- <UserControl.Resources>
- <ControlTemplate TargetType="Button" x:Key="realism_button">
- <Border BorderBrush="Gray" x:Name="realism_button_outline" BorderThickness="1,1,0,0" CornerRadius="4" Background="#076DB6" >
- <Border BorderBrush="white" x:Name="realism_button_innerline" BorderThickness="1,1,1,1" CornerRadius="2">
- <TextBlock Text="{TemplateBinding Content}" x:Name="realism_button_text" Margin="3" TextAlignment="Center" Foreground="White" VerticalAlignment="Center"/>
- </Border>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="realism_button_outline" Property="BorderBrush" Value="lightgray"></Setter>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="realism_button_outline" Property="BorderThickness" Value="0"></Setter>
- <Setter TargetName="realism_button_innerline" Property="BorderThickness" Value="0"></Setter>
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="realism_button_outline" Property="BorderBrush" Value="lightgray"></Setter>
- <Setter TargetName="realism_button_outline" Property="BorderThickness" Value="2,2,0,0"></Setter>
- <Setter TargetName="realism_button_innerline" Property="BorderBrush" Value="darkgray"></Setter>
- <Setter TargetName="realism_button_outline" Property="Background" Value="lightgray"></Setter>
- <Setter TargetName="realism_button_innerline" Property="Background" Value="lightgray"></Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <Style
- TargetType="{x:Type local:CirclePointRingLoading}"
- x:Key="{x:Type local:CirclePointRingLoading}">
- <Setter
- Property="Foreground"
- Value="#FFFFFFFF" />
- <Setter
- Property="UIElement.IsHitTestVisible"
- Value="False" />
- <Setter
- Property="HorizontalAlignment"
- Value="Center" />
- <Setter
- Property="VerticalAlignment"
- Value="Center" />
- <Setter
- Property="MinHeight"
- Value="20" />
- <Setter
- Property="MinWidth"
- Value="20" />
- <Setter
- Property="Height"
- Value="60" />
- <Setter
- Property="Width"
- Value="60" />
- <Setter
- Property="IsTabStop"
- Value="False" />
- <Setter
- Property="Template">
- <Setter.Value>
- <ControlTemplate
- TargetType="{x:Type local:CirclePointRingLoading}">
- <Border
- Background="{TemplateBinding Background}"
- BorderThickness="{TemplateBinding BorderThickness}"
- BorderBrush="{TemplateBinding BorderBrush}">
- <FrameworkElement.Resources>
- <ResourceDictionary>
- <Style
- x:Key="ProgressRingEllipseStyle"
- TargetType="{x:Type Ellipse}">
- <Setter
- Property="UIElement.Opacity"
- Value="0" />
- <Setter
- Property="HorizontalAlignment"
- Value="Left" />
- <Setter
- Property="VerticalAlignment"
- Value="Top" />
- </Style>
- </ResourceDictionary>
- </FrameworkElement.Resources>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup
- x:Name="SizeStates">
- <VisualState
- x:Name="Large">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames
- Duration="0"
- Storyboard.TargetName="SixthCircle"
- Storyboard.TargetProperty="Visibility">
- <DiscreteObjectKeyFrame
- KeyTime="0">
- <ObjectKeyFrame.Value>
- <Visibility>Visible</Visibility>
- </ObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState
- x:Name="Small" />
- </VisualStateGroup>
- <VisualStateGroup
- x:Name="ActiveStates">
- <VisualState
- x:Name="Inactive" />
- <VisualState
- x:Name="Active">
- <Storyboard
- RepeatBehavior="Forever">
- <ObjectAnimationUsingKeyFrames
- Duration="0"
- Storyboard.TargetName="Ring"
- Storyboard.TargetProperty="Visibility">
- <DiscreteObjectKeyFrame
- KeyTime="0">
- <ObjectKeyFrame.Value>
- <Visibility>Visible</Visibility>
- </ObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E1"
- Storyboard.TargetProperty="Opacity"
- BeginTime="0">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E2"
- Storyboard.TargetProperty="Opacity"
- BeginTime="00:00:00.167">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E3"
- Storyboard.TargetProperty="Opacity"
- BeginTime="00:00:00.334">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E4"
- Storyboard.TargetProperty="Opacity"
- BeginTime="00:00:00.501">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E5"
- Storyboard.TargetProperty="Opacity"
- BeginTime="00:00:00.668">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E6"
- Storyboard.TargetProperty="Opacity"
- BeginTime="00:00:00.835">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E1R"
- BeginTime="0"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-110"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="10"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="93" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="205"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="357"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="439" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="585"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E2R"
- BeginTime="00:00:00.167"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-116"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="4"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="87" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="199"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="351"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="433" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="579"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E3R"
- BeginTime="00:00:00.334"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-122"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="-2"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="81" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="193"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="345"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="427" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="573"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E4R"
- BeginTime="00:00:00.501"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-128"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="-8"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="187"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="339"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="421" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="567"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E5R"
- BeginTime="00:00:00.668"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-134"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="-14"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="69" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="181"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="331"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="415" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="561"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E6R"
- BeginTime="00:00:00.835"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-140"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="-20"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="63" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="175"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="325"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="409" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="555"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Grid
- Name="Ring"
- Margin="{TemplateBinding Padding}"
- Visibility="Visible"
- RenderTransformOrigin=".5,.5"
- FlowDirection="LeftToRight"
- MaxWidth="{Binding MaxSideLength, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- MaxHeight="{Binding MaxSideLength, RelativeSource={RelativeSource Mode=TemplatedParent}}">
- <Canvas
- RenderTransformOrigin=".5,.5">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E1R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E1"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- <Canvas
- RenderTransformOrigin=".5,.5">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E2R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E2"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- <Canvas
- RenderTransformOrigin=".5,.5">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E3R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E3"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- <Canvas
- RenderTransformOrigin=".5,.5">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E4R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E4"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- <Canvas
- RenderTransformOrigin=".5,.5">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E5R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E5"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- <Canvas
- Name="SixthCircle"
- RenderTransformOrigin=".5,.5"
- Visibility="Collapsed">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E6R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E6"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="400" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <controls:HeaderPanel Grid.Row="0" Width="400" Height="800" Header="Query Conditions" VerticalAlignment="Top" Margin="0" >
- <Grid Grid.Column="0">
- <GroupBox Header="{DynamicResource GlobalLableEventViewQueryOption}" FontSize="15" Height="96" Name="groupBox2" Margin="3,121,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="390">
- <Grid>
- <CheckBox Content="{DynamicResource GlobalLableEventViewAlarm}" HorizontalAlignment="Left" Margin="6,23,0,0" Height="Auto" VerticalAlignment="Top" IsChecked="{Binding SearchAlarmEvent}" FontSize="14" />
- <CheckBox Content="{DynamicResource GlobalLableEventViewWarning}" Height="Auto" HorizontalAlignment="Left" Margin="121,23,0,0" VerticalAlignment="Top" IsChecked="{Binding SearchWarningEvent}" FontSize="14" />
- <CheckBox Content="{DynamicResource GlobalLableEventViewInformation}" Height="Auto" HorizontalAlignment="Left" Margin="244,23,0,0" VerticalAlignment="Top" IsChecked="{Binding SearchInfoEvent}" FontSize="14" />
- <!--<CheckBox Content="Operation" Height="Auto" HorizontalAlignment="Left" Margin="121,38,0,0" VerticalAlignment="Top" IsChecked="{Binding SearchOpeLog}" FontSize="14" />-->
- </Grid>
- </GroupBox>
- <GroupBox FontSize="15" Header="{DynamicResource GlobalLableEventViewExtraCondition}" Name="groupBox4" Margin="3,225,0,0" Height="100" VerticalAlignment="Top" HorizontalAlignment="Left" Width="390">
- <Grid>
- <!--<ComboBox Margin="72,17,0,0" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" Width="132" ItemsSource="{Binding EventList}" SelectedItem="{Binding SelectedEvent,UpdateSourceTrigger=PropertyChanged}" FontSize="13" />
- <TextBlock Text="Event" Height="16" HorizontalAlignment="Left" Margin="3,20,0,0" Name="checkBox1" Tag="ReactorA" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="14" />-->
- <TextBlock Text="{DynamicResource GlobalLableEventViewKeyWords}" Height="23" HorizontalAlignment="Left" Margin="3,35,0,0" Name="checkBox3" Tag="ReactorC" VerticalAlignment="Top" FontFamily="Arial,SimSun" FontSize="14" />
- <TextBox FontSize="14" Height="41" Margin="87,23,0,0" Text="{Binding SearchKeyWords,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Width="281" VerticalAlignment="Top" />
- </Grid>
- </GroupBox>
- <Button Template="{StaticResource realism_button}" FontSize="15" Canvas.Left="26" Canvas.Top="503" Margin="10,352,168,0" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" Click="Button_Click" Content="{DynamicResource GlobalLableEventViewButtonQuery}"/>
- <Button Template="{StaticResource realism_button}" FontSize="15" Canvas.Left="26" Canvas.Top="503" Margin="146,352,32,0" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" Command="{Binding ExportCommand}" Content="{DynamicResource GlobalLableEventViewButtonExport}"/>
- <Label Style="{StaticResource MiddleLabel}" Height="28" Name="label4" Width="76" FontSize="14" Canvas.Left="-6" Canvas.Top="3" Content="{DynamicResource GlobalLableEventViewStartTime}" Margin="9,46,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" FontFamily="Arial,SimSun"></Label>
- <Label Style="{StaticResource MiddleLabel}" Height="28" Name="label5" Width="76" FontSize="14" Canvas.Left="-6" Canvas.Top="26" Content="{DynamicResource GlobalLableEventViewEndTime}" Margin="8,80,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" FontFamily="Arial,SimSun"></Label>
- <xctk:TimePicker Height="25" HorizontalAlignment="Left" Name="timeBegin" VerticalAlignment="Top" Width="120" FontSize="13" Canvas.Left="231" Canvas.Top="12" Margin="245,46,-67,0" />
- <DatePicker Height="25" HorizontalAlignment="Left" Name="dateBegin" VerticalAlignment="Top" Width="155" FontSize="13" Style="{StaticResource DatePickerStyle.Centered}" Canvas.Left="72" Canvas.Top="12" Margin="85,47,0,0" />
- <xctk:TimePicker Height="25" HorizontalAlignment="Left" Name="timeEnd" VerticalAlignment="Top" Width="120" FontSize="13" Canvas.Left="230" Canvas.Top="53" Margin="245,83,0,0" />
- <DatePicker Height="25" HorizontalAlignment="Left" Name="dateEnd" VerticalAlignment="Top" Width="155" FontSize="13" Style="{StaticResource DatePickerStyle.Centered}" Canvas.Left="72" Canvas.Top="53" Margin="85,83,0,0" />
- </Grid>
- </controls:HeaderPanel>
- <Grid Grid.Column="1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="35"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Canvas Grid.Row="0">
- <TextBlock Height="23" FontSize="16" Text="Show" VerticalAlignment="Top" Canvas.Left="18" Canvas.Top="12" />
- <ComboBox IsEnabled="{Binding IsLoading, Converter={StaticResource boolNegateConverter}}" Height="23" VerticalAlignment="Top" DisplayMemberPath="Value" HorizontalAlignment="Left" Width="100" ItemsSource="{Binding PerPageItems}" SelectedValue="{Binding SelectedPerPage,UpdateSourceTrigger=PropertyChanged}" FontSize="13" Canvas.Left="65" Canvas.Top="10" >
- </ComboBox>
- <TextBlock Height="23" FontSize="16" Text="Items Per Page " VerticalAlignment="Top" Canvas.Left="170" Canvas.Top="12" />
- <TextBlock Height="23" FontSize="16" Visibility="{Binding IsLoading, Converter={StaticResource boolVisibilityConverter}}" Text="Loading..." VerticalAlignment="Top" Canvas.Left="323" Canvas.Top="13" />
- <local:CirclePointRingLoading Height="30" Visibility="{Binding IsLoading, Converter={StaticResource boolVisibilityConverter}}" IsActive="True" IsLarge="True" Foreground="#3ca9fe" Width="30" Canvas.Left="339" Canvas.Top="5" />
- <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnableFirst}" Command="{Binding NavigateCommand}" CommandParameter="first" Content="|< First" Canvas.Left="428" Margin="0" Canvas.Top="10"/>
- <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnablePrevious}" Command="{Binding NavigateCommand}" CommandParameter="previous" Content="<< Previous" Canvas.Left="532" Margin="0" Canvas.Top="10"/>
- <TextBlock Height="23" Width="100" TextAlignment="Center" FontSize="16" Text="{Binding PageInfo}" VerticalAlignment="Center" Canvas.Left="640" Canvas.Top="16" />
- <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnableNext}" Command="{Binding NavigateCommand}" CommandParameter="next" Content="Next >>" Canvas.Left="745" Margin="0" Canvas.Top="10"/>
- <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnableLast}" Command="{Binding NavigateCommand}" CommandParameter="last" Content="Last >|" Canvas.Left="850" Margin="0" Canvas.Top="10"/>
- </Canvas>
- <!--<StackPanel Grid.Row="0" Width="300" HorizontalAlignment="Left" Margin="100,10,30,0" VerticalAlignment="Top" Orientation="Horizontal" >
- <TextBlock Height="23" Text="{DynamicResource GlobalLableEventViewResult}" VerticalAlignment="Top" />
- <TextBlock Height="23" TextAlignment="Center" Text="{Binding SearchedResult.Count}" Width="51" FlowDirection="RightToLeft" />
- <TextBlock Height="23" Text="{DynamicResource GlobalLableEventViewRecords}" />
-
- </StackPanel>-->
- <DataGrid Grid.Row="1"
- Margin="10"
- Width="1500"
- RowHeight="25"
- ScrollViewer.CanContentScroll="True"
- ScrollViewer.VerticalScrollBarVisibility="Visible"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- HorizontalAlignment="Left"
- AutoGenerateColumns="False" Name="dataGrid1" ItemsSource="{Binding SearchedResult,Mode=OneWay}"
- SelectionUnit="FullRow" FontFamily="Arial,SimSun"
- HorizontalGridLinesBrush="Gray" VerticalGridLinesBrush="#A0808080"
- AlternatingRowBackground="#74C7F7FF" BorderThickness="1" SelectionMode="Single"
- CanUserReorderColumns="False" CanUserAddRows="False" BorderBrush="#5C000000"
- ColumnHeaderHeight="25" ClipboardCopyMode="IncludeHeader" CanUserSortColumns="False"
- IsReadOnly="True" RowBackground="#FFAFD5D5" >
- <DataGrid.Style>
- <Style TargetType="ItemsControl">
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- <Style.Resources>
- <!-- Background of selected item when focussed -->
- <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Blue" />
- </Style.Resources>
- </Style>
- </DataGrid.Style>
- <DataGrid.Columns>
- <DataGridTemplateColumn Width="50" CanUserSort="True" SortMemberPath="Icon">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Image Width="20" Height="20" HorizontalAlignment="Center" Stretch="Fill" VerticalAlignment="Center" Source="{Binding Icon}" />
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- <DataGridTemplateColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="ToolTip" Value="{Binding LogType}" />
- </Style>
- </DataGridTemplateColumn.CellStyle>
- </DataGridTemplateColumn>
- <DataGridTextColumn Width="120" Binding="{Binding LogType,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
- <DataGridTextColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="ToolTip" Value="{Binding LogType}" />
- </Style>
- </DataGridTextColumn.CellStyle>
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableEventViewType}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>
- <DataGridTextColumn Width="140" Binding="{Binding Ceid,Mode=OneWay}" CanUserSort="True" CanUserReorder="True" IsReadOnly="True" CanUserResize="False">
- <DataGridTextColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="ToolTip" Value="{Binding Ceid}" />
- </Style>
- </DataGridTextColumn.CellStyle>
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="Ceid" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>
-
- <DataGridTextColumn Width="220" Binding="{Binding Time,Mode=OneWay}" CanUserSort="True" CanUserReorder="True" IsReadOnly="True" CanUserResize="False">
- <DataGridTextColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="ToolTip" Value="{Binding Time}" />
- </Style>
- </DataGridTextColumn.CellStyle>
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableEventViewTime}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>
- <!--<DataGridTextColumn Width="120" Binding="{Binding TargetChamber,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
- <DataGridTextColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="ToolTip" Value="{Binding TargetChamber}" />
- </Style>
- </DataGridTextColumn.CellStyle>
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableEventViewSystem}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>-->
- <DataGridTextColumn Width="*" Binding="{Binding Detail,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
- <DataGridTextColumn.CellStyle>
- <Style TargetType="DataGridCell">
- <Setter Property="ToolTip" Value="{Binding Detail}" />
- </Style>
- </DataGridTextColumn.CellStyle>
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="{DynamicResource GlobalLableEventViewContent}" />
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>
- </DataGrid.Columns>
- <DataGrid.Background>
- <SolidColorBrush />
- </DataGrid.Background>
- </DataGrid>
- </Grid>
- </Grid>
- </Grid>
- </UserControl>
|