MainView.xaml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <Window x:Class="LocalhostMES.Views.MainView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:tabs="clr-namespace:LocalhostMES.Views.Tabs"
  8. xmlns:prism="http://prismlibrary.com/"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. mc:Ignorable="d"
  11. Background="{DynamicResource Win11WindowBrush}"
  12. Title="本地 MES 网关"
  13. Height="520"
  14. Width="920"
  15. MinHeight="420"
  16. MinWidth="720"
  17. UseLayoutRounding="True"
  18. SnapsToDevicePixels="True">
  19. <Window.Resources>
  20. <ResourceDictionary>
  21. <ResourceDictionary.MergedDictionaries>
  22. <ResourceDictionary Source="pack://application:,,,/Views/Resources/MesTabStyles.xaml" />
  23. </ResourceDictionary.MergedDictionaries>
  24. </ResourceDictionary>
  25. </Window.Resources>
  26. <b:Interaction.Triggers>
  27. <b:EventTrigger EventName="Loaded">
  28. <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
  29. </b:EventTrigger>
  30. <b:EventTrigger EventName="Closed">
  31. <b:InvokeCommandAction Command="{Binding ClosedCommand}" />
  32. </b:EventTrigger>
  33. </b:Interaction.Triggers>
  34. <Grid Margin="8">
  35. <Border Background="{DynamicResource Win11CardBrush}"
  36. BorderBrush="{DynamicResource Win11BorderBrush}"
  37. BorderThickness="1"
  38. CornerRadius="12"
  39. Padding="6">
  40. <TabControl Margin="2" SelectedIndex="{Binding SelectedTabIndex, Mode=TwoWay}">
  41. <TabItem Header="接口测试">
  42. <tabs:ApiTestView />
  43. </TabItem>
  44. <TabItem Header="工单管理">
  45. <tabs:WorkOrderManagementView />
  46. </TabItem>
  47. <TabItem Header="SN管理">
  48. <tabs:SnManagementView />
  49. </TabItem>
  50. <TabItem Header="关键件管理">
  51. <tabs:KeyPartManagementView />
  52. </TabItem>
  53. <TabItem Header="零件管理">
  54. <tabs:PartCatalogView />
  55. </TabItem>
  56. <TabItem Header="绑定记录">
  57. <tabs:BindRecordsView />
  58. </TabItem>
  59. <TabItem Header="加工记录">
  60. <tabs:ProcessRecordsView />
  61. </TabItem>
  62. <TabItem Header="TCP服务器">
  63. <tabs:TcpServerView />
  64. </TabItem>
  65. <TabItem Header="系统设置">
  66. <tabs:SystemSettingsView />
  67. </TabItem>
  68. </TabControl>
  69. </Border>
  70. </Grid>
  71. </Window>