EventLogView.xaml 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  1. <UserControl x:Class="Aitex.Sorter.UI.Views.EventLogView"
  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:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  6. xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:controls="clr-namespace:Aitex.Sorter.UI.Controls"
  9. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  10. xmlns:local="clr-namespace:Aitex.Sorter.UI.Views"
  11. Height="800" Width="1920" >
  12. <UserControl.Resources>
  13. <Style
  14. TargetType="{x:Type local:CirclePointRingLoading}"
  15. x:Key="{x:Type local:CirclePointRingLoading}">
  16. <Setter
  17. Property="Foreground"
  18. Value="#FFFFFFFF" />
  19. <Setter
  20. Property="UIElement.IsHitTestVisible"
  21. Value="False" />
  22. <Setter
  23. Property="HorizontalAlignment"
  24. Value="Center" />
  25. <Setter
  26. Property="VerticalAlignment"
  27. Value="Center" />
  28. <Setter
  29. Property="MinHeight"
  30. Value="20" />
  31. <Setter
  32. Property="MinWidth"
  33. Value="20" />
  34. <Setter
  35. Property="Height"
  36. Value="60" />
  37. <Setter
  38. Property="Width"
  39. Value="60" />
  40. <Setter
  41. Property="IsTabStop"
  42. Value="False" />
  43. <Setter
  44. Property="Template">
  45. <Setter.Value>
  46. <ControlTemplate
  47. TargetType="{x:Type local:CirclePointRingLoading}">
  48. <Border
  49. Background="{TemplateBinding Background}"
  50. BorderThickness="{TemplateBinding BorderThickness}"
  51. BorderBrush="{TemplateBinding BorderBrush}">
  52. <FrameworkElement.Resources>
  53. <ResourceDictionary>
  54. <Style
  55. x:Key="ProgressRingEllipseStyle"
  56. TargetType="{x:Type Ellipse}">
  57. <Setter
  58. Property="UIElement.Opacity"
  59. Value="0" />
  60. <Setter
  61. Property="HorizontalAlignment"
  62. Value="Left" />
  63. <Setter
  64. Property="VerticalAlignment"
  65. Value="Top" />
  66. </Style>
  67. </ResourceDictionary>
  68. </FrameworkElement.Resources>
  69. <VisualStateManager.VisualStateGroups>
  70. <VisualStateGroup
  71. x:Name="SizeStates">
  72. <VisualState
  73. x:Name="Large">
  74. <Storyboard>
  75. <ObjectAnimationUsingKeyFrames
  76. Duration="0"
  77. Storyboard.TargetName="SixthCircle"
  78. Storyboard.TargetProperty="Visibility">
  79. <DiscreteObjectKeyFrame
  80. KeyTime="0">
  81. <ObjectKeyFrame.Value>
  82. <Visibility>Visible</Visibility>
  83. </ObjectKeyFrame.Value>
  84. </DiscreteObjectKeyFrame>
  85. </ObjectAnimationUsingKeyFrames>
  86. </Storyboard>
  87. </VisualState>
  88. <VisualState
  89. x:Name="Small" />
  90. </VisualStateGroup>
  91. <VisualStateGroup
  92. x:Name="ActiveStates">
  93. <VisualState
  94. x:Name="Inactive" />
  95. <VisualState
  96. x:Name="Active">
  97. <Storyboard
  98. RepeatBehavior="Forever">
  99. <ObjectAnimationUsingKeyFrames
  100. Duration="0"
  101. Storyboard.TargetName="Ring"
  102. Storyboard.TargetProperty="Visibility">
  103. <DiscreteObjectKeyFrame
  104. KeyTime="0">
  105. <ObjectKeyFrame.Value>
  106. <Visibility>Visible</Visibility>
  107. </ObjectKeyFrame.Value>
  108. </DiscreteObjectKeyFrame>
  109. </ObjectAnimationUsingKeyFrames>
  110. <DoubleAnimationUsingKeyFrames
  111. Storyboard.TargetName="E1"
  112. Storyboard.TargetProperty="Opacity"
  113. BeginTime="0">
  114. <DiscreteDoubleKeyFrame
  115. KeyTime="0"
  116. Value="1" />
  117. <DiscreteDoubleKeyFrame
  118. KeyTime="0:0:3.21"
  119. Value="1" />
  120. <DiscreteDoubleKeyFrame
  121. KeyTime="0:0:3.22"
  122. Value="0" />
  123. <DiscreteDoubleKeyFrame
  124. KeyTime="0:0:3.47"
  125. Value="0" />
  126. </DoubleAnimationUsingKeyFrames>
  127. <DoubleAnimationUsingKeyFrames
  128. Storyboard.TargetName="E2"
  129. Storyboard.TargetProperty="Opacity"
  130. BeginTime="00:00:00.167">
  131. <DiscreteDoubleKeyFrame
  132. KeyTime="0"
  133. Value="1" />
  134. <DiscreteDoubleKeyFrame
  135. KeyTime="0:0:3.21"
  136. Value="1" />
  137. <DiscreteDoubleKeyFrame
  138. KeyTime="0:0:3.22"
  139. Value="0" />
  140. <DiscreteDoubleKeyFrame
  141. KeyTime="0:0:3.47"
  142. Value="0" />
  143. </DoubleAnimationUsingKeyFrames>
  144. <DoubleAnimationUsingKeyFrames
  145. Storyboard.TargetName="E3"
  146. Storyboard.TargetProperty="Opacity"
  147. BeginTime="00:00:00.334">
  148. <DiscreteDoubleKeyFrame
  149. KeyTime="0"
  150. Value="1" />
  151. <DiscreteDoubleKeyFrame
  152. KeyTime="0:0:3.21"
  153. Value="1" />
  154. <DiscreteDoubleKeyFrame
  155. KeyTime="0:0:3.22"
  156. Value="0" />
  157. <DiscreteDoubleKeyFrame
  158. KeyTime="0:0:3.47"
  159. Value="0" />
  160. </DoubleAnimationUsingKeyFrames>
  161. <DoubleAnimationUsingKeyFrames
  162. Storyboard.TargetName="E4"
  163. Storyboard.TargetProperty="Opacity"
  164. BeginTime="00:00:00.501">
  165. <DiscreteDoubleKeyFrame
  166. KeyTime="0"
  167. Value="1" />
  168. <DiscreteDoubleKeyFrame
  169. KeyTime="0:0:3.21"
  170. Value="1" />
  171. <DiscreteDoubleKeyFrame
  172. KeyTime="0:0:3.22"
  173. Value="0" />
  174. <DiscreteDoubleKeyFrame
  175. KeyTime="0:0:3.47"
  176. Value="0" />
  177. </DoubleAnimationUsingKeyFrames>
  178. <DoubleAnimationUsingKeyFrames
  179. Storyboard.TargetName="E5"
  180. Storyboard.TargetProperty="Opacity"
  181. BeginTime="00:00:00.668">
  182. <DiscreteDoubleKeyFrame
  183. KeyTime="0"
  184. Value="1" />
  185. <DiscreteDoubleKeyFrame
  186. KeyTime="0:0:3.21"
  187. Value="1" />
  188. <DiscreteDoubleKeyFrame
  189. KeyTime="0:0:3.22"
  190. Value="0" />
  191. <DiscreteDoubleKeyFrame
  192. KeyTime="0:0:3.47"
  193. Value="0" />
  194. </DoubleAnimationUsingKeyFrames>
  195. <DoubleAnimationUsingKeyFrames
  196. Storyboard.TargetName="E6"
  197. Storyboard.TargetProperty="Opacity"
  198. BeginTime="00:00:00.835">
  199. <DiscreteDoubleKeyFrame
  200. KeyTime="0"
  201. Value="1" />
  202. <DiscreteDoubleKeyFrame
  203. KeyTime="0:0:3.21"
  204. Value="1" />
  205. <DiscreteDoubleKeyFrame
  206. KeyTime="0:0:3.22"
  207. Value="0" />
  208. <DiscreteDoubleKeyFrame
  209. KeyTime="0:0:3.47"
  210. Value="0" />
  211. </DoubleAnimationUsingKeyFrames>
  212. <DoubleAnimationUsingKeyFrames
  213. Storyboard.TargetName="E1R"
  214. BeginTime="0"
  215. Storyboard.TargetProperty="Angle">
  216. <SplineDoubleKeyFrame
  217. KeyTime="0"
  218. Value="-110"
  219. KeySpline="0.13,0.21,0.1,0.7" />
  220. <SplineDoubleKeyFrame
  221. KeyTime="0:0:0.433"
  222. Value="10"
  223. KeySpline="0.02,0.33,0.38,0.77" />
  224. <SplineDoubleKeyFrame
  225. KeyTime="0:0:1.2"
  226. Value="93" />
  227. <SplineDoubleKeyFrame
  228. KeyTime="0:0:1.617"
  229. Value="205"
  230. KeySpline="0.57,0.17,0.95,0.75" />
  231. <SplineDoubleKeyFrame
  232. KeyTime="0:0:2.017"
  233. Value="357"
  234. KeySpline="0,0.19,0.07,0.72" />
  235. <SplineDoubleKeyFrame
  236. KeyTime="0:0:2.783"
  237. Value="439" />
  238. <SplineDoubleKeyFrame
  239. KeyTime="0:0:3.217"
  240. Value="585"
  241. KeySpline="0,0,0.95,0.37" />
  242. </DoubleAnimationUsingKeyFrames>
  243. <DoubleAnimationUsingKeyFrames
  244. Storyboard.TargetName="E2R"
  245. BeginTime="00:00:00.167"
  246. Storyboard.TargetProperty="Angle">
  247. <SplineDoubleKeyFrame
  248. KeyTime="0"
  249. Value="-116"
  250. KeySpline="0.13,0.21,0.1,0.7" />
  251. <SplineDoubleKeyFrame
  252. KeyTime="0:0:0.433"
  253. Value="4"
  254. KeySpline="0.02,0.33,0.38,0.77" />
  255. <SplineDoubleKeyFrame
  256. KeyTime="0:0:1.2"
  257. Value="87" />
  258. <SplineDoubleKeyFrame
  259. KeyTime="0:0:1.617"
  260. Value="199"
  261. KeySpline="0.57,0.17,0.95,0.75" />
  262. <SplineDoubleKeyFrame
  263. KeyTime="0:0:2.017"
  264. Value="351"
  265. KeySpline="0,0.19,0.07,0.72" />
  266. <SplineDoubleKeyFrame
  267. KeyTime="0:0:2.783"
  268. Value="433" />
  269. <SplineDoubleKeyFrame
  270. KeyTime="0:0:3.217"
  271. Value="579"
  272. KeySpline="0,0,0.95,0.37" />
  273. </DoubleAnimationUsingKeyFrames>
  274. <DoubleAnimationUsingKeyFrames
  275. Storyboard.TargetName="E3R"
  276. BeginTime="00:00:00.334"
  277. Storyboard.TargetProperty="Angle">
  278. <SplineDoubleKeyFrame
  279. KeyTime="0"
  280. Value="-122"
  281. KeySpline="0.13,0.21,0.1,0.7" />
  282. <SplineDoubleKeyFrame
  283. KeyTime="0:0:0.433"
  284. Value="-2"
  285. KeySpline="0.02,0.33,0.38,0.77" />
  286. <SplineDoubleKeyFrame
  287. KeyTime="0:0:1.2"
  288. Value="81" />
  289. <SplineDoubleKeyFrame
  290. KeyTime="0:0:1.617"
  291. Value="193"
  292. KeySpline="0.57,0.17,0.95,0.75" />
  293. <SplineDoubleKeyFrame
  294. KeyTime="0:0:2.017"
  295. Value="345"
  296. KeySpline="0,0.19,0.07,0.72" />
  297. <SplineDoubleKeyFrame
  298. KeyTime="0:0:2.783"
  299. Value="427" />
  300. <SplineDoubleKeyFrame
  301. KeyTime="0:0:3.217"
  302. Value="573"
  303. KeySpline="0,0,0.95,0.37" />
  304. </DoubleAnimationUsingKeyFrames>
  305. <DoubleAnimationUsingKeyFrames
  306. Storyboard.TargetName="E4R"
  307. BeginTime="00:00:00.501"
  308. Storyboard.TargetProperty="Angle">
  309. <SplineDoubleKeyFrame
  310. KeyTime="0"
  311. Value="-128"
  312. KeySpline="0.13,0.21,0.1,0.7" />
  313. <SplineDoubleKeyFrame
  314. KeyTime="0:0:0.433"
  315. Value="-8"
  316. KeySpline="0.02,0.33,0.38,0.77" />
  317. <SplineDoubleKeyFrame
  318. KeyTime="0:0:1.2"
  319. Value="75" />
  320. <SplineDoubleKeyFrame
  321. KeyTime="0:0:1.617"
  322. Value="187"
  323. KeySpline="0.57,0.17,0.95,0.75" />
  324. <SplineDoubleKeyFrame
  325. KeyTime="0:0:2.017"
  326. Value="339"
  327. KeySpline="0,0.19,0.07,0.72" />
  328. <SplineDoubleKeyFrame
  329. KeyTime="0:0:2.783"
  330. Value="421" />
  331. <SplineDoubleKeyFrame
  332. KeyTime="0:0:3.217"
  333. Value="567"
  334. KeySpline="0,0,0.95,0.37" />
  335. </DoubleAnimationUsingKeyFrames>
  336. <DoubleAnimationUsingKeyFrames
  337. Storyboard.TargetName="E5R"
  338. BeginTime="00:00:00.668"
  339. Storyboard.TargetProperty="Angle">
  340. <SplineDoubleKeyFrame
  341. KeyTime="0"
  342. Value="-134"
  343. KeySpline="0.13,0.21,0.1,0.7" />
  344. <SplineDoubleKeyFrame
  345. KeyTime="0:0:0.433"
  346. Value="-14"
  347. KeySpline="0.02,0.33,0.38,0.77" />
  348. <SplineDoubleKeyFrame
  349. KeyTime="0:0:1.2"
  350. Value="69" />
  351. <SplineDoubleKeyFrame
  352. KeyTime="0:0:1.617"
  353. Value="181"
  354. KeySpline="0.57,0.17,0.95,0.75" />
  355. <SplineDoubleKeyFrame
  356. KeyTime="0:0:2.017"
  357. Value="331"
  358. KeySpline="0,0.19,0.07,0.72" />
  359. <SplineDoubleKeyFrame
  360. KeyTime="0:0:2.783"
  361. Value="415" />
  362. <SplineDoubleKeyFrame
  363. KeyTime="0:0:3.217"
  364. Value="561"
  365. KeySpline="0,0,0.95,0.37" />
  366. </DoubleAnimationUsingKeyFrames>
  367. <DoubleAnimationUsingKeyFrames
  368. Storyboard.TargetName="E6R"
  369. BeginTime="00:00:00.835"
  370. Storyboard.TargetProperty="Angle">
  371. <SplineDoubleKeyFrame
  372. KeyTime="0"
  373. Value="-140"
  374. KeySpline="0.13,0.21,0.1,0.7" />
  375. <SplineDoubleKeyFrame
  376. KeyTime="0:0:0.433"
  377. Value="-20"
  378. KeySpline="0.02,0.33,0.38,0.77" />
  379. <SplineDoubleKeyFrame
  380. KeyTime="0:0:1.2"
  381. Value="63" />
  382. <SplineDoubleKeyFrame
  383. KeyTime="0:0:1.617"
  384. Value="175"
  385. KeySpline="0.57,0.17,0.95,0.75" />
  386. <SplineDoubleKeyFrame
  387. KeyTime="0:0:2.017"
  388. Value="325"
  389. KeySpline="0,0.19,0.07,0.72" />
  390. <SplineDoubleKeyFrame
  391. KeyTime="0:0:2.783"
  392. Value="409" />
  393. <SplineDoubleKeyFrame
  394. KeyTime="0:0:3.217"
  395. Value="555"
  396. KeySpline="0,0,0.95,0.37" />
  397. </DoubleAnimationUsingKeyFrames>
  398. </Storyboard>
  399. </VisualState>
  400. </VisualStateGroup>
  401. </VisualStateManager.VisualStateGroups>
  402. <Grid
  403. Name="Ring"
  404. Margin="{TemplateBinding Padding}"
  405. Visibility="Visible"
  406. RenderTransformOrigin=".5,.5"
  407. FlowDirection="LeftToRight"
  408. MaxWidth="{Binding MaxSideLength, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  409. MaxHeight="{Binding MaxSideLength, RelativeSource={RelativeSource Mode=TemplatedParent}}">
  410. <Canvas
  411. RenderTransformOrigin=".5,.5">
  412. <UIElement.RenderTransform>
  413. <RotateTransform
  414. x:Name="E1R" />
  415. </UIElement.RenderTransform>
  416. <Ellipse
  417. Name="E1"
  418. Fill="{TemplateBinding Foreground}"
  419. Style="{StaticResource ProgressRingEllipseStyle}"
  420. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  421. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  422. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  423. </Canvas>
  424. <Canvas
  425. RenderTransformOrigin=".5,.5">
  426. <UIElement.RenderTransform>
  427. <RotateTransform
  428. x:Name="E2R" />
  429. </UIElement.RenderTransform>
  430. <Ellipse
  431. Name="E2"
  432. Fill="{TemplateBinding Foreground}"
  433. Style="{StaticResource ProgressRingEllipseStyle}"
  434. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  435. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  436. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  437. </Canvas>
  438. <Canvas
  439. RenderTransformOrigin=".5,.5">
  440. <UIElement.RenderTransform>
  441. <RotateTransform
  442. x:Name="E3R" />
  443. </UIElement.RenderTransform>
  444. <Ellipse
  445. Name="E3"
  446. Fill="{TemplateBinding Foreground}"
  447. Style="{StaticResource ProgressRingEllipseStyle}"
  448. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  449. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  450. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  451. </Canvas>
  452. <Canvas
  453. RenderTransformOrigin=".5,.5">
  454. <UIElement.RenderTransform>
  455. <RotateTransform
  456. x:Name="E4R" />
  457. </UIElement.RenderTransform>
  458. <Ellipse
  459. Name="E4"
  460. Fill="{TemplateBinding Foreground}"
  461. Style="{StaticResource ProgressRingEllipseStyle}"
  462. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  463. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  464. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  465. </Canvas>
  466. <Canvas
  467. RenderTransformOrigin=".5,.5">
  468. <UIElement.RenderTransform>
  469. <RotateTransform
  470. x:Name="E5R" />
  471. </UIElement.RenderTransform>
  472. <Ellipse
  473. Name="E5"
  474. Fill="{TemplateBinding Foreground}"
  475. Style="{StaticResource ProgressRingEllipseStyle}"
  476. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  477. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  478. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  479. </Canvas>
  480. <Canvas
  481. Name="SixthCircle"
  482. RenderTransformOrigin=".5,.5"
  483. Visibility="Collapsed">
  484. <UIElement.RenderTransform>
  485. <RotateTransform
  486. x:Name="E6R" />
  487. </UIElement.RenderTransform>
  488. <Ellipse
  489. Name="E6"
  490. Fill="{TemplateBinding Foreground}"
  491. Style="{StaticResource ProgressRingEllipseStyle}"
  492. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  493. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  494. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  495. </Canvas>
  496. </Grid>
  497. </Border>
  498. </ControlTemplate>
  499. </Setter.Value>
  500. </Setter>
  501. </Style>
  502. </UserControl.Resources>
  503. <Grid>
  504. <Grid.ColumnDefinitions>
  505. <ColumnDefinition Width="400" />
  506. <ColumnDefinition Width="*" />
  507. </Grid.ColumnDefinitions>
  508. <controls:HeaderPanel Grid.Row="0" Width="400" Height="800" Header="Query Conditions" VerticalAlignment="Top" Margin="0" >
  509. <Grid Grid.Column="0">
  510. <GroupBox Header="{DynamicResource GlobalLableEventViewQueryOption}" FontSize="15" Height="96" Name="groupBox2" Margin="3,121,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="390">
  511. <Grid>
  512. <CheckBox Content="{DynamicResource GlobalLableEventViewAlarm}" HorizontalAlignment="Left" Margin="6,23,0,0" Height="Auto" VerticalAlignment="Top" IsChecked="{Binding SearchAlarmEvent}" FontSize="14" />
  513. <CheckBox Content="{DynamicResource GlobalLableEventViewWarning}" Height="Auto" HorizontalAlignment="Left" Margin="121,23,0,0" VerticalAlignment="Top" IsChecked="{Binding SearchWarningEvent}" FontSize="14" />
  514. <CheckBox Content="{DynamicResource GlobalLableEventViewInformation}" Height="Auto" HorizontalAlignment="Left" Margin="244,23,0,0" VerticalAlignment="Top" IsChecked="{Binding SearchInfoEvent}" FontSize="14" />
  515. <!--<CheckBox Content="Operation" Height="Auto" HorizontalAlignment="Left" Margin="121,38,0,0" VerticalAlignment="Top" IsChecked="{Binding SearchOpeLog}" FontSize="14" />-->
  516. </Grid>
  517. </GroupBox>
  518. <GroupBox FontSize="15" Header="{DynamicResource GlobalLableEventViewExtraCondition}" Name="groupBox4" Margin="3,225,0,0" Height="100" VerticalAlignment="Top" HorizontalAlignment="Left" Width="390">
  519. <Grid>
  520. <!--<ComboBox Margin="72,17,0,0" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" Width="132" ItemsSource="{Binding EventList}" SelectedItem="{Binding SelectedEvent,UpdateSourceTrigger=PropertyChanged}" FontSize="13" />
  521. <TextBlock Text="Event" Height="16" HorizontalAlignment="Left" Margin="3,20,0,0" Name="checkBox1" Tag="ReactorA" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="14" />-->
  522. <TextBlock Text="{DynamicResource GlobalLableEventViewKeyWords}" Height="23" HorizontalAlignment="Left" Margin="3,35,0,0" Name="checkBox3" Tag="ReactorC" VerticalAlignment="Top" FontFamily="Arial,SimSun" FontSize="14" />
  523. <TextBox FontSize="14" Height="41" Margin="87,23,0,0" Text="{Binding SearchKeyWords,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Width="281" VerticalAlignment="Top" />
  524. </Grid>
  525. </GroupBox>
  526. <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}"/>
  527. <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}"/>
  528. <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>
  529. <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>
  530. <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" />
  531. <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" />
  532. <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" />
  533. <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" />
  534. </Grid>
  535. </controls:HeaderPanel>
  536. <Grid Grid.Column="1">
  537. <Grid>
  538. <Grid.RowDefinitions>
  539. <RowDefinition Height="35"/>
  540. <RowDefinition Height="*"/>
  541. </Grid.RowDefinitions>
  542. <Canvas Grid.Row="0">
  543. <TextBlock Height="23" FontSize="16" Text="Show" VerticalAlignment="Top" Canvas.Left="18" Canvas.Top="12" />
  544. <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" >
  545. </ComboBox>
  546. <TextBlock Height="23" FontSize="16" Text="Items Per Page " VerticalAlignment="Top" Canvas.Left="170" Canvas.Top="12" />
  547. <TextBlock Height="23" FontSize="16" Visibility="{Binding IsLoading, Converter={StaticResource boolVisibilityConverter}}" Text="Loading..." VerticalAlignment="Top" Canvas.Left="323" Canvas.Top="13" />
  548. <local:CirclePointRingLoading Height="30" Visibility="{Binding IsLoading, Converter={StaticResource boolVisibilityConverter}}" IsActive="True" IsLarge="True" Foreground="#3ca9fe" Width="30" Canvas.Left="339" Canvas.Top="5" />
  549. <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnableFirst}" Command="{Binding NavigateCommand}" CommandParameter="first" Content="|&lt; First" Canvas.Left="428" Margin="0" Canvas.Top="10"/>
  550. <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnablePrevious}" Command="{Binding NavigateCommand}" CommandParameter="previous" Content="&lt;&lt; Previous" Canvas.Left="532" Margin="0" Canvas.Top="10"/>
  551. <TextBlock Height="23" Width="100" TextAlignment="Center" FontSize="16" Text="{Binding PageInfo}" VerticalAlignment="Center" Canvas.Left="640" Canvas.Top="16" />
  552. <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnableNext}" Command="{Binding NavigateCommand}" CommandParameter="next" Content="Next &gt;&gt;" Canvas.Left="745" Margin="0" Canvas.Top="10"/>
  553. <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnableLast}" Command="{Binding NavigateCommand}" CommandParameter="last" Content="Last &gt;|" Canvas.Left="850" Margin="0" Canvas.Top="10"/>
  554. </Canvas>
  555. <!--<StackPanel Grid.Row="0" Width="300" HorizontalAlignment="Left" Margin="100,10,30,0" VerticalAlignment="Top" Orientation="Horizontal" >
  556. <TextBlock Height="23" Text="{DynamicResource GlobalLableEventViewResult}" VerticalAlignment="Top" />
  557. <TextBlock Height="23" TextAlignment="Center" Text="{Binding SearchedResult.Count}" Width="51" FlowDirection="RightToLeft" />
  558. <TextBlock Height="23" Text="{DynamicResource GlobalLableEventViewRecords}" />
  559. </StackPanel>-->
  560. <DataGrid Grid.Row="1"
  561. Margin="10"
  562. Width="1500"
  563. RowHeight="25"
  564. ScrollViewer.CanContentScroll="True"
  565. ScrollViewer.VerticalScrollBarVisibility="Visible"
  566. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  567. HorizontalAlignment="Left"
  568. AutoGenerateColumns="False" Name="dataGrid1" ItemsSource="{Binding SearchedResult,Mode=OneWay}"
  569. SelectionUnit="FullRow" FontFamily="Arial,SimSun"
  570. HorizontalGridLinesBrush="Gray" VerticalGridLinesBrush="#A0808080"
  571. AlternatingRowBackground="#74C7F7FF" BorderThickness="1" SelectionMode="Single"
  572. CanUserReorderColumns="False" CanUserAddRows="False" BorderBrush="#5C000000"
  573. ColumnHeaderHeight="25" ClipboardCopyMode="IncludeHeader" CanUserSortColumns="False"
  574. IsReadOnly="True" RowBackground="#FFAFD5D5" >
  575. <DataGrid.Style>
  576. <Style TargetType="ItemsControl">
  577. <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
  578. <Style.Resources>
  579. <!-- Background of selected item when focussed -->
  580. <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Blue" />
  581. </Style.Resources>
  582. </Style>
  583. </DataGrid.Style>
  584. <DataGrid.Columns>
  585. <DataGridTemplateColumn Width="50" CanUserSort="True" SortMemberPath="Icon">
  586. <DataGridTemplateColumn.CellTemplate>
  587. <DataTemplate>
  588. <Image Width="20" Height="20" HorizontalAlignment="Center" Stretch="Fill" VerticalAlignment="Center" Source="{Binding Icon}" />
  589. </DataTemplate>
  590. </DataGridTemplateColumn.CellTemplate>
  591. <DataGridTemplateColumn.CellStyle>
  592. <Style TargetType="DataGridCell">
  593. <Setter Property="ToolTip" Value="{Binding LogType}" />
  594. </Style>
  595. </DataGridTemplateColumn.CellStyle>
  596. </DataGridTemplateColumn>
  597. <DataGridTextColumn Width="120" Binding="{Binding LogType,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  598. <DataGridTextColumn.CellStyle>
  599. <Style TargetType="DataGridCell">
  600. <Setter Property="ToolTip" Value="{Binding LogType}" />
  601. </Style>
  602. </DataGridTextColumn.CellStyle>
  603. <DataGridTextColumn.HeaderTemplate >
  604. <DataTemplate>
  605. <TextBlock Text="{DynamicResource GlobalLableEventViewType}" />
  606. </DataTemplate>
  607. </DataGridTextColumn.HeaderTemplate>
  608. </DataGridTextColumn>
  609. <DataGridTextColumn Width="140" Binding="{Binding Ceid,Mode=OneWay}" CanUserSort="True" CanUserReorder="True" IsReadOnly="True" CanUserResize="False">
  610. <DataGridTextColumn.CellStyle>
  611. <Style TargetType="DataGridCell">
  612. <Setter Property="ToolTip" Value="{Binding Ceid}" />
  613. </Style>
  614. </DataGridTextColumn.CellStyle>
  615. <DataGridTextColumn.HeaderTemplate >
  616. <DataTemplate>
  617. <TextBlock Text="Ceid" />
  618. </DataTemplate>
  619. </DataGridTextColumn.HeaderTemplate>
  620. </DataGridTextColumn>
  621. <DataGridTextColumn Width="220" Binding="{Binding Time,Mode=OneWay}" CanUserSort="True" CanUserReorder="True" IsReadOnly="True" CanUserResize="False">
  622. <DataGridTextColumn.CellStyle>
  623. <Style TargetType="DataGridCell">
  624. <Setter Property="ToolTip" Value="{Binding Time}" />
  625. </Style>
  626. </DataGridTextColumn.CellStyle>
  627. <DataGridTextColumn.HeaderTemplate >
  628. <DataTemplate>
  629. <TextBlock Text="{DynamicResource GlobalLableEventViewTime}" />
  630. </DataTemplate>
  631. </DataGridTextColumn.HeaderTemplate>
  632. </DataGridTextColumn>
  633. <!--<DataGridTextColumn Width="120" Binding="{Binding TargetChamber,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  634. <DataGridTextColumn.CellStyle>
  635. <Style TargetType="DataGridCell">
  636. <Setter Property="ToolTip" Value="{Binding TargetChamber}" />
  637. </Style>
  638. </DataGridTextColumn.CellStyle>
  639. <DataGridTextColumn.HeaderTemplate >
  640. <DataTemplate>
  641. <TextBlock Text="{DynamicResource GlobalLableEventViewSystem}" />
  642. </DataTemplate>
  643. </DataGridTextColumn.HeaderTemplate>
  644. </DataGridTextColumn>-->
  645. <DataGridTextColumn Width="*" Binding="{Binding Detail,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  646. <DataGridTextColumn.CellStyle>
  647. <Style TargetType="DataGridCell">
  648. <Setter Property="ToolTip" Value="{Binding Detail}" />
  649. </Style>
  650. </DataGridTextColumn.CellStyle>
  651. <DataGridTextColumn.HeaderTemplate >
  652. <DataTemplate>
  653. <TextBlock Text="{DynamicResource GlobalLableEventViewContent}" />
  654. </DataTemplate>
  655. </DataGridTextColumn.HeaderTemplate>
  656. </DataGridTextColumn>
  657. </DataGrid.Columns>
  658. <DataGrid.Background>
  659. <SolidColorBrush />
  660. </DataGrid.Background>
  661. </DataGrid>
  662. </Grid>
  663. </Grid>
  664. </Grid>
  665. </UserControl>