From 69dbf7b5848a7e657b2911a9662e6dbd4f8f516b Mon Sep 17 00:00:00 2001 From: czw <selecti@yeah.net> Date: 星期四, 03 七月 2025 17:48:38 +0800 Subject: [PATCH] 可视化 --- 2025年6月12日/AuxAllWCS/Build/Project/界面/View1.xaml | 80 +++++++++++++++++++++++++++++++++++++++- 1 files changed, 78 insertions(+), 2 deletions(-) diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\347\225\214\351\235\242/View1.xaml" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\347\225\214\351\235\242/View1.xaml" index 31cadc9..2d2b69e 100644 --- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\347\225\214\351\235\242/View1.xaml" +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\347\225\214\351\235\242/View1.xaml" @@ -1,9 +1,43 @@ <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="640" Height="480" x:Class="GZ.Projects.AuxAllWCS.View1" xmlns:local="clr-namespace:GZ.Projects.AuxAllWCS" - xmlns:local1="clr-namespace:GZ.Projects.AuxAllWCS.鐣岄潰" + xmlns:local1="clr-namespace:GZ.Projects.AuxAllWCS" + xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf" Title="鍝堝搱wcs" > <Grid> - <TextBlock HorizontalAlignment="Center" FontFamily="Courier New" Text="
 + <Grid> + <TabControl> + <TabControl.Resources> + <Style TargetType="TabItem"> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="TabItem"> + <Border Name="Border" BorderThickness="1,1,1,0" BorderBrush="Gainsboro" CornerRadius="4,4,0,0" Margin="2,0"> + <ContentPresenter x:Name="ContentSite" + VerticalAlignment="Center" + HorizontalAlignment="Center" + ContentSource="Header" + Margin="10,2"/> + </Border> + <ControlTemplate.Triggers> + <Trigger Property="IsSelected" Value="True"> + <Setter TargetName="Border" Property="Background" Value="LightSkyBlue" /> + </Trigger> + <Trigger Property="IsSelected" Value="False"> + <Setter TargetName="Border" Property="Background" Value="GhostWhite" /> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> + </TabControl.Resources> + <TabItem> + <TabItem.Header> + <StackPanel Orientation="Horizontal"> + <TextBlock Text="emmm" Foreground="Orange" /> + </StackPanel> + </TabItem.Header> + <TextBlock HorizontalAlignment="Center" FontFamily="Courier New" Text="
 ////////////////////////////////////////////////////////////////////
 // _ooOoo_ //
 // o8888888o //
 @@ -27,5 +61,47 @@ // 浣涚淇濅綉 姘告棤BUG 姘镐笉淇敼 //
 ////////////////////////////////////////////////////////////////////" TextWrapping="Wrap" /> + </TabItem> + <TabItem> + <TabItem.Header> + <StackPanel Orientation="Horizontal"> + <TextBlock Text="WebView" Foreground="Purple" /> + </StackPanel> + </TabItem.Header> + <wv2:WebView2 x:Name="webView" /> + <!--<wv2:WebView2 x:Name="webView" Source="{Binding Source={ x:Static local:HttpServer._listenerPrefix}}"/>--> + </TabItem> + <!--<TabItem> + <TabItem.Header> + <StackPanel Orientation="Horizontal"> + <TextBlock Text="AGV浠诲姟" Foreground="Black" /> + </StackPanel> + </TabItem.Header> + <Label Content="Content goes here..." /> + </TabItem> + <TabItem> + <TabItem.Header> + <StackPanel Orientation="Horizontal"> + <TextBlock Text="澹充綋涓嬫枡" Foreground="Blue" /> + </StackPanel> + </TabItem.Header> + <Label Content="Content goes here..." /> + </TabItem> + <TabItem> + <TabItem.Header> + <StackPanel Orientation="Horizontal"> + <TextBlock Text="鎬昏涓婃枡" Foreground="Red" /> + </StackPanel> + </TabItem.Header> + </TabItem> + <TabItem> + <TabItem.Header> + <StackPanel Orientation="Horizontal"> + <TextBlock Text="鎵爜澶� Foreground="Green" /> + </StackPanel> + </TabItem.Header> + </TabItem>--> + </TabControl> + </Grid> </Grid> </Window> \ No newline at end of file -- Gitblit v1.9.1