| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <Window x:Class="LocalhostMES.Views.MainView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:tabs="clr-namespace:LocalhostMES.Views.Tabs"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- Background="{DynamicResource Win11WindowBrush}"
- Title="本地 MES 网关"
- Height="520"
- Width="920"
- MinHeight="420"
- MinWidth="720"
- UseLayoutRounding="True"
- SnapsToDevicePixels="True">
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Views/Resources/MesTabStyles.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Window.Resources>
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
- </b:EventTrigger>
- <b:EventTrigger EventName="Closed">
- <b:InvokeCommandAction Command="{Binding ClosedCommand}" />
- </b:EventTrigger>
- </b:Interaction.Triggers>
- <Grid Margin="8">
- <Border Background="{DynamicResource Win11CardBrush}"
- BorderBrush="{DynamicResource Win11BorderBrush}"
- BorderThickness="1"
- CornerRadius="12"
- Padding="6">
- <TabControl Margin="2" SelectedIndex="{Binding SelectedTabIndex, Mode=TwoWay}">
- <TabItem Header="接口测试">
- <tabs:ApiTestView />
- </TabItem>
- <TabItem Header="工单管理">
- <tabs:WorkOrderManagementView />
- </TabItem>
- <TabItem Header="SN管理">
- <tabs:SnManagementView />
- </TabItem>
- <TabItem Header="关键件管理">
- <tabs:KeyPartManagementView />
- </TabItem>
- <TabItem Header="零件管理">
- <tabs:PartCatalogView />
- </TabItem>
- <TabItem Header="绑定记录">
- <tabs:BindRecordsView />
- </TabItem>
- <TabItem Header="加工记录">
- <tabs:ProcessRecordsView />
- </TabItem>
- <TabItem Header="TCP服务器">
- <tabs:TcpServerView />
- </TabItem>
- <TabItem Header="系统设置">
- <tabs:SystemSettingsView />
- </TabItem>
- </TabControl>
- </Border>
- </Grid>
- </Window>
|