RecipesCompareView.xaml 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392
  1. <UserControl
  2. x:Class="FurnaceUI.Views.Recipes.RecipesCompareView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:cal="http://www.caliburn.org"
  6. xmlns:controls="clr-namespace:OpenSEMI.Controls.Controls;assembly=MECF.Framework.UI.Client"
  7. xmlns:converter="clr-namespace:MECF.Framework.UI.Client.Ctrlib.Converter;assembly=MECF.Framework.UI.Client"
  8. xmlns:converter1="clr-namespace:FurnaceUI.Converter"
  9. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  10. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  11. xmlns:interop="clr-namespace:Microsoft.DwayneNeed.Interop;assembly=Microsoft.DwayneNeed"
  12. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  13. xmlns:wf="[wf ]clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
  14. d:DesignHeight="900"
  15. d:DesignWidth="1500"
  16. FontFamily="Segoe"
  17. mc:Ignorable="d">
  18. <UserControl.Resources>
  19. <converter1:StringShowNameConvert x:Key="stringConvert" />
  20. </UserControl.Resources>
  21. <Grid Margin="-5">
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="70" />
  24. <RowDefinition Height="40" />
  25. <RowDefinition Height="*" />
  26. </Grid.RowDefinitions>
  27. <Border
  28. Grid.Row="0"
  29. Background="{DynamicResource Table_BG_Content}"
  30. BorderBrush="{DynamicResource Table_BD}"
  31. BorderThickness="1"
  32. CornerRadius="5,5,0,0">
  33. <Grid>
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition Width="200" />
  36. <ColumnDefinition Width="200" />
  37. <ColumnDefinition Width="200" />
  38. <ColumnDefinition Width="200" />
  39. <ColumnDefinition Width="200" />
  40. <ColumnDefinition Width="*" />
  41. </Grid.ColumnDefinitions>
  42. <Border
  43. Grid.Column="0"
  44. Width="180"
  45. Margin="5"
  46. Padding="3"
  47. HorizontalAlignment="Left"
  48. BorderBrush="{DynamicResource Table_BD}"
  49. BorderThickness="1"
  50. IsEnabled="{Binding Path=IsStepModel}">
  51. <Grid>
  52. <Grid.RowDefinitions>
  53. <RowDefinition Height="*" />
  54. <RowDefinition Height="*" />
  55. </Grid.RowDefinitions>
  56. <CheckBox
  57. VerticalAlignment="Center"
  58. VerticalContentAlignment="Center"
  59. Content="Show Differing Steps"
  60. IsChecked="{Binding Path=IsShowDiffSteps, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  61. <CheckBox
  62. Grid.Row="1"
  63. VerticalAlignment="Center"
  64. VerticalContentAlignment="Center"
  65. Content="Show All Steps"
  66. IsChecked="{Binding Path=IsShowAllSteps, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  67. </Grid>
  68. </Border>
  69. <Border
  70. Grid.Column="1"
  71. Width="180"
  72. Margin="5"
  73. Padding="3"
  74. HorizontalAlignment="Left"
  75. BorderBrush="{DynamicResource Table_BD}"
  76. BorderThickness="1"
  77. IsEnabled="{Binding Path=IsStepModel}">
  78. <Grid>
  79. <Grid.RowDefinitions>
  80. <RowDefinition Height="*" />
  81. <RowDefinition Height="*" />
  82. </Grid.RowDefinitions>
  83. <CheckBox
  84. VerticalAlignment="Center"
  85. VerticalContentAlignment="Center"
  86. Content="Show Differing Parameters"
  87. IsChecked="{Binding Path=IsShowDiffParams, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  88. <CheckBox
  89. Grid.Row="1"
  90. VerticalAlignment="Center"
  91. VerticalContentAlignment="Center"
  92. Content="Show All Parameters"
  93. IsChecked="{Binding Path=IsShowAllParams, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  94. </Grid>
  95. </Border>
  96. <Border
  97. Grid.Column="2"
  98. Width="180"
  99. Margin="5"
  100. Padding="3"
  101. HorizontalAlignment="Left"
  102. BorderBrush="{DynamicResource Table_BD}"
  103. BorderThickness="1"
  104. IsEnabled="{Binding Path=IsStepModel}">
  105. <Grid>
  106. <Grid.RowDefinitions>
  107. <RowDefinition Height="*" />
  108. <RowDefinition Height="*" />
  109. </Grid.RowDefinitions>
  110. <CheckBox
  111. VerticalAlignment="Center"
  112. VerticalContentAlignment="Center"
  113. Content="Compare By Step #"
  114. IsChecked="{Binding Path=IsCompareByStep, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  115. <CheckBox
  116. Grid.Row="1"
  117. VerticalAlignment="Center"
  118. VerticalContentAlignment="Center"
  119. Content="Compare By Step Name"
  120. IsChecked="{Binding Path=IsCompareBySName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  121. </Grid>
  122. </Border>
  123. <Border
  124. Grid.Column="3"
  125. Width="180"
  126. Margin="5"
  127. Padding="3"
  128. HorizontalAlignment="Left"
  129. BorderBrush="{DynamicResource Table_BD}"
  130. BorderThickness="1">
  131. <Grid>
  132. <Grid.RowDefinitions>
  133. <RowDefinition Height="*" />
  134. <RowDefinition Height="*" />
  135. </Grid.RowDefinitions>
  136. <CheckBox
  137. VerticalAlignment="Center"
  138. VerticalContentAlignment="Center"
  139. Content="Step Mode"
  140. IsChecked="{Binding Path=IsStepModel, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  141. <CheckBox
  142. Grid.Row="1"
  143. VerticalAlignment="Center"
  144. VerticalContentAlignment="Center"
  145. Content="Whole Mode"
  146. IsChecked="{Binding Path=IsWholeModel, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  147. </Grid>
  148. </Border>
  149. <Border
  150. Grid.Column="4"
  151. Width="180"
  152. Margin="5"
  153. Padding="3"
  154. HorizontalAlignment="Left"
  155. BorderBrush="{DynamicResource Table_BD}"
  156. BorderThickness="1">
  157. <Grid>
  158. <Grid.RowDefinitions>
  159. <RowDefinition Height="*" />
  160. <RowDefinition Height="*" />
  161. </Grid.RowDefinitions>
  162. <Grid.ColumnDefinitions>
  163. <ColumnDefinition Width="Auto" />
  164. <ColumnDefinition Width="5" />
  165. <ColumnDefinition />
  166. </Grid.ColumnDefinitions>
  167. <Rectangle
  168. Width="50"
  169. Height="12"
  170. VerticalAlignment="Center"
  171. Fill="Tomato"
  172. Stroke="Black"
  173. StrokeThickness="1" />
  174. <TextBlock
  175. Grid.Column="2"
  176. VerticalAlignment="Center"
  177. FontSize="14"
  178. Text="Difference" />
  179. <Rectangle
  180. Grid.Row="1"
  181. Width="50"
  182. Height="12"
  183. VerticalAlignment="Center"
  184. Fill="Gold"
  185. Stroke="Black"
  186. StrokeThickness="1" />
  187. <TextBlock
  188. Grid.Row="1"
  189. Grid.Column="2"
  190. VerticalAlignment="Center"
  191. FontSize="14"
  192. Text="Omit/Skip" />
  193. </Grid>
  194. </Border>
  195. </Grid>
  196. </Border>
  197. <Grid Grid.Row="1" Margin="0,8,0,0">
  198. <Grid.ColumnDefinitions>
  199. <ColumnDefinition Width="100" />
  200. <ColumnDefinition Width="200*" />
  201. <ColumnDefinition Width="430" />
  202. <ColumnDefinition Width="100" />
  203. <ColumnDefinition Width="200*" />
  204. <ColumnDefinition Width="400" />
  205. </Grid.ColumnDefinitions>
  206. <Border
  207. Grid.Column="0"
  208. Padding="5,1,0,1"
  209. Background="{DynamicResource Table_BG_Title}"
  210. BorderBrush="{DynamicResource Table_BD}"
  211. BorderThickness="1,1,1,1">
  212. <TextBlock
  213. VerticalAlignment="Center"
  214. FontSize="13"
  215. Foreground="{DynamicResource FG_Black}"
  216. Text="Recipe Name"
  217. TextWrapping="Wrap" />
  218. </Border>
  219. <Border
  220. Grid.Column="1"
  221. Padding="5,1"
  222. Background="{DynamicResource Table_BG_Content}"
  223. BorderBrush="{DynamicResource Table_BD}"
  224. BorderThickness="0,1,1,1">
  225. <TextBlock
  226. HorizontalAlignment="Left"
  227. VerticalAlignment="Center"
  228. FontSize="13"
  229. Foreground="{DynamicResource FG_Black}"
  230. Text="{Binding RecipeA, Converter={StaticResource stringConvert}, ConverterParameter=15}"
  231. TextWrapping="Wrap"
  232. ToolTip="{Binding RecipeA}" />
  233. </Border>
  234. <StackPanel
  235. Grid.Column="2"
  236. Width="400"
  237. Orientation="Horizontal">
  238. <Button
  239. Width="80"
  240. Height="25"
  241. Margin="5,0,0,0"
  242. Padding="5,1"
  243. HorizontalAlignment="Left"
  244. Content="Select"
  245. FontSize="13">
  246. <i:Interaction.Triggers>
  247. <i:EventTrigger EventName="Click">
  248. <cal:ActionMessage MethodName="SelectA" />
  249. </i:EventTrigger>
  250. </i:Interaction.Triggers>
  251. </Button>
  252. <Button
  253. Width="80"
  254. Height="25"
  255. Margin="5,0,0,0"
  256. Padding="5,1"
  257. HorizontalAlignment="Left"
  258. Content="Remove"
  259. FontSize="13"
  260. IsEnabled="{Binding EnableButtonRemoveA}">
  261. <i:Interaction.Triggers>
  262. <i:EventTrigger EventName="Click">
  263. <cal:ActionMessage MethodName="RemoveA" />
  264. </i:EventTrigger>
  265. </i:Interaction.Triggers>
  266. </Button>
  267. <!--<Button
  268. Width="70"
  269. Height="25"
  270. Margin="35,0,0,0"
  271. Padding="5,1"
  272. HorizontalAlignment="Left"
  273. Content="Undo"
  274. FontSize="13"
  275. IsEnabled="{Binding IsSelectButtonEnable}">
  276. <i:Interaction.Triggers>
  277. <i:EventTrigger EventName="Click">
  278. <cal:ActionMessage MethodName="UndoB" />
  279. </i:EventTrigger>
  280. </i:Interaction.Triggers>
  281. </Button>
  282. <Button
  283. Width="70"
  284. Height="25"
  285. Margin="15,0,0,0"
  286. Padding="5,1"
  287. HorizontalAlignment="Left"
  288. Content="Save"
  289. FontSize="13"
  290. IsEnabled="{Binding IsSelectButtonEnable}">
  291. <i:Interaction.Triggers>
  292. <i:EventTrigger EventName="Click">
  293. <cal:ActionMessage MethodName="SaveA" />
  294. </i:EventTrigger>
  295. </i:Interaction.Triggers>
  296. </Button>-->
  297. </StackPanel>
  298. <Border
  299. Grid.Column="3"
  300. Padding="5,1,0,1"
  301. Background="{DynamicResource Table_BG_Title}"
  302. BorderBrush="{DynamicResource Table_BD}"
  303. BorderThickness="1,1,1,1">
  304. <TextBlock
  305. VerticalAlignment="Center"
  306. FontSize="13"
  307. Foreground="{DynamicResource FG_Black}"
  308. Text="Recipe Name"
  309. TextWrapping="Wrap" />
  310. </Border>
  311. <Border
  312. Grid.Column="4"
  313. Padding="5,1"
  314. Background="{DynamicResource Table_BG_Content}"
  315. BorderBrush="{DynamicResource Table_BD}"
  316. BorderThickness="0,1,1,1">
  317. <TextBlock
  318. HorizontalAlignment="Left"
  319. VerticalAlignment="Center"
  320. FontSize="13"
  321. Foreground="{DynamicResource FG_Black}"
  322. Text="{Binding RecipeB, Converter={StaticResource stringConvert}, ConverterParameter=15}"
  323. TextWrapping="Wrap"
  324. ToolTip="{Binding RecipeB}" />
  325. </Border>
  326. <StackPanel
  327. Grid.Column="5"
  328. Width="400"
  329. Orientation="Horizontal">
  330. <Button
  331. Width="80"
  332. Height="25"
  333. Margin="15,0,0,0"
  334. Padding="5,1"
  335. HorizontalAlignment="Left"
  336. Content="Select"
  337. FontSize="13">
  338. <i:Interaction.Triggers>
  339. <i:EventTrigger EventName="Click">
  340. <cal:ActionMessage MethodName="SelectB" />
  341. </i:EventTrigger>
  342. </i:Interaction.Triggers>
  343. </Button>
  344. <Button
  345. Width="80"
  346. Height="25"
  347. Margin="5,0,0,0"
  348. Padding="5,1"
  349. HorizontalAlignment="Left"
  350. Content="Remove"
  351. FontSize="13"
  352. IsEnabled="{Binding EnableButtonRemoveB}">
  353. <i:Interaction.Triggers>
  354. <i:EventTrigger EventName="Click">
  355. <cal:ActionMessage MethodName="RemoveB" />
  356. </i:EventTrigger>
  357. </i:Interaction.Triggers>
  358. </Button>
  359. <!--<Button
  360. Width="70"
  361. Height="25"
  362. Margin="35,0,0,0"
  363. Padding="5,1"
  364. HorizontalAlignment="Left"
  365. Content="Undo"
  366. FontSize="13"
  367. IsEnabled="{Binding IsSelectButtonEnable}">
  368. <i:Interaction.Triggers>
  369. <i:EventTrigger EventName="Click">
  370. <cal:ActionMessage MethodName="UndoA" />
  371. </i:EventTrigger>
  372. </i:Interaction.Triggers>
  373. </Button>
  374. <Button
  375. Width="70"
  376. Height="25"
  377. Margin="15,0,0,0"
  378. Padding="5,1"
  379. HorizontalAlignment="Left"
  380. Content="Save"
  381. FontSize="13"
  382. IsEnabled="{Binding IsSelectButtonEnable}">
  383. <i:Interaction.Triggers>
  384. <i:EventTrigger EventName="Click">
  385. <cal:ActionMessage MethodName="SaveB" />
  386. </i:EventTrigger>
  387. </i:Interaction.Triggers>
  388. </Button>-->
  389. </StackPanel>
  390. </Grid>
  391. <Grid Grid.Row="2" Visibility="{Binding WholeVisibility}">
  392. <Grid.ColumnDefinitions>
  393. <ColumnDefinition Width="100*" />
  394. <ColumnDefinition Width="100*" />
  395. </Grid.ColumnDefinitions>
  396. <Border
  397. Grid.Column="0"
  398. Margin="0,1,15,0"
  399. HorizontalAlignment="Stretch"
  400. Background="{DynamicResource Table_BG_Content}"
  401. BorderBrush="{DynamicResource Table_BD}"
  402. BorderThickness="1"
  403. CornerRadius=" 0">
  404. <Grid>
  405. <Grid.RowDefinitions>
  406. <RowDefinition Height="0" />
  407. <RowDefinition Height="0" />
  408. <RowDefinition Height="774*" />
  409. </Grid.RowDefinitions>
  410. <!--<Grid
  411. Grid.Row="0"
  412. Grid.RowSpan="2"
  413. Grid.Column="0">
  414. <Grid.RowDefinitions>
  415. <RowDefinition Height="20" />
  416. <RowDefinition Height="20" />
  417. </Grid.RowDefinitions>
  418. <Grid.ColumnDefinitions>
  419. <ColumnDefinition Width="50" />
  420. <ColumnDefinition Width="50" />
  421. <ColumnDefinition Width="*" />
  422. <ColumnDefinition Width="100" />
  423. </Grid.ColumnDefinitions>
  424. <TextBlock
  425. Grid.Column="0"
  426. Margin="10,5,0,0"
  427. Text="Line :" />
  428. <TextBlock
  429. Grid.Column="1"
  430. Margin="5,2,0,0"
  431. FontSize="15"
  432. FontWeight="Bold"
  433. Text="{Binding LineSelectionA.LineNumber}" />
  434. <TextBox
  435. Grid.RowSpan="2"
  436. Grid.Column="2"
  437. Height="40"
  438. Margin="5,2,0,0"
  439. FontSize="15"
  440. FontWeight="Bold"
  441. Text="{Binding LineSelectionA.LineText, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
  442. TextWrapping="Wrap" />
  443. <Button
  444. Grid.RowSpan="2"
  445. Grid.Column="3"
  446. Margin="5,2,5,0"
  447. Content="Modify">
  448. <i:Interaction.Triggers>
  449. <i:EventTrigger EventName="Click">
  450. <cal:ActionMessage MethodName="SaveLineA" />
  451. </i:EventTrigger>
  452. </i:Interaction.Triggers>
  453. </Button>
  454. </Grid>-->
  455. <DataGrid
  456. x:Name="WholeGridA"
  457. Grid.Row="2"
  458. Grid.RowSpan="2"
  459. Grid.Column="0"
  460. Margin="5"
  461. AutoGenerateColumns="False"
  462. Background="White"
  463. BorderThickness="0.1"
  464. CanUserAddRows="False"
  465. CanUserDeleteRows="False"
  466. FontFamily="Segoe"
  467. FontSize="13"
  468. IsReadOnly="True"
  469. ItemsSource="{Binding WholeListA, Mode=OneWay}"
  470. SelectedItem="{Binding LineSelectionA}"
  471. SelectionMode="Single"
  472. SelectionUnit="FullRow">
  473. <i:Interaction.Triggers>
  474. <i:EventTrigger EventName="SelectionChanged">
  475. <cal:ActionMessage MethodName="WholeGridSelectionChangedA" />
  476. </i:EventTrigger>
  477. </i:Interaction.Triggers>
  478. <DataGrid.Columns>
  479. <!--<DataGridTemplateColumn Width="100" Header="Copy To Left">
  480. <DataGridTemplateColumn.CellTemplate>
  481. <DataTemplate>
  482. <Button
  483. Width="60"
  484. Height="20"
  485. Padding="0,-3"
  486. Content="&gt;"
  487. FontSize="20"
  488. Visibility="{Binding CopyVisibility}">
  489. <i:Interaction.Triggers>
  490. <i:EventTrigger EventName="Click">
  491. <cal:ActionMessage MethodName="LineCopyToRight">
  492. <cal:Parameter Value="{Binding}" />
  493. </cal:ActionMessage>
  494. </i:EventTrigger>
  495. </i:Interaction.Triggers>
  496. </Button>
  497. </DataTemplate>
  498. </DataGridTemplateColumn.CellTemplate>
  499. </DataGridTemplateColumn>-->
  500. <DataGridTemplateColumn
  501. Width="55"
  502. CanUserSort="True"
  503. Header="Line #"
  504. IsReadOnly="True">
  505. <DataGridTemplateColumn.CellTemplate>
  506. <DataTemplate>
  507. <TextBlock
  508. Margin="5,0"
  509. HorizontalAlignment="Left"
  510. VerticalAlignment="Center"
  511. FontSize="14"
  512. Foreground="{DynamicResource FG_Black}"
  513. Text="{Binding LineNumber}"
  514. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  515. </DataTemplate>
  516. </DataGridTemplateColumn.CellTemplate>
  517. <DataGridTemplateColumn.CellStyle>
  518. <Style TargetType="DataGridCell">
  519. <Setter Property="Background" Value="{Binding Path=Background}" />
  520. </Style>
  521. </DataGridTemplateColumn.CellStyle>
  522. </DataGridTemplateColumn>
  523. <DataGridTemplateColumn
  524. Width="*"
  525. CanUserSort="True"
  526. Header="Line Text"
  527. IsReadOnly="True">
  528. <DataGridTemplateColumn.CellTemplate>
  529. <DataTemplate>
  530. <TextBlock
  531. Margin="5,0"
  532. HorizontalAlignment="Left"
  533. VerticalAlignment="Center"
  534. FontSize="14"
  535. Foreground="{DynamicResource FG_Black}"
  536. Text="{Binding LineText}"
  537. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  538. </DataTemplate>
  539. </DataGridTemplateColumn.CellTemplate>
  540. <DataGridTemplateColumn.CellStyle>
  541. <Style TargetType="DataGridCell">
  542. <Setter Property="Background" Value="{Binding Path=Background}" />
  543. </Style>
  544. </DataGridTemplateColumn.CellStyle>
  545. </DataGridTemplateColumn>
  546. </DataGrid.Columns>
  547. </DataGrid>
  548. </Grid>
  549. </Border>
  550. <GridSplitter
  551. Grid.Column="1"
  552. Width="10"
  553. HorizontalAlignment="Left"
  554. Cursor="SizeWE">
  555. <GridSplitter.Resources>
  556. <Style TargetType="{x:Type GridSplitter}">
  557. <Setter Property="PreviewStyle">
  558. <Setter.Value>
  559. <Style>
  560. <Setter Property="Control.Template">
  561. <Setter.Value>
  562. <ControlTemplate>
  563. <Rectangle Fill="#80000000" />
  564. </ControlTemplate>
  565. </Setter.Value>
  566. </Setter>
  567. </Style>
  568. </Setter.Value>
  569. </Setter>
  570. <Setter Property="Template">
  571. <Setter.Value>
  572. <ControlTemplate TargetType="{x:Type GridSplitter}">
  573. <Border BorderThickness="{TemplateBinding BorderThickness}" />
  574. </ControlTemplate>
  575. </Setter.Value>
  576. </Setter>
  577. </Style>
  578. </GridSplitter.Resources>
  579. <GridSplitter.Template>
  580. <ControlTemplate TargetType="{x:Type GridSplitter}">
  581. <Grid VerticalAlignment="Stretch">
  582. <Button
  583. Margin="-0.3,0,0,0"
  584. VerticalAlignment="Stretch"
  585. VerticalContentAlignment="Center"
  586. Background="#DDE0E3"
  587. BorderBrush="Transparent"
  588. BorderThickness="1"
  589. Content="⁞" />
  590. <Rectangle VerticalAlignment="Stretch" Fill="Transparent" />
  591. </Grid>
  592. </ControlTemplate>
  593. </GridSplitter.Template>
  594. </GridSplitter>
  595. <Border
  596. Grid.Column="1"
  597. Margin="15,1,0,0"
  598. HorizontalAlignment="Stretch"
  599. Background="{DynamicResource Table_BG_Content}"
  600. BorderBrush="{DynamicResource Table_BD}"
  601. BorderThickness="1"
  602. CornerRadius=" 0">
  603. <Grid Grid.Row="2">
  604. <Grid.RowDefinitions>
  605. <RowDefinition Height="0" />
  606. <RowDefinition Height="0" />
  607. <RowDefinition Height="*" />
  608. </Grid.RowDefinitions>
  609. <!--<Grid
  610. Grid.Row="0"
  611. Grid.RowSpan="2"
  612. Grid.Column="0">
  613. <Grid.RowDefinitions>
  614. <RowDefinition Height="20" />
  615. <RowDefinition Height="20" />
  616. </Grid.RowDefinitions>
  617. <Grid.ColumnDefinitions>
  618. <ColumnDefinition Width="50" />
  619. <ColumnDefinition Width="50" />
  620. <ColumnDefinition Width="100*" />
  621. <ColumnDefinition Width="100" />
  622. </Grid.ColumnDefinitions>
  623. <TextBlock
  624. Grid.Column="0"
  625. Margin="10,5,0,0"
  626. Text="Line:" />
  627. <TextBlock
  628. Grid.Column="1"
  629. Margin="5,2,0,0"
  630. FontSize="15"
  631. FontWeight="Bold"
  632. Text="{Binding LineSelectionB.LineNumber}" />
  633. <TextBox
  634. Grid.RowSpan="2"
  635. Grid.Column="2"
  636. Height="40"
  637. Margin="5,2,0,0"
  638. FontSize="15"
  639. FontWeight="Bold"
  640. Text="{Binding LineSelectionB.LineText, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
  641. TextWrapping="Wrap" />
  642. <Button
  643. Grid.RowSpan="2"
  644. Grid.Column="3"
  645. Margin="5,2,5,0"
  646. Content="Modify">
  647. <i:Interaction.Triggers>
  648. <i:EventTrigger EventName="Click">
  649. <cal:ActionMessage MethodName="SaveLineB" />
  650. </i:EventTrigger>
  651. </i:Interaction.Triggers>
  652. </Button>
  653. </Grid>-->
  654. <DataGrid
  655. x:Name="WholeGridB"
  656. Grid.Row="2"
  657. Grid.Column="0"
  658. Margin="5"
  659. AutoGenerateColumns="False"
  660. Background="White"
  661. BorderThickness="0.1"
  662. CanUserAddRows="False"
  663. CanUserDeleteRows="False"
  664. FontFamily="Segoe"
  665. FontSize="13"
  666. IsReadOnly="True"
  667. ItemsSource="{Binding WholeListB, Mode=OneWay}"
  668. SelectedItem="{Binding LineSelectionB}"
  669. SelectionMode="Single"
  670. SelectionUnit="FullRow">
  671. <i:Interaction.Triggers>
  672. <i:EventTrigger EventName="SelectionChanged">
  673. <cal:ActionMessage MethodName="WholeGridSelectionChangedB" />
  674. </i:EventTrigger>
  675. </i:Interaction.Triggers>
  676. <DataGrid.Columns>
  677. <!--<DataGridTemplateColumn Width="100" Header="Copy To Left">
  678. <DataGridTemplateColumn.CellTemplate>
  679. <DataTemplate>
  680. <Button
  681. Width="60"
  682. Height="20"
  683. Padding="0,-3"
  684. Content="&lt;"
  685. FontSize="20"
  686. Visibility="{Binding CopyVisibility}">
  687. <i:Interaction.Triggers>
  688. <i:EventTrigger EventName="Click">
  689. <cal:ActionMessage MethodName="LineCopyToLeft">
  690. <cal:Parameter Value="{Binding}" />
  691. </cal:ActionMessage>
  692. </i:EventTrigger>
  693. </i:Interaction.Triggers>
  694. </Button>
  695. </DataTemplate>
  696. </DataGridTemplateColumn.CellTemplate>
  697. </DataGridTemplateColumn>-->
  698. <DataGridTemplateColumn
  699. Width="55"
  700. CanUserSort="True"
  701. Header="Line #"
  702. IsReadOnly="True">
  703. <DataGridTemplateColumn.CellTemplate>
  704. <DataTemplate>
  705. <TextBlock
  706. Margin="5,0"
  707. HorizontalAlignment="Left"
  708. VerticalAlignment="Center"
  709. FontSize="14"
  710. Foreground="{DynamicResource FG_Black}"
  711. Text="{Binding LineNumber}"
  712. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  713. </DataTemplate>
  714. </DataGridTemplateColumn.CellTemplate>
  715. <DataGridTemplateColumn.CellStyle>
  716. <Style TargetType="DataGridCell">
  717. <Setter Property="Background" Value="{Binding Path=Background}" />
  718. </Style>
  719. </DataGridTemplateColumn.CellStyle>
  720. </DataGridTemplateColumn>
  721. <DataGridTemplateColumn
  722. Width="*"
  723. CanUserSort="True"
  724. Header="Line Text"
  725. IsReadOnly="True">
  726. <DataGridTemplateColumn.CellTemplate>
  727. <DataTemplate>
  728. <TextBlock
  729. Margin="5,0"
  730. HorizontalAlignment="Left"
  731. VerticalAlignment="Center"
  732. FontSize="14"
  733. Foreground="{DynamicResource FG_Black}"
  734. Text="{Binding LineText}"
  735. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  736. </DataTemplate>
  737. </DataGridTemplateColumn.CellTemplate>
  738. <DataGridTemplateColumn.CellStyle>
  739. <Style TargetType="DataGridCell">
  740. <Setter Property="Background" Value="{Binding Path=Background}" />
  741. </Style>
  742. </DataGridTemplateColumn.CellStyle>
  743. </DataGridTemplateColumn>
  744. </DataGrid.Columns>
  745. </DataGrid>
  746. </Grid>
  747. </Border>
  748. </Grid>
  749. <Grid Grid.Row="2" Visibility="{Binding StepVisibility}">
  750. <Grid.ColumnDefinitions>
  751. <ColumnDefinition Width="100*" />
  752. <ColumnDefinition Width="100*" />
  753. </Grid.ColumnDefinitions>
  754. <Border
  755. Grid.Column="0"
  756. Margin="0,1,15,0"
  757. HorizontalAlignment="Stretch"
  758. Background="{DynamicResource Table_BG_Content}"
  759. BorderBrush="{DynamicResource Table_BD}"
  760. BorderThickness="1"
  761. CornerRadius=" 0">
  762. <Grid>
  763. <Grid.ColumnDefinitions>
  764. <ColumnDefinition Width="102*" />
  765. <ColumnDefinition Width="100*" />
  766. </Grid.ColumnDefinitions>
  767. <Grid.RowDefinitions>
  768. <RowDefinition Height="20" />
  769. <RowDefinition Height="*" />
  770. </Grid.RowDefinitions>
  771. <StackPanel
  772. Grid.Row="0"
  773. Grid.Column="0"
  774. Orientation="Horizontal">
  775. <TextBlock Margin="20,5,0,0" Text="Step:" />
  776. <TextBlock
  777. Margin="10,2,0,0"
  778. FontSize="15"
  779. FontWeight="Bold"
  780. Text="{Binding StepSelectionA.StepNumber}" />
  781. <TextBlock
  782. Margin="10,2,0,0"
  783. FontSize="15"
  784. FontWeight="Bold"
  785. Text="{Binding StepSelectionA.StepName}" />
  786. </StackPanel>
  787. <DataGrid
  788. x:Name="StepGridA"
  789. Grid.Row="1"
  790. Grid.Column="0"
  791. Margin="5"
  792. AutoGenerateColumns="False"
  793. Background="White"
  794. BorderThickness="0.1"
  795. CanUserAddRows="False"
  796. CanUserDeleteRows="False"
  797. FontFamily="Segoe"
  798. FontSize="13"
  799. IsReadOnly="True"
  800. ItemsSource="{Binding StepListA, Mode=OneWay}"
  801. SelectedItem="{Binding StepSelectionA}"
  802. SelectionMode="Single"
  803. SelectionUnit="FullRow">
  804. <DataGrid.RowStyle>
  805. <Style TargetType="{x:Type DataGridRow}">
  806. <Style.Triggers>
  807. <DataTrigger Binding="{Binding IsHidden}" Value="True">
  808. <Setter Property="Visibility" Value="Collapsed" />
  809. </DataTrigger>
  810. </Style.Triggers>
  811. </Style>
  812. </DataGrid.RowStyle>
  813. <i:Interaction.Triggers>
  814. <i:EventTrigger EventName="SelectionChanged">
  815. <cal:ActionMessage MethodName="StepGridSelectionChangedA" />
  816. </i:EventTrigger>
  817. </i:Interaction.Triggers>
  818. <DataGrid.Columns>
  819. <!--<DataGridTemplateColumn Width="62" Header="Delete">
  820. <DataGridTemplateColumn.CellTemplate>
  821. <DataTemplate>
  822. <Button
  823. Width="60"
  824. Height="20"
  825. Padding="0,-3"
  826. Content="x"
  827. FontSize="20"
  828. Visibility="{Binding DeleteVisibility}">
  829. <i:Interaction.Triggers>
  830. <i:EventTrigger EventName="Click">
  831. <cal:ActionMessage MethodName="LeftDelete">
  832. <cal:Parameter Value="{Binding}" />
  833. </cal:ActionMessage>
  834. </i:EventTrigger>
  835. </i:Interaction.Triggers>
  836. </Button>
  837. </DataTemplate>
  838. </DataGridTemplateColumn.CellTemplate>
  839. </DataGridTemplateColumn>
  840. <DataGridTemplateColumn Width="104" Header="Copy To Right">
  841. <DataGridTemplateColumn.CellTemplate>
  842. <DataTemplate>
  843. <Button
  844. Width="60"
  845. Height="20"
  846. Padding="0,-3"
  847. Content="&gt;"
  848. FontSize="20"
  849. Visibility="{Binding CopyVisibility}">
  850. <i:Interaction.Triggers>
  851. <i:EventTrigger EventName="Click">
  852. <cal:ActionMessage MethodName="StepCopyToRight">
  853. <cal:Parameter Value="{Binding}" />
  854. </cal:ActionMessage>
  855. </i:EventTrigger>
  856. </i:Interaction.Triggers>
  857. </Button>
  858. </DataTemplate>
  859. </DataGridTemplateColumn.CellTemplate>
  860. </DataGridTemplateColumn>-->
  861. <DataGridTemplateColumn
  862. Width="50"
  863. CanUserSort="True"
  864. Header="Step#"
  865. IsReadOnly="True">
  866. <DataGridTemplateColumn.CellTemplate>
  867. <DataTemplate>
  868. <TextBlock
  869. Margin="5,0"
  870. HorizontalAlignment="Left"
  871. VerticalAlignment="Center"
  872. FontSize="14"
  873. Foreground="{DynamicResource FG_Black}"
  874. Text="{Binding StepNumber}"
  875. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  876. </DataTemplate>
  877. </DataGridTemplateColumn.CellTemplate>
  878. <DataGridTemplateColumn.CellStyle>
  879. <Style TargetType="DataGridCell">
  880. <Setter Property="Background" Value="{Binding Path=Background}" />
  881. </Style>
  882. </DataGridTemplateColumn.CellStyle>
  883. </DataGridTemplateColumn>
  884. <DataGridTemplateColumn
  885. Width="*"
  886. CanUserSort="True"
  887. Header="Step Name"
  888. IsReadOnly="True">
  889. <DataGridTemplateColumn.CellTemplate>
  890. <DataTemplate>
  891. <TextBlock
  892. Margin="5,0"
  893. HorizontalAlignment="Left"
  894. VerticalAlignment="Center"
  895. FontSize="14"
  896. Foreground="{DynamicResource FG_Black}"
  897. Text="{Binding StepName}"
  898. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  899. </DataTemplate>
  900. </DataGridTemplateColumn.CellTemplate>
  901. <DataGridTemplateColumn.CellStyle>
  902. <Style TargetType="DataGridCell">
  903. <Setter Property="Background" Value="{Binding Path=Background}" />
  904. </Style>
  905. </DataGridTemplateColumn.CellStyle>
  906. </DataGridTemplateColumn>
  907. </DataGrid.Columns>
  908. </DataGrid>
  909. <StackPanel
  910. Grid.Row="0"
  911. Grid.Column="1"
  912. Orientation="Horizontal">
  913. <TextBlock Margin="20,5,0,0" Text="Step Parameter:" />
  914. <TextBlock
  915. Margin="10,2,0,0"
  916. FontSize="15"
  917. FontWeight="Bold"
  918. Text="{Binding ParamSelectionA.ParamName}" />
  919. <TextBlock
  920. Margin="10,2,0,0"
  921. FontSize="15"
  922. FontWeight="Bold"
  923. Text="{Binding ParamSelectionA.ParamValue}" />
  924. </StackPanel>
  925. <DataGrid
  926. x:Name="ParamGridA"
  927. Grid.Row="1"
  928. Grid.Column="1"
  929. Margin="5"
  930. AutoGenerateColumns="False"
  931. Background="White"
  932. BorderThickness="0.1"
  933. CanUserAddRows="False"
  934. CanUserDeleteRows="False"
  935. FontFamily="Segoe"
  936. FontSize="13"
  937. IsReadOnly="True"
  938. ItemsSource="{Binding ParamListA, Mode=OneWay}"
  939. SelectedItem="{Binding ParamSelectionA}"
  940. SelectionMode="Single"
  941. SelectionUnit="FullRow">
  942. <DataGrid.RowStyle>
  943. <Style TargetType="{x:Type DataGridRow}">
  944. <Style.Triggers>
  945. <DataTrigger Binding="{Binding IsHidden}" Value="True">
  946. <Setter Property="Visibility" Value="Collapsed" />
  947. </DataTrigger>
  948. </Style.Triggers>
  949. </Style>
  950. </DataGrid.RowStyle>
  951. <i:Interaction.Triggers>
  952. <i:EventTrigger EventName="SelectionChanged">
  953. <cal:ActionMessage MethodName="ParamGridSelectionChangedA" />
  954. </i:EventTrigger>
  955. </i:Interaction.Triggers>
  956. <DataGrid.Columns>
  957. <!--<DataGridTemplateColumn Width="104" Header="Copy To Right">
  958. <DataGridTemplateColumn.CellTemplate>
  959. <DataTemplate>
  960. <Button
  961. Width="60"
  962. Height="25"
  963. Padding="0"
  964. Content="&gt;"
  965. FontSize="20"
  966. Visibility="{Binding CopyVisibility}">
  967. <i:Interaction.Triggers>
  968. <i:EventTrigger EventName="Click">
  969. <cal:ActionMessage MethodName="ParamCopyToRight">
  970. <cal:Parameter Value="{Binding}" />
  971. </cal:ActionMessage>
  972. </i:EventTrigger>
  973. </i:Interaction.Triggers>
  974. </Button>
  975. </DataTemplate>
  976. </DataGridTemplateColumn.CellTemplate>
  977. </DataGridTemplateColumn>-->
  978. <DataGridTemplateColumn
  979. Width="130"
  980. CanUserSort="True"
  981. Header="Parameter Name"
  982. IsReadOnly="True">
  983. <DataGridTemplateColumn.CellTemplate>
  984. <DataTemplate>
  985. <TextBlock
  986. Margin="5,0"
  987. HorizontalAlignment="Left"
  988. VerticalAlignment="Center"
  989. FontSize="14"
  990. Foreground="{DynamicResource FG_Black}"
  991. Text="{Binding ParamName}"
  992. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  993. </DataTemplate>
  994. </DataGridTemplateColumn.CellTemplate>
  995. <DataGridTemplateColumn.CellStyle>
  996. <Style TargetType="DataGridCell">
  997. <Setter Property="Background" Value="{Binding Path=Background}" />
  998. </Style>
  999. </DataGridTemplateColumn.CellStyle>
  1000. </DataGridTemplateColumn>
  1001. <DataGridTemplateColumn
  1002. Width="*"
  1003. CanUserSort="True"
  1004. Header="Parameter Value"
  1005. IsReadOnly="True">
  1006. <DataGridTemplateColumn.CellTemplate>
  1007. <DataTemplate>
  1008. <TextBlock
  1009. Margin="5,0"
  1010. HorizontalAlignment="Left"
  1011. VerticalAlignment="Center"
  1012. FontSize="14"
  1013. Foreground="{DynamicResource FG_Black}"
  1014. Text="{Binding ParamValue}"
  1015. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  1016. </DataTemplate>
  1017. </DataGridTemplateColumn.CellTemplate>
  1018. <DataGridTemplateColumn.CellStyle>
  1019. <Style TargetType="DataGridCell">
  1020. <Setter Property="Background" Value="{Binding Path=Background}" />
  1021. </Style>
  1022. </DataGridTemplateColumn.CellStyle>
  1023. </DataGridTemplateColumn>
  1024. </DataGrid.Columns>
  1025. </DataGrid>
  1026. </Grid>
  1027. </Border>
  1028. <GridSplitter
  1029. Grid.Column="1"
  1030. Width="10"
  1031. HorizontalAlignment="Left"
  1032. Cursor="SizeWE">
  1033. <GridSplitter.Resources>
  1034. <Style TargetType="{x:Type GridSplitter}">
  1035. <Setter Property="PreviewStyle">
  1036. <Setter.Value>
  1037. <Style>
  1038. <Setter Property="Control.Template">
  1039. <Setter.Value>
  1040. <ControlTemplate>
  1041. <Rectangle Fill="#80000000" />
  1042. </ControlTemplate>
  1043. </Setter.Value>
  1044. </Setter>
  1045. </Style>
  1046. </Setter.Value>
  1047. </Setter>
  1048. <Setter Property="Template">
  1049. <Setter.Value>
  1050. <ControlTemplate TargetType="{x:Type GridSplitter}">
  1051. <Border BorderThickness="{TemplateBinding BorderThickness}" />
  1052. </ControlTemplate>
  1053. </Setter.Value>
  1054. </Setter>
  1055. </Style>
  1056. </GridSplitter.Resources>
  1057. <GridSplitter.Template>
  1058. <ControlTemplate TargetType="{x:Type GridSplitter}">
  1059. <Grid VerticalAlignment="Stretch">
  1060. <Button
  1061. Margin="-0.3,0,0,0"
  1062. VerticalAlignment="Stretch"
  1063. VerticalContentAlignment="Center"
  1064. Background="#DDE0E3"
  1065. BorderBrush="Transparent"
  1066. BorderThickness="1"
  1067. Content="⁞" />
  1068. <Rectangle VerticalAlignment="Stretch" Fill="Transparent" />
  1069. </Grid>
  1070. </ControlTemplate>
  1071. </GridSplitter.Template>
  1072. </GridSplitter>
  1073. <Border
  1074. Grid.Column="1"
  1075. Margin="15,1,0,0"
  1076. HorizontalAlignment="Stretch"
  1077. Background="{DynamicResource Table_BG_Content}"
  1078. BorderBrush="{DynamicResource Table_BD}"
  1079. BorderThickness="1"
  1080. CornerRadius=" 0">
  1081. <Grid Grid.Row="2">
  1082. <Grid.ColumnDefinitions>
  1083. <ColumnDefinition Width="100*" />
  1084. <ColumnDefinition Width="100*" />
  1085. </Grid.ColumnDefinitions>
  1086. <Grid.RowDefinitions>
  1087. <RowDefinition Height="20" />
  1088. <RowDefinition Height="*" />
  1089. </Grid.RowDefinitions>
  1090. <StackPanel
  1091. Grid.Row="0"
  1092. Grid.Column="0"
  1093. Orientation="Horizontal">
  1094. <TextBlock Margin="20,5,0,0" Text="Step:" />
  1095. <TextBlock
  1096. Margin="10,2,0,0"
  1097. FontSize="15"
  1098. FontWeight="Bold"
  1099. Text="{Binding StepSelectionB.StepNumber}" />
  1100. <TextBlock
  1101. Margin="10,2,0,0"
  1102. FontSize="15"
  1103. FontWeight="Bold"
  1104. Text="{Binding StepSelectionB.StepName}" />
  1105. </StackPanel>
  1106. <DataGrid
  1107. x:Name="StepGridB"
  1108. Grid.Row="1"
  1109. Grid.Column="0"
  1110. Margin="5"
  1111. AutoGenerateColumns="False"
  1112. Background="White"
  1113. BorderThickness="0.1"
  1114. CanUserAddRows="False"
  1115. CanUserDeleteRows="False"
  1116. FontFamily="Segoe"
  1117. FontSize="13"
  1118. IsReadOnly="True"
  1119. ItemsSource="{Binding StepListB, Mode=OneWay}"
  1120. SelectedItem="{Binding StepSelectionB}"
  1121. SelectionMode="Single"
  1122. SelectionUnit="FullRow">
  1123. <DataGrid.RowStyle>
  1124. <Style TargetType="{x:Type DataGridRow}">
  1125. <Style.Triggers>
  1126. <DataTrigger Binding="{Binding IsHidden}" Value="True">
  1127. <Setter Property="Visibility" Value="Collapsed" />
  1128. </DataTrigger>
  1129. </Style.Triggers>
  1130. </Style>
  1131. </DataGrid.RowStyle>
  1132. <i:Interaction.Triggers>
  1133. <i:EventTrigger EventName="SelectionChanged">
  1134. <cal:ActionMessage MethodName="StepGridSelectionChangedB" />
  1135. </i:EventTrigger>
  1136. </i:Interaction.Triggers>
  1137. <DataGrid.Columns>
  1138. <!--<DataGridTemplateColumn Width="63" Header="Delete">
  1139. <DataGridTemplateColumn.CellTemplate>
  1140. <DataTemplate>
  1141. <Button
  1142. Width="60"
  1143. Height="20"
  1144. Padding="0,-3"
  1145. Content="x"
  1146. FontSize="20"
  1147. Visibility="{Binding DeleteVisibility}">
  1148. <i:Interaction.Triggers>
  1149. <i:EventTrigger EventName="Click">
  1150. <cal:ActionMessage MethodName="RightDelete">
  1151. <cal:Parameter Value="{Binding}" />
  1152. </cal:ActionMessage>
  1153. </i:EventTrigger>
  1154. </i:Interaction.Triggers>
  1155. </Button>
  1156. </DataTemplate>
  1157. </DataGridTemplateColumn.CellTemplate>
  1158. </DataGridTemplateColumn>
  1159. <DataGridTemplateColumn Width="95" Header="Copy To Left">
  1160. <DataGridTemplateColumn.CellTemplate>
  1161. <DataTemplate>
  1162. <Button
  1163. Width="60"
  1164. Height="20"
  1165. Padding="0,-3"
  1166. Content="&lt;"
  1167. FontSize="20"
  1168. Visibility="{Binding CopyVisibility}">
  1169. <i:Interaction.Triggers>
  1170. <i:EventTrigger EventName="Click">
  1171. <cal:ActionMessage MethodName="StepCopyToLeft">
  1172. <cal:Parameter Value="{Binding}" />
  1173. </cal:ActionMessage>
  1174. </i:EventTrigger>
  1175. </i:Interaction.Triggers>
  1176. </Button>
  1177. </DataTemplate>
  1178. </DataGridTemplateColumn.CellTemplate>
  1179. </DataGridTemplateColumn>-->
  1180. <DataGridTemplateColumn
  1181. Width="55"
  1182. CanUserSort="True"
  1183. Header="Step #"
  1184. IsReadOnly="True">
  1185. <DataGridTemplateColumn.CellTemplate>
  1186. <DataTemplate>
  1187. <TextBlock
  1188. Margin="5,0"
  1189. HorizontalAlignment="Left"
  1190. VerticalAlignment="Center"
  1191. FontSize="14"
  1192. Foreground="{DynamicResource FG_Black}"
  1193. Text="{Binding StepNumber}"
  1194. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  1195. </DataTemplate>
  1196. </DataGridTemplateColumn.CellTemplate>
  1197. <DataGridTemplateColumn.CellStyle>
  1198. <Style TargetType="DataGridCell">
  1199. <Setter Property="Background" Value="{Binding Path=Background}" />
  1200. </Style>
  1201. </DataGridTemplateColumn.CellStyle>
  1202. </DataGridTemplateColumn>
  1203. <DataGridTemplateColumn
  1204. Width="*"
  1205. CanUserSort="True"
  1206. Header="Step Name"
  1207. IsReadOnly="True">
  1208. <DataGridTemplateColumn.CellTemplate>
  1209. <DataTemplate>
  1210. <TextBlock
  1211. Margin="5,0"
  1212. HorizontalAlignment="Left"
  1213. VerticalAlignment="Center"
  1214. FontSize="14"
  1215. Foreground="{DynamicResource FG_Black}"
  1216. Text="{Binding StepName}"
  1217. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  1218. </DataTemplate>
  1219. </DataGridTemplateColumn.CellTemplate>
  1220. <DataGridTemplateColumn.CellStyle>
  1221. <Style TargetType="DataGridCell">
  1222. <Setter Property="Background" Value="{Binding Path=Background}" />
  1223. </Style>
  1224. </DataGridTemplateColumn.CellStyle>
  1225. </DataGridTemplateColumn>
  1226. </DataGrid.Columns>
  1227. </DataGrid>
  1228. <StackPanel
  1229. Grid.Row="0"
  1230. Grid.Column="1"
  1231. Orientation="Horizontal">
  1232. <TextBlock Margin="20,5,0,0" Text="Step Parameter:" />
  1233. <TextBlock
  1234. Margin="10,2,0,0"
  1235. FontSize="15"
  1236. FontWeight="Bold"
  1237. Text="{Binding ParamSelectionB.ParamName}" />
  1238. <TextBlock
  1239. Margin="10,2,0,0"
  1240. FontSize="15"
  1241. FontWeight="Bold"
  1242. Text="{Binding ParamSelectionB.ParamValue}" />
  1243. </StackPanel>
  1244. <DataGrid
  1245. x:Name="ParamGridB"
  1246. Grid.Row="1"
  1247. Grid.Column="1"
  1248. Margin="5"
  1249. AutoGenerateColumns="False"
  1250. Background="White"
  1251. BorderThickness="0.1"
  1252. CanUserAddRows="False"
  1253. CanUserDeleteRows="False"
  1254. FontFamily="Segoe"
  1255. FontSize="13"
  1256. IsReadOnly="True"
  1257. ItemsSource="{Binding ParamListB, Mode=OneWay}"
  1258. SelectedItem="{Binding ParamSelectionB}"
  1259. SelectionMode="Single"
  1260. SelectionUnit="FullRow">
  1261. <DataGrid.RowStyle>
  1262. <Style TargetType="{x:Type DataGridRow}">
  1263. <Style.Triggers>
  1264. <DataTrigger Binding="{Binding IsHidden}" Value="True">
  1265. <Setter Property="Visibility" Value="Collapsed" />
  1266. </DataTrigger>
  1267. </Style.Triggers>
  1268. </Style>
  1269. </DataGrid.RowStyle>
  1270. <i:Interaction.Triggers>
  1271. <i:EventTrigger EventName="SelectionChanged">
  1272. <cal:ActionMessage MethodName="ParamGridSelectionChangedB" />
  1273. </i:EventTrigger>
  1274. </i:Interaction.Triggers>
  1275. <DataGrid.Columns>
  1276. <!--<DataGridTemplateColumn Width="100" Header="Copy To Left">
  1277. <DataGridTemplateColumn.CellTemplate>
  1278. <DataTemplate>
  1279. <Button
  1280. Width="60"
  1281. Height="25"
  1282. Padding="0"
  1283. Content="&lt;"
  1284. FontSize="20"
  1285. Visibility="{Binding CopyVisibility}">
  1286. <i:Interaction.Triggers>
  1287. <i:EventTrigger EventName="Click">
  1288. <cal:ActionMessage MethodName="ParamCopyToLeft">
  1289. <cal:Parameter Value="{Binding}" />
  1290. </cal:ActionMessage>
  1291. </i:EventTrigger>
  1292. </i:Interaction.Triggers>
  1293. </Button>
  1294. </DataTemplate>
  1295. </DataGridTemplateColumn.CellTemplate>
  1296. </DataGridTemplateColumn>-->
  1297. <DataGridTemplateColumn
  1298. Width="130"
  1299. CanUserSort="True"
  1300. Header="Parameter Name"
  1301. IsReadOnly="True">
  1302. <DataGridTemplateColumn.CellTemplate>
  1303. <DataTemplate>
  1304. <TextBlock
  1305. Margin="5,0"
  1306. HorizontalAlignment="Left"
  1307. VerticalAlignment="Center"
  1308. FontSize="14"
  1309. Foreground="{DynamicResource FG_Black}"
  1310. Text="{Binding ParamName}"
  1311. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  1312. </DataTemplate>
  1313. </DataGridTemplateColumn.CellTemplate>
  1314. <DataGridTemplateColumn.CellStyle>
  1315. <Style TargetType="DataGridCell">
  1316. <Setter Property="Background" Value="{Binding Path=Background}" />
  1317. </Style>
  1318. </DataGridTemplateColumn.CellStyle>
  1319. </DataGridTemplateColumn>
  1320. <DataGridTemplateColumn
  1321. Width="*"
  1322. CanUserSort="True"
  1323. Header="Parameter Value"
  1324. IsReadOnly="True">
  1325. <DataGridTemplateColumn.CellTemplate>
  1326. <DataTemplate>
  1327. <TextBlock
  1328. Margin="5,0"
  1329. HorizontalAlignment="Left"
  1330. VerticalAlignment="Center"
  1331. FontSize="14"
  1332. Foreground="{DynamicResource FG_Black}"
  1333. Text="{Binding ParamValue}"
  1334. ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" />
  1335. </DataTemplate>
  1336. </DataGridTemplateColumn.CellTemplate>
  1337. <DataGridTemplateColumn.CellStyle>
  1338. <Style TargetType="DataGridCell">
  1339. <Setter Property="Background" Value="{Binding Path=Background}" />
  1340. </Style>
  1341. </DataGridTemplateColumn.CellStyle>
  1342. </DataGridTemplateColumn>
  1343. </DataGrid.Columns>
  1344. </DataGrid>
  1345. </Grid>
  1346. </Border>
  1347. </Grid>
  1348. </Grid>
  1349. </UserControl>