f98e25e21e09495203d6fe73348d2179b5f1f58da5dc1a7d8f90b8e83ea26ab8.source 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. #pragma checksum "..\..\..\..\..\FlowEditor\FlowEditorView.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "C82289251DF9E1185EAE4FED4DB4D32A973BE774"
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // 此代码由工具生成。
  5. // 运行时版本:4.0.30319.42000
  6. //
  7. // 对此文件的更改可能会导致不正确的行为,并且如果
  8. // 重新生成代码,这些更改将会丢失。
  9. // </auto-generated>
  10. //------------------------------------------------------------------------------
  11. using HandyControl.Controls;
  12. using HandyControl.Data;
  13. using HandyControl.Expression.Media;
  14. using HandyControl.Expression.Shapes;
  15. using HandyControl.Interactivity;
  16. using HandyControl.Media.Animation;
  17. using HandyControl.Media.Effects;
  18. using HandyControl.Properties.Langs;
  19. using HandyControl.Themes;
  20. using HandyControl.Tools;
  21. using HandyControl.Tools.Converter;
  22. using HandyControl.Tools.Extension;
  23. using MahApps.Metro.IconPacks;
  24. using System;
  25. using System.Diagnostics;
  26. using System.Windows;
  27. using System.Windows.Automation;
  28. using System.Windows.Controls;
  29. using System.Windows.Controls.Primitives;
  30. using System.Windows.Controls.Ribbon;
  31. using System.Windows.Data;
  32. using System.Windows.Documents;
  33. using System.Windows.Ink;
  34. using System.Windows.Input;
  35. using System.Windows.Markup;
  36. using System.Windows.Media;
  37. using System.Windows.Media.Animation;
  38. using System.Windows.Media.Effects;
  39. using System.Windows.Media.Imaging;
  40. using System.Windows.Media.Media3D;
  41. using System.Windows.Media.TextFormatting;
  42. using System.Windows.Navigation;
  43. using System.Windows.Shapes;
  44. using System.Windows.Shell;
  45. using TeamAAS;
  46. using TeamAAS.FlowEditor.Controls;
  47. using TeamAAS.FlowEditor.Converters;
  48. using TeamAAS.Localization;
  49. namespace TeamAAS.FlowEditor {
  50. /// <summary>
  51. /// FlowEditorView
  52. /// </summary>
  53. public partial class FlowEditorView : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
  54. #line 498 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  55. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  56. internal System.Windows.Controls.TextBlock TxtZoom;
  57. #line default
  58. #line hidden
  59. #line 507 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  60. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  61. internal System.Windows.Controls.Button BtnRun;
  62. #line default
  63. #line hidden
  64. #line 508 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  65. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  66. internal System.Windows.Controls.Button BtnStop;
  67. #line default
  68. #line hidden
  69. #line 513 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  70. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  71. internal System.Windows.Controls.Border ToolboxPanel;
  72. #line default
  73. #line hidden
  74. #line 519 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  75. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  76. internal System.Windows.Controls.DockPanel ToolboxExpanded;
  77. #line default
  78. #line hidden
  79. #line 522 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  80. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  81. internal System.Windows.Controls.Button BtnToolboxToggleExpanded;
  82. #line default
  83. #line hidden
  84. #line 574 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  85. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  86. internal System.Windows.Controls.DockPanel ToolboxCollapsed;
  87. #line default
  88. #line hidden
  89. #line 577 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  90. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  91. internal System.Windows.Controls.Button BtnToolboxToggleCollapsed;
  92. #line default
  93. #line hidden
  94. #line 585 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  95. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  96. internal System.Windows.Controls.ItemsControl CollapsedGroups;
  97. #line default
  98. #line hidden
  99. #line 607 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  100. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  101. internal System.Windows.Controls.Primitives.Popup ToolboxGroupPopup;
  102. #line default
  103. #line hidden
  104. #line 615 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  105. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  106. internal System.Windows.Controls.TextBlock PopupGroupName;
  107. #line default
  108. #line hidden
  109. #line 619 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  110. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  111. internal System.Windows.Controls.ItemsControl PopupItems;
  112. #line default
  113. #line hidden
  114. #line 649 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  115. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  116. internal TeamAAS.FlowEditor.Controls.FlowCanvas EditorCanvas;
  117. #line default
  118. #line hidden
  119. #line 656 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  120. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  121. internal System.Windows.Controls.Border DragPreviewNode;
  122. #line default
  123. #line hidden
  124. #line 665 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  125. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  126. internal MahApps.Metro.IconPacks.PackIconMaterial DragPreviewIcon;
  127. #line default
  128. #line hidden
  129. #line 667 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  130. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  131. internal System.Windows.Controls.TextBlock DragPreviewText;
  132. #line default
  133. #line hidden
  134. #line 672 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  135. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  136. internal System.Windows.Controls.Primitives.ScrollBar VScrollBar;
  137. #line default
  138. #line hidden
  139. #line 677 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  140. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  141. internal System.Windows.Controls.Primitives.ScrollBar HScrollBar;
  142. #line default
  143. #line hidden
  144. #line 682 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  145. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  146. internal TeamAAS.FlowEditor.Controls.MinimapControl Minimap;
  147. #line default
  148. #line hidden
  149. #line 690 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  150. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  151. internal System.Windows.Controls.Border LoadingOverlay;
  152. #line default
  153. #line hidden
  154. #line 716 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  155. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  156. internal System.Windows.Controls.ContentControl RightTopSlot;
  157. #line default
  158. #line hidden
  159. #line 727 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  160. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
  161. internal System.Windows.Controls.ContentControl NodeInfoSlot;
  162. #line default
  163. #line hidden
  164. private bool _contentLoaded;
  165. /// <summary>
  166. /// InitializeComponent
  167. /// </summary>
  168. [System.Diagnostics.DebuggerNonUserCodeAttribute()]
  169. [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.11.0")]
  170. public void InitializeComponent() {
  171. if (_contentLoaded) {
  172. return;
  173. }
  174. _contentLoaded = true;
  175. System.Uri resourceLocater = new System.Uri("/TeamAAS.FlowEngine;component/floweditor/floweditorview.xaml", System.UriKind.Relative);
  176. #line 1 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  177. System.Windows.Application.LoadComponent(this, resourceLocater);
  178. #line default
  179. #line hidden
  180. }
  181. [System.Diagnostics.DebuggerNonUserCodeAttribute()]
  182. [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.11.0")]
  183. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
  184. internal System.Delegate _CreateDelegate(System.Type delegateType, string handler) {
  185. return System.Delegate.CreateDelegate(delegateType, this, handler);
  186. }
  187. [System.Diagnostics.DebuggerNonUserCodeAttribute()]
  188. [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.11.0")]
  189. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
  190. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
  191. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
  192. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
  193. void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
  194. switch (connectionId)
  195. {
  196. case 1:
  197. #line 496 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  198. ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomIn_Click);
  199. #line default
  200. #line hidden
  201. return;
  202. case 2:
  203. #line 497 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  204. ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomOut_Click);
  205. #line default
  206. #line hidden
  207. return;
  208. case 3:
  209. this.TxtZoom = ((System.Windows.Controls.TextBlock)(target));
  210. return;
  211. case 4:
  212. #line 500 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  213. ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.FitView_Click);
  214. #line default
  215. #line hidden
  216. return;
  217. case 5:
  218. this.BtnRun = ((System.Windows.Controls.Button)(target));
  219. #line 507 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  220. this.BtnRun.Click += new System.Windows.RoutedEventHandler(this.RunFlow_Click);
  221. #line default
  222. #line hidden
  223. return;
  224. case 6:
  225. this.BtnStop = ((System.Windows.Controls.Button)(target));
  226. #line 508 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  227. this.BtnStop.Click += new System.Windows.RoutedEventHandler(this.StopFlow_Click);
  228. #line default
  229. #line hidden
  230. return;
  231. case 7:
  232. this.ToolboxPanel = ((System.Windows.Controls.Border)(target));
  233. return;
  234. case 8:
  235. this.ToolboxExpanded = ((System.Windows.Controls.DockPanel)(target));
  236. return;
  237. case 9:
  238. this.BtnToolboxToggleExpanded = ((System.Windows.Controls.Button)(target));
  239. #line 523 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  240. this.BtnToolboxToggleExpanded.Click += new System.Windows.RoutedEventHandler(this.BtnToolboxToggle_Click);
  241. #line default
  242. #line hidden
  243. return;
  244. case 11:
  245. this.ToolboxCollapsed = ((System.Windows.Controls.DockPanel)(target));
  246. return;
  247. case 12:
  248. this.BtnToolboxToggleCollapsed = ((System.Windows.Controls.Button)(target));
  249. #line 578 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  250. this.BtnToolboxToggleCollapsed.Click += new System.Windows.RoutedEventHandler(this.BtnToolboxToggle_Click);
  251. #line default
  252. #line hidden
  253. return;
  254. case 13:
  255. this.CollapsedGroups = ((System.Windows.Controls.ItemsControl)(target));
  256. return;
  257. case 15:
  258. this.ToolboxGroupPopup = ((System.Windows.Controls.Primitives.Popup)(target));
  259. return;
  260. case 16:
  261. #line 613 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  262. ((System.Windows.Controls.DockPanel)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.ToolboxGroupPopup_MouseEnter);
  263. #line default
  264. #line hidden
  265. #line 614 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  266. ((System.Windows.Controls.DockPanel)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.ToolboxGroupPopup_MouseLeave);
  267. #line default
  268. #line hidden
  269. return;
  270. case 17:
  271. this.PopupGroupName = ((System.Windows.Controls.TextBlock)(target));
  272. return;
  273. case 18:
  274. this.PopupItems = ((System.Windows.Controls.ItemsControl)(target));
  275. return;
  276. case 20:
  277. this.EditorCanvas = ((TeamAAS.FlowEditor.Controls.FlowCanvas)(target));
  278. return;
  279. case 21:
  280. this.DragPreviewNode = ((System.Windows.Controls.Border)(target));
  281. return;
  282. case 22:
  283. this.DragPreviewIcon = ((MahApps.Metro.IconPacks.PackIconMaterial)(target));
  284. return;
  285. case 23:
  286. this.DragPreviewText = ((System.Windows.Controls.TextBlock)(target));
  287. return;
  288. case 24:
  289. this.VScrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));
  290. #line 676 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  291. this.VScrollBar.Scroll += new System.Windows.Controls.Primitives.ScrollEventHandler(this.VScrollBar_Scroll);
  292. #line default
  293. #line hidden
  294. return;
  295. case 25:
  296. this.HScrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));
  297. #line 681 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  298. this.HScrollBar.Scroll += new System.Windows.Controls.Primitives.ScrollEventHandler(this.HScrollBar_Scroll);
  299. #line default
  300. #line hidden
  301. return;
  302. case 26:
  303. this.Minimap = ((TeamAAS.FlowEditor.Controls.MinimapControl)(target));
  304. return;
  305. case 27:
  306. this.LoadingOverlay = ((System.Windows.Controls.Border)(target));
  307. return;
  308. case 28:
  309. this.RightTopSlot = ((System.Windows.Controls.ContentControl)(target));
  310. return;
  311. case 29:
  312. this.NodeInfoSlot = ((System.Windows.Controls.ContentControl)(target));
  313. return;
  314. }
  315. this._contentLoaded = true;
  316. }
  317. [System.Diagnostics.DebuggerNonUserCodeAttribute()]
  318. [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.11.0")]
  319. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
  320. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
  321. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
  322. [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
  323. void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
  324. switch (connectionId)
  325. {
  326. case 10:
  327. #line 545 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  328. ((System.Windows.Controls.Border)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ToolboxItem_MouseLeftButtonDown);
  329. #line default
  330. #line hidden
  331. #line 546 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  332. ((System.Windows.Controls.Border)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.ToolboxItem_MouseMove);
  333. #line default
  334. #line hidden
  335. break;
  336. case 14:
  337. #line 590 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  338. ((System.Windows.Controls.Border)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.GroupTag_MouseEnter);
  339. #line default
  340. #line hidden
  341. #line 591 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  342. ((System.Windows.Controls.Border)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.GroupTag_MouseLeave);
  343. #line default
  344. #line hidden
  345. break;
  346. case 19:
  347. #line 623 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  348. ((System.Windows.Controls.Border)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ToolboxItem_MouseLeftButtonDown);
  349. #line default
  350. #line hidden
  351. #line 624 "..\..\..\..\..\FlowEditor\FlowEditorView.xaml"
  352. ((System.Windows.Controls.Border)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.ToolboxItem_MouseMove);
  353. #line default
  354. #line hidden
  355. break;
  356. }
  357. }
  358. }
  359. }