EventView.xaml 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  1. <UserControl x:Class="MECF.Framework.UI.Client.CenterViews.DataLogs.Event.EventView"
  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:interop="clr-namespace:Microsoft.DwayneNeed.Interop;assembly=Microsoft.DwayneNeed"
  8. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  9. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  10. xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
  11. xmlns:micro="clr-namespace:Caliburn.Micro"
  12. xmlns:local="clr-namespace:MECF.Framework.UI.Client.CenterViews.DataLogs.Event"
  13. xmlns:converter="clr-namespace:MECF.Framework.UI.Client.Ctrlib.Converter"
  14. mc:Ignorable="d"
  15. Name="uc"
  16. d:DesignHeight="425" d:DesignWidth="1200">
  17. <UserControl.Resources>
  18. <converter:BoolReverseConverter x:Key="boolReverseConverter" />
  19. <converter:BoolVisibilityConverter x:Key="boolVisibilityConverter" />
  20. <Style
  21. TargetType="{x:Type local:CirclePointRingLoading}"
  22. x:Key="{x:Type local:CirclePointRingLoading}">
  23. <Setter
  24. Property="Foreground"
  25. Value="#FFFFFFFF" />
  26. <Setter
  27. Property="UIElement.IsHitTestVisible"
  28. Value="False" />
  29. <Setter
  30. Property="HorizontalAlignment"
  31. Value="Center" />
  32. <Setter
  33. Property="VerticalAlignment"
  34. Value="Center" />
  35. <Setter
  36. Property="MinHeight"
  37. Value="20" />
  38. <Setter
  39. Property="MinWidth"
  40. Value="20" />
  41. <Setter
  42. Property="Height"
  43. Value="60" />
  44. <Setter
  45. Property="Width"
  46. Value="60" />
  47. <Setter
  48. Property="IsTabStop"
  49. Value="False" />
  50. <Setter
  51. Property="Template">
  52. <Setter.Value>
  53. <ControlTemplate
  54. TargetType="{x:Type local:CirclePointRingLoading}">
  55. <Border
  56. Background="{TemplateBinding Background}"
  57. BorderThickness="{TemplateBinding BorderThickness}"
  58. BorderBrush="{TemplateBinding BorderBrush}">
  59. <FrameworkElement.Resources>
  60. <ResourceDictionary>
  61. <Style
  62. x:Key="ProgressRingEllipseStyle"
  63. TargetType="{x:Type Ellipse}">
  64. <Setter
  65. Property="UIElement.Opacity"
  66. Value="0" />
  67. <Setter
  68. Property="HorizontalAlignment"
  69. Value="Left" />
  70. <Setter
  71. Property="VerticalAlignment"
  72. Value="Top" />
  73. </Style>
  74. </ResourceDictionary>
  75. </FrameworkElement.Resources>
  76. <VisualStateManager.VisualStateGroups>
  77. <VisualStateGroup
  78. x:Name="SizeStates">
  79. <VisualState
  80. x:Name="Large">
  81. <Storyboard>
  82. <ObjectAnimationUsingKeyFrames
  83. Duration="0"
  84. Storyboard.TargetName="SixthCircle"
  85. Storyboard.TargetProperty="Visibility">
  86. <DiscreteObjectKeyFrame
  87. KeyTime="0">
  88. <ObjectKeyFrame.Value>
  89. <Visibility>Visible</Visibility>
  90. </ObjectKeyFrame.Value>
  91. </DiscreteObjectKeyFrame>
  92. </ObjectAnimationUsingKeyFrames>
  93. </Storyboard>
  94. </VisualState>
  95. <VisualState
  96. x:Name="Small" />
  97. </VisualStateGroup>
  98. <VisualStateGroup
  99. x:Name="ActiveStates">
  100. <VisualState
  101. x:Name="Inactive" />
  102. <VisualState
  103. x:Name="Active">
  104. <Storyboard
  105. RepeatBehavior="Forever">
  106. <ObjectAnimationUsingKeyFrames
  107. Duration="0"
  108. Storyboard.TargetName="Ring"
  109. Storyboard.TargetProperty="Visibility">
  110. <DiscreteObjectKeyFrame
  111. KeyTime="0">
  112. <ObjectKeyFrame.Value>
  113. <Visibility>Visible</Visibility>
  114. </ObjectKeyFrame.Value>
  115. </DiscreteObjectKeyFrame>
  116. </ObjectAnimationUsingKeyFrames>
  117. <DoubleAnimationUsingKeyFrames
  118. Storyboard.TargetName="E1"
  119. Storyboard.TargetProperty="Opacity"
  120. BeginTime="0">
  121. <DiscreteDoubleKeyFrame
  122. KeyTime="0"
  123. Value="1" />
  124. <DiscreteDoubleKeyFrame
  125. KeyTime="0:0:3.21"
  126. Value="1" />
  127. <DiscreteDoubleKeyFrame
  128. KeyTime="0:0:3.22"
  129. Value="0" />
  130. <DiscreteDoubleKeyFrame
  131. KeyTime="0:0:3.47"
  132. Value="0" />
  133. </DoubleAnimationUsingKeyFrames>
  134. <DoubleAnimationUsingKeyFrames
  135. Storyboard.TargetName="E2"
  136. Storyboard.TargetProperty="Opacity"
  137. BeginTime="00:00:00.167">
  138. <DiscreteDoubleKeyFrame
  139. KeyTime="0"
  140. Value="1" />
  141. <DiscreteDoubleKeyFrame
  142. KeyTime="0:0:3.21"
  143. Value="1" />
  144. <DiscreteDoubleKeyFrame
  145. KeyTime="0:0:3.22"
  146. Value="0" />
  147. <DiscreteDoubleKeyFrame
  148. KeyTime="0:0:3.47"
  149. Value="0" />
  150. </DoubleAnimationUsingKeyFrames>
  151. <DoubleAnimationUsingKeyFrames
  152. Storyboard.TargetName="E3"
  153. Storyboard.TargetProperty="Opacity"
  154. BeginTime="00:00:00.334">
  155. <DiscreteDoubleKeyFrame
  156. KeyTime="0"
  157. Value="1" />
  158. <DiscreteDoubleKeyFrame
  159. KeyTime="0:0:3.21"
  160. Value="1" />
  161. <DiscreteDoubleKeyFrame
  162. KeyTime="0:0:3.22"
  163. Value="0" />
  164. <DiscreteDoubleKeyFrame
  165. KeyTime="0:0:3.47"
  166. Value="0" />
  167. </DoubleAnimationUsingKeyFrames>
  168. <DoubleAnimationUsingKeyFrames
  169. Storyboard.TargetName="E4"
  170. Storyboard.TargetProperty="Opacity"
  171. BeginTime="00:00:00.501">
  172. <DiscreteDoubleKeyFrame
  173. KeyTime="0"
  174. Value="1" />
  175. <DiscreteDoubleKeyFrame
  176. KeyTime="0:0:3.21"
  177. Value="1" />
  178. <DiscreteDoubleKeyFrame
  179. KeyTime="0:0:3.22"
  180. Value="0" />
  181. <DiscreteDoubleKeyFrame
  182. KeyTime="0:0:3.47"
  183. Value="0" />
  184. </DoubleAnimationUsingKeyFrames>
  185. <DoubleAnimationUsingKeyFrames
  186. Storyboard.TargetName="E5"
  187. Storyboard.TargetProperty="Opacity"
  188. BeginTime="00:00:00.668">
  189. <DiscreteDoubleKeyFrame
  190. KeyTime="0"
  191. Value="1" />
  192. <DiscreteDoubleKeyFrame
  193. KeyTime="0:0:3.21"
  194. Value="1" />
  195. <DiscreteDoubleKeyFrame
  196. KeyTime="0:0:3.22"
  197. Value="0" />
  198. <DiscreteDoubleKeyFrame
  199. KeyTime="0:0:3.47"
  200. Value="0" />
  201. </DoubleAnimationUsingKeyFrames>
  202. <DoubleAnimationUsingKeyFrames
  203. Storyboard.TargetName="E6"
  204. Storyboard.TargetProperty="Opacity"
  205. BeginTime="00:00:00.835">
  206. <DiscreteDoubleKeyFrame
  207. KeyTime="0"
  208. Value="1" />
  209. <DiscreteDoubleKeyFrame
  210. KeyTime="0:0:3.21"
  211. Value="1" />
  212. <DiscreteDoubleKeyFrame
  213. KeyTime="0:0:3.22"
  214. Value="0" />
  215. <DiscreteDoubleKeyFrame
  216. KeyTime="0:0:3.47"
  217. Value="0" />
  218. </DoubleAnimationUsingKeyFrames>
  219. <DoubleAnimationUsingKeyFrames
  220. Storyboard.TargetName="E1R"
  221. BeginTime="0"
  222. Storyboard.TargetProperty="Angle">
  223. <SplineDoubleKeyFrame
  224. KeyTime="0"
  225. Value="-110"
  226. KeySpline="0.13,0.21,0.1,0.7" />
  227. <SplineDoubleKeyFrame
  228. KeyTime="0:0:0.433"
  229. Value="10"
  230. KeySpline="0.02,0.33,0.38,0.77" />
  231. <SplineDoubleKeyFrame
  232. KeyTime="0:0:1.2"
  233. Value="93" />
  234. <SplineDoubleKeyFrame
  235. KeyTime="0:0:1.617"
  236. Value="205"
  237. KeySpline="0.57,0.17,0.95,0.75" />
  238. <SplineDoubleKeyFrame
  239. KeyTime="0:0:2.017"
  240. Value="357"
  241. KeySpline="0,0.19,0.07,0.72" />
  242. <SplineDoubleKeyFrame
  243. KeyTime="0:0:2.783"
  244. Value="439" />
  245. <SplineDoubleKeyFrame
  246. KeyTime="0:0:3.217"
  247. Value="585"
  248. KeySpline="0,0,0.95,0.37" />
  249. </DoubleAnimationUsingKeyFrames>
  250. <DoubleAnimationUsingKeyFrames
  251. Storyboard.TargetName="E2R"
  252. BeginTime="00:00:00.167"
  253. Storyboard.TargetProperty="Angle">
  254. <SplineDoubleKeyFrame
  255. KeyTime="0"
  256. Value="-116"
  257. KeySpline="0.13,0.21,0.1,0.7" />
  258. <SplineDoubleKeyFrame
  259. KeyTime="0:0:0.433"
  260. Value="4"
  261. KeySpline="0.02,0.33,0.38,0.77" />
  262. <SplineDoubleKeyFrame
  263. KeyTime="0:0:1.2"
  264. Value="87" />
  265. <SplineDoubleKeyFrame
  266. KeyTime="0:0:1.617"
  267. Value="199"
  268. KeySpline="0.57,0.17,0.95,0.75" />
  269. <SplineDoubleKeyFrame
  270. KeyTime="0:0:2.017"
  271. Value="351"
  272. KeySpline="0,0.19,0.07,0.72" />
  273. <SplineDoubleKeyFrame
  274. KeyTime="0:0:2.783"
  275. Value="433" />
  276. <SplineDoubleKeyFrame
  277. KeyTime="0:0:3.217"
  278. Value="579"
  279. KeySpline="0,0,0.95,0.37" />
  280. </DoubleAnimationUsingKeyFrames>
  281. <DoubleAnimationUsingKeyFrames
  282. Storyboard.TargetName="E3R"
  283. BeginTime="00:00:00.334"
  284. Storyboard.TargetProperty="Angle">
  285. <SplineDoubleKeyFrame
  286. KeyTime="0"
  287. Value="-122"
  288. KeySpline="0.13,0.21,0.1,0.7" />
  289. <SplineDoubleKeyFrame
  290. KeyTime="0:0:0.433"
  291. Value="-2"
  292. KeySpline="0.02,0.33,0.38,0.77" />
  293. <SplineDoubleKeyFrame
  294. KeyTime="0:0:1.2"
  295. Value="81" />
  296. <SplineDoubleKeyFrame
  297. KeyTime="0:0:1.617"
  298. Value="193"
  299. KeySpline="0.57,0.17,0.95,0.75" />
  300. <SplineDoubleKeyFrame
  301. KeyTime="0:0:2.017"
  302. Value="345"
  303. KeySpline="0,0.19,0.07,0.72" />
  304. <SplineDoubleKeyFrame
  305. KeyTime="0:0:2.783"
  306. Value="427" />
  307. <SplineDoubleKeyFrame
  308. KeyTime="0:0:3.217"
  309. Value="573"
  310. KeySpline="0,0,0.95,0.37" />
  311. </DoubleAnimationUsingKeyFrames>
  312. <DoubleAnimationUsingKeyFrames
  313. Storyboard.TargetName="E4R"
  314. BeginTime="00:00:00.501"
  315. Storyboard.TargetProperty="Angle">
  316. <SplineDoubleKeyFrame
  317. KeyTime="0"
  318. Value="-128"
  319. KeySpline="0.13,0.21,0.1,0.7" />
  320. <SplineDoubleKeyFrame
  321. KeyTime="0:0:0.433"
  322. Value="-8"
  323. KeySpline="0.02,0.33,0.38,0.77" />
  324. <SplineDoubleKeyFrame
  325. KeyTime="0:0:1.2"
  326. Value="75" />
  327. <SplineDoubleKeyFrame
  328. KeyTime="0:0:1.617"
  329. Value="187"
  330. KeySpline="0.57,0.17,0.95,0.75" />
  331. <SplineDoubleKeyFrame
  332. KeyTime="0:0:2.017"
  333. Value="339"
  334. KeySpline="0,0.19,0.07,0.72" />
  335. <SplineDoubleKeyFrame
  336. KeyTime="0:0:2.783"
  337. Value="421" />
  338. <SplineDoubleKeyFrame
  339. KeyTime="0:0:3.217"
  340. Value="567"
  341. KeySpline="0,0,0.95,0.37" />
  342. </DoubleAnimationUsingKeyFrames>
  343. <DoubleAnimationUsingKeyFrames
  344. Storyboard.TargetName="E5R"
  345. BeginTime="00:00:00.668"
  346. Storyboard.TargetProperty="Angle">
  347. <SplineDoubleKeyFrame
  348. KeyTime="0"
  349. Value="-134"
  350. KeySpline="0.13,0.21,0.1,0.7" />
  351. <SplineDoubleKeyFrame
  352. KeyTime="0:0:0.433"
  353. Value="-14"
  354. KeySpline="0.02,0.33,0.38,0.77" />
  355. <SplineDoubleKeyFrame
  356. KeyTime="0:0:1.2"
  357. Value="69" />
  358. <SplineDoubleKeyFrame
  359. KeyTime="0:0:1.617"
  360. Value="181"
  361. KeySpline="0.57,0.17,0.95,0.75" />
  362. <SplineDoubleKeyFrame
  363. KeyTime="0:0:2.017"
  364. Value="331"
  365. KeySpline="0,0.19,0.07,0.72" />
  366. <SplineDoubleKeyFrame
  367. KeyTime="0:0:2.783"
  368. Value="415" />
  369. <SplineDoubleKeyFrame
  370. KeyTime="0:0:3.217"
  371. Value="561"
  372. KeySpline="0,0,0.95,0.37" />
  373. </DoubleAnimationUsingKeyFrames>
  374. <DoubleAnimationUsingKeyFrames
  375. Storyboard.TargetName="E6R"
  376. BeginTime="00:00:00.835"
  377. Storyboard.TargetProperty="Angle">
  378. <SplineDoubleKeyFrame
  379. KeyTime="0"
  380. Value="-140"
  381. KeySpline="0.13,0.21,0.1,0.7" />
  382. <SplineDoubleKeyFrame
  383. KeyTime="0:0:0.433"
  384. Value="-20"
  385. KeySpline="0.02,0.33,0.38,0.77" />
  386. <SplineDoubleKeyFrame
  387. KeyTime="0:0:1.2"
  388. Value="63" />
  389. <SplineDoubleKeyFrame
  390. KeyTime="0:0:1.617"
  391. Value="175"
  392. KeySpline="0.57,0.17,0.95,0.75" />
  393. <SplineDoubleKeyFrame
  394. KeyTime="0:0:2.017"
  395. Value="325"
  396. KeySpline="0,0.19,0.07,0.72" />
  397. <SplineDoubleKeyFrame
  398. KeyTime="0:0:2.783"
  399. Value="409" />
  400. <SplineDoubleKeyFrame
  401. KeyTime="0:0:3.217"
  402. Value="555"
  403. KeySpline="0,0,0.95,0.37" />
  404. </DoubleAnimationUsingKeyFrames>
  405. </Storyboard>
  406. </VisualState>
  407. </VisualStateGroup>
  408. </VisualStateManager.VisualStateGroups>
  409. <Grid
  410. Name="Ring"
  411. Margin="{TemplateBinding Padding}"
  412. Visibility="Visible"
  413. RenderTransformOrigin=".5,.5"
  414. FlowDirection="LeftToRight"
  415. MaxWidth="{Binding MaxSideLength, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  416. MaxHeight="{Binding MaxSideLength, RelativeSource={RelativeSource Mode=TemplatedParent}}">
  417. <Canvas
  418. RenderTransformOrigin=".5,.5">
  419. <UIElement.RenderTransform>
  420. <RotateTransform
  421. x:Name="E1R" />
  422. </UIElement.RenderTransform>
  423. <Ellipse
  424. Name="E1"
  425. Fill="{TemplateBinding Foreground}"
  426. Style="{StaticResource ProgressRingEllipseStyle}"
  427. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  428. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  429. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  430. </Canvas>
  431. <Canvas
  432. RenderTransformOrigin=".5,.5">
  433. <UIElement.RenderTransform>
  434. <RotateTransform
  435. x:Name="E2R" />
  436. </UIElement.RenderTransform>
  437. <Ellipse
  438. Name="E2"
  439. Fill="{TemplateBinding Foreground}"
  440. Style="{StaticResource ProgressRingEllipseStyle}"
  441. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  442. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  443. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  444. </Canvas>
  445. <Canvas
  446. RenderTransformOrigin=".5,.5">
  447. <UIElement.RenderTransform>
  448. <RotateTransform
  449. x:Name="E3R" />
  450. </UIElement.RenderTransform>
  451. <Ellipse
  452. Name="E3"
  453. Fill="{TemplateBinding Foreground}"
  454. Style="{StaticResource ProgressRingEllipseStyle}"
  455. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  456. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  457. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  458. </Canvas>
  459. <Canvas
  460. RenderTransformOrigin=".5,.5">
  461. <UIElement.RenderTransform>
  462. <RotateTransform
  463. x:Name="E4R" />
  464. </UIElement.RenderTransform>
  465. <Ellipse
  466. Name="E4"
  467. Fill="{TemplateBinding Foreground}"
  468. Style="{StaticResource ProgressRingEllipseStyle}"
  469. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  470. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  471. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  472. </Canvas>
  473. <Canvas
  474. RenderTransformOrigin=".5,.5">
  475. <UIElement.RenderTransform>
  476. <RotateTransform
  477. x:Name="E5R" />
  478. </UIElement.RenderTransform>
  479. <Ellipse
  480. Name="E5"
  481. Fill="{TemplateBinding Foreground}"
  482. Style="{StaticResource ProgressRingEllipseStyle}"
  483. Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  484. Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
  485. Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
  486. </Canvas>
  487. <Canvas
  488. Name="SixthCircle"
  489. RenderTransformOrigin=".5,.5"
  490. Visibility="Collapsed">
  491. <UIElement.RenderTransform>
  492. <RotateTransform
  493. x:Name="E6R" />
  494. </UIElement.RenderTransform>
  495. <Ellipse
  496. Name="E6"
  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. </Grid>
  504. </Border>
  505. </ControlTemplate>
  506. </Setter.Value>
  507. </Setter>
  508. </Style>
  509. </UserControl.Resources>
  510. <Grid HorizontalAlignment="Left" IsEnabled="{Binding IsPermission}">
  511. <Grid.ColumnDefinitions>
  512. <ColumnDefinition Width="260" />
  513. <ColumnDefinition Width="1600" />
  514. </Grid.ColumnDefinitions>
  515. <Grid Grid.Column="0">
  516. <Grid.RowDefinitions>
  517. <RowDefinition Height="24"/>
  518. <RowDefinition Height="Auto"/>
  519. <RowDefinition Height="Auto"/>
  520. <RowDefinition Height="Auto"/>
  521. <RowDefinition Height="Auto"/>
  522. <RowDefinition Height="Auto"/>
  523. <RowDefinition Height="Auto"/>
  524. <RowDefinition Height="Auto"/>
  525. <RowDefinition Height="Auto"/>
  526. </Grid.RowDefinitions>
  527. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  528. <TextBlock Text="Query Condition" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  529. </Border>
  530. <Border Grid.Row="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  531. <StackPanel Margin="0,5">
  532. <StackPanel Orientation="Horizontal">
  533. <TextBlock Text="Start Time" Width="70" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
  534. <interop:AirspaceDecorator AirspaceMode="Redirect" IsInputRedirectionEnabled="True" IsOutputRedirectionEnabled="True">
  535. <wfi:WindowsFormsHost Margin="0,0,0,0" FontSize="14" FontFamily="Arial" Width="170" Height="22" VerticalAlignment="Center">
  536. <wf:DateTimePicker x:Name="wfTimeFrom" Value="2011-8-1" CustomFormat="yyyy/MM/dd HH:mm:ss" Format="Custom"></wf:DateTimePicker>
  537. </wfi:WindowsFormsHost>
  538. </interop:AirspaceDecorator>
  539. </StackPanel>
  540. <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
  541. <TextBlock Text="End Time" Width="70" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
  542. <interop:AirspaceDecorator AirspaceMode="Redirect" IsInputRedirectionEnabled="True" IsOutputRedirectionEnabled="True">
  543. <wfi:WindowsFormsHost Margin="0,0,0,0" FontSize="14" FontFamily="Arial" Width="170" Height="22" VerticalAlignment="Center">
  544. <wf:DateTimePicker x:Name="wfTimeTo" Value="2013-8-1" CustomFormat="yyyy/MM/dd HH:mm:ss" Format="Custom"></wf:DateTimePicker>
  545. </wfi:WindowsFormsHost>
  546. </interop:AirspaceDecorator>
  547. </StackPanel>
  548. </StackPanel>
  549. </Border>
  550. <Border Grid.Row="2" Margin="0,5,0,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Height="30">
  551. <TextBlock Text="Query Option" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  552. </Border>
  553. <Border Grid.Row="3" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  554. <UniformGrid Columns="2" Margin="0,5">
  555. <CheckBox Content="Alarm" IsChecked="{Binding SearchAlarmEvent}" FontSize="14"/>
  556. <CheckBox Content="Warning" IsChecked="{Binding SearchWarningEvent}" FontSize="14"/>
  557. <CheckBox Content="Information" IsChecked="{Binding SearchInfoEvent}" FontSize="14"/>
  558. <!--<CheckBox Content="Operation" Height="Auto" IsChecked="{Binding SearchOpeLog}" FontSize="14" />-->
  559. </UniformGrid>
  560. </Border>
  561. <Border Grid.Row="4" Margin="0,5,0,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Height="30">
  562. <TextBlock Text="Extra Condition" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  563. </Border>
  564. <Border Grid.Row="5" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  565. <StackPanel Orientation="Horizontal" Margin="0,5">
  566. <TextBlock Text="Key Words" Name="checkBox3" Tag="ReactorC" FontFamily="Arial" FontSize="14" VerticalAlignment="Center"/>
  567. <TextBox Margin="5,0,0,0" FontSize="14" Text="{Binding SearchKeyWords,UpdateSourceTrigger=PropertyChanged}" Width="170"/>
  568. </StackPanel>
  569. </Border>
  570. <StackPanel Grid.Row="6" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,20">
  571. <Button Width="100" Height="30" FontFamily="Arial" Content="Query">
  572. <i:Interaction.Triggers>
  573. <i:EventTrigger EventName="Click">
  574. <micro:ActionMessage MethodName="Search">
  575. </micro:ActionMessage>
  576. </i:EventTrigger>
  577. </i:Interaction.Triggers>
  578. </Button>
  579. <Button Width="100" Height="30" Margin="0,10,0,0" FontFamily="Arial" Content="Export">
  580. <i:Interaction.Triggers>
  581. <i:EventTrigger EventName="Click">
  582. <micro:ActionMessage MethodName="Export">
  583. </micro:ActionMessage>
  584. </i:EventTrigger>
  585. </i:Interaction.Triggers>
  586. </Button>
  587. </StackPanel>
  588. <Border Grid.Row="7" Margin="0,5,0,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Height="30">
  589. <TextBlock Text="Filter Condition" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  590. </Border>
  591. <Border Grid.Row="8" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  592. <StackPanel Margin="0,5">
  593. <StackPanel Orientation="Horizontal">
  594. <TextBlock Text="System" Name="checkBox" Tag="ReactorC" FontFamily="Arial" FontSize="14" VerticalAlignment="Center"/>
  595. <toolkit:CheckComboBox x:Name="tbLoadPort1" ItemsSource="{Binding SourceLP}" Width="170" FontFamily="Arial" FontSize="14" Height="25" Margin="26,0,0,0"
  596. HorizontalAlignment="Center"
  597. VerticalAlignment="Center" SelectedItemsOverride="{Binding sourcelp}"
  598. SelectedValue="{Binding SelectedValueLP}" ToolTip="{Binding ElementName=tbLoadPort1,Path=SelectedValue}" ItemSelectionChanged="tbLoadPort1_ItemSelectionChanged" >
  599. <i:Interaction.Triggers>
  600. <i:EventTrigger EventName="ItemSelectionChanged" >
  601. <i:InvokeCommandAction Command="{Binding tbLoadPort1SelectionChangedCommand}" CommandParameter="{Binding ElementName=uc,Path=tbLoadPort1ToolTipValueData}"/>
  602. </i:EventTrigger>
  603. </i:Interaction.Triggers>
  604. <!--<toolkit:CheckComboBox.ToolTip>
  605. <ToolTip>
  606. <StackPanel>
  607. <TextBlock Text="{Binding ElementName=tbLoadPort1,Path=SelectedValue}"></TextBlock>
  608. </StackPanel>
  609. </ToolTip>
  610. </toolkit:CheckComboBox.ToolTip>-->
  611. </toolkit:CheckComboBox>
  612. </StackPanel>
  613. <!-- <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
  614. <TextBlock Text="Description" Name="checkBox4" Tag="ReactorC" FontFamily="Arial" FontSize="14" VerticalAlignment="Center"/>
  615. <toolkit:CheckComboBox x:Name="tbLoadPort2" ItemsSource="{Binding SourceDS}" Width="170" FontFamily="Arial" FontSize="14" Height="25" Margin="3,0,0,0"
  616. HorizontalAlignment="Center"
  617. VerticalAlignment="Center"
  618. SelectedValue="{Binding SelectedValueDS}" ToolTip="{Binding ElementName=uc,Path=tbLoadPort2ToolTipValueData}" ItemSelectionChanged="tbLoadPort2_ItemSelectionChanged" >
  619. </toolkit:CheckComboBox>
  620. </StackPanel>-->
  621. <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
  622. <TextBlock Text="Key Words" Name="checkBox9" Tag="ReactorC" FontFamily="Arial" FontSize="14" VerticalAlignment="Center"/>
  623. <TextBox Margin="5,0,0,0" Text="{Binding SearchDSKeyWords,UpdateSourceTrigger=PropertyChanged}" FontSize="14" Width="170"/>
  624. </StackPanel>
  625. <!--<CheckBox IsThreeState="True" Width="100" Height="30" Margin="0,10,0,0" FontFamily="Arial" Content="ALL"/>-->
  626. <Button Width="100" Height="30" Margin="0,10,0,0" FontFamily="Arial" Content="Filter">
  627. <i:Interaction.Triggers>
  628. <i:EventTrigger EventName="Click">
  629. <micro:ActionMessage MethodName="Filter">
  630. </micro:ActionMessage>
  631. </i:EventTrigger>
  632. </i:Interaction.Triggers>
  633. </Button>
  634. </StackPanel>
  635. </Border>
  636. </Grid>
  637. <Grid Grid.Column="1" Margin="10,0,0,0">
  638. <Grid>
  639. <Grid.RowDefinitions>
  640. <RowDefinition Height="35"/>
  641. <RowDefinition Height="740"/>
  642. </Grid.RowDefinitions>
  643. <Canvas Grid.Row="0">
  644. <TextBlock Height="23" FontSize="16" Text="Show" VerticalAlignment="Top" Canvas.Left="18" Canvas.Top="12" />
  645. <ComboBox IsEnabled="{Binding IsLoading, Converter={StaticResource boolReverseConverter}}" 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" >
  646. </ComboBox>
  647. <TextBlock Height="23" FontSize="16" Text="Items Per Page " VerticalAlignment="Top" Canvas.Left="170" Canvas.Top="12" />
  648. <TextBlock Height="23" FontSize="16" Visibility="{Binding IsLoading, Converter={StaticResource boolVisibilityConverter}}" Text="Loading..." VerticalAlignment="Top" Canvas.Left="323" Canvas.Top="13" />
  649. <local:CirclePointRingLoading Height="30" Visibility="{Binding IsLoading, Converter={StaticResource boolVisibilityConverter}}" IsActive="True" IsLarge="True" Foreground="#3ca9fe" Width="30" Canvas.Left="339" Canvas.Top="5" />
  650. <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"/>
  651. <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"/>
  652. <TextBlock Height="23" Width="100" TextAlignment="Center" FontSize="16" Text="{Binding PageInfo}" VerticalAlignment="Center" Canvas.Left="640" Canvas.Top="16" />
  653. <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"/>
  654. <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"/>
  655. </Canvas>
  656. <!--<StackPanel Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Horizontal">
  657. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Width="70" Height="24">
  658. <TextBlock Text="Total:" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
  659. </Border>
  660. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1" Width="130" Height="24">
  661. <TextBlock Text="{Binding SearchedResult.Count}" FlowDirection="LeftToRight" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
  662. </Border>
  663. --><!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Width="70" Height="24">
  664. <TextBlock Text="Records" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
  665. </Border>-->
  666. <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1" Width="150" Height="24">
  667. <TextBlock Text="" FlowDirection="LeftToRight" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
  668. </Border>--><!--
  669. </StackPanel>-->
  670. <DataGrid Grid.Row="1" Margin="0,5,0,0"
  671. Width="Auto"
  672. ScrollViewer.CanContentScroll="True"
  673. ScrollViewer.VerticalScrollBarVisibility="Auto"
  674. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  675. HorizontalAlignment="Left"
  676. AutoGenerateColumns="False" Name="dataGrid1" ItemsSource="{Binding SearchedResult,Mode=OneWay}"
  677. CanUserReorderColumns="False" CanUserAddRows="False"
  678. CanUserSortColumns="False"
  679. IsReadOnly="True" FontSize="14">
  680. <DataGrid.Columns>
  681. <DataGridTemplateColumn Width="40" CanUserSort="True" SortMemberPath="Icon">
  682. <DataGridTemplateColumn.CellTemplate>
  683. <DataTemplate>
  684. <Image Width="20" Height="20" HorizontalAlignment="Center" Stretch="Fill" VerticalAlignment="Center" Source="{Binding Icon}" />
  685. </DataTemplate>
  686. </DataGridTemplateColumn.CellTemplate>
  687. </DataGridTemplateColumn>
  688. <DataGridTextColumn Width="70" Binding="{Binding LogType,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  689. <DataGridTextColumn.HeaderTemplate >
  690. <DataTemplate>
  691. <TextBlock Text="Type" VerticalAlignment="Center" TextAlignment="Center"/>
  692. </DataTemplate>
  693. </DataGridTextColumn.HeaderTemplate>
  694. </DataGridTextColumn>
  695. <DataGridTextColumn Width="200" Binding="{Binding Time,Mode=OneWay}" CanUserSort="True" CanUserReorder="True" IsReadOnly="True" CanUserResize="False">
  696. <DataGridTextColumn.HeaderTemplate >
  697. <DataTemplate>
  698. <TextBlock Text="Time" VerticalAlignment="Center" TextAlignment="Center"/>
  699. </DataTemplate>
  700. </DataGridTextColumn.HeaderTemplate>
  701. </DataGridTextColumn>
  702. <DataGridTextColumn Width="100" Binding="{Binding TargetChamber,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  703. <DataGridTextColumn.HeaderTemplate >
  704. <DataTemplate>
  705. <TextBlock Text="System" VerticalAlignment="Center" TextAlignment="Center"/>
  706. </DataTemplate>
  707. </DataGridTextColumn.HeaderTemplate>
  708. </DataGridTextColumn>
  709. <DataGridTemplateColumn Header="Description" Width="*" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  710. <DataGridTemplateColumn.HeaderTemplate >
  711. <DataTemplate>
  712. <TextBlock Text="Description" />
  713. </DataTemplate>
  714. </DataGridTemplateColumn.HeaderTemplate>
  715. <DataGridTemplateColumn.CellTemplate>
  716. <DataTemplate>
  717. <TextBlock Text="{Binding Detail}" VerticalAlignment="Center" TextWrapping="Wrap" />
  718. </DataTemplate>
  719. </DataGridTemplateColumn.CellTemplate>
  720. </DataGridTemplateColumn>
  721. </DataGrid.Columns>
  722. </DataGrid>
  723. </Grid>
  724. </Grid>
  725. </Grid>
  726. </UserControl>