EventLogView.xaml 40 KB

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