| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <base:WindowBase x:Class="YSAI.Tool.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:base="clr-namespace:YSAI.Window;assembly=YSAI.Window"
- xmlns:local="clr-namespace:YSAI.Tool"
- xmlns:hm="clr-namespace:YSAI.Controls.hamburgermenu;assembly=YSAI.Controls"
- xmlns:tc="clr-namespace:YSAI.Controls.transition;assembly=YSAI.Controls"
- Icon="YSAI_One.ico"
- FontFamily="{DynamicResource AllFontFamily}" WindowStartupLocation="CenterScreen" IsContentBackgroundPicture="True" ResizeMode="CanResize"
- Title="[ 远舢智能 ] 调试工具">
- <Window.DataContext>
- <local:MainWindowController />
- </Window.DataContext>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Border Grid.Column="0" Margin="0,0,0,0">
- <Border.Effect>
- <DropShadowEffect BlurRadius="10" ShadowDepth="5" Opacity="0.1" Direction="-10" />
- </Border.Effect>
- <hm:HamburgerMenu ToWidth="100" Background="{DynamicResource Follow.Style.Background}" MenuIconColor="{DynamicResource Follow.Style.ImageColor}" HorizontalAlignment="Left" x:Name="hmc">
- <hm:HamburgerMenu.Content>
- <hm:HamburgerMenuItem Icon="{DynamicResource AboutUs}" Text="关于" ToolTip="关于我们" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding AboutUsTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource Can}" Text="CAN 工具" ToolTip="CanTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding CanTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource MqttClient}" Text="MQTT 客户端工具" ToolTip="MqttClientTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding MqttClientTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource MqttService}" Text="MQTT 服务端工具" ToolTip="MqttServiceTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding MqttServiceTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource MqttWebSocketService}" Text="MQTT WS 服务端工具" ToolTip="MqttWebSocketServiceTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding MqttWebSocketServiceTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource Can}" Text="OPCDA HTTP 工具" ToolTip="OpcDaHttpClientTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding OpcDaHttpClientTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource OpcUaClient}" Text="OPCUA 客户端工具" ToolTip="OpcUaClientTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding OpcUaClientTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource OpcUaService}" Text="OPCUA 服务端工具" ToolTip="OpcUaServiceTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding OpcUaServiceTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource SerialPort}" Text="串口工具" ToolTip="SerialPortTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding SerialPortTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource Client}" Text="TCP 客户端工具" ToolTip="SocketTcpClientTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding SocketTcpClientTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource Service}" Text="TCP 服务端工具" ToolTip="SocketTcpServerTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding SocketTcpServerTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource Udp}" Text="UDP 工具" ToolTip="SocketUdpTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding SocketUdpTool}" />
- <hm:HamburgerMenuItem Icon="{DynamicResource Svg}" Text="Svg 工具" ToolTip="SvgTool" SelectionIndicatorColor="{DynamicResource Follow.Style.ImageColor}" Foreground="{DynamicResource Follow.Style.Foreground}" SelectionCommand="{Binding SvgTool}" />
- </hm:HamburgerMenu.Content>
- </hm:HamburgerMenu>
- </Border>
- <Grid Grid.Column="1">
- <ContentControl Content="{Binding UserControl}" />
- </Grid>
- </Grid>
- </base:WindowBase>
|