From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
HMI.UI/MDI/InnerWindow.xaml | 66 +++++++++++++++++++++++++++++++++
1 files changed, 66 insertions(+), 0 deletions(-)
diff --git a/HMI.UI/MDI/InnerWindow.xaml b/HMI.UI/MDI/InnerWindow.xaml
new file mode 100644
index 0000000..a1d19fe
--- /dev/null
+++ b/HMI.UI/MDI/InnerWindow.xaml
@@ -0,0 +1,66 @@
+锘�<UserControl x:Class="HMI.UI.MDI.InnerWindow"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:local="clr-namespace:HMI.UI.MDI"
+ mc:Ignorable="d"
+ HorizontalAlignment="Stretch"
+ HorizontalContentAlignment="Stretch"
+ MouseLeftButtonDown="Grid_MouseLeftButtonDown"
+ SizeChanged="UserControl_SizeChanged"
+ Background="#FFF"
+ Focusable="True">
+ <UserControl.Resources>
+ <ResourceDictionary>
+ <ResourceDictionary.MergedDictionaries>
+ <ResourceDictionary Source="/HMI.UI;component/Style/WindowResources.xaml"/>
+ </ResourceDictionary.MergedDictionaries>
+
+ <Style x:Key="SliderThumbStyle" TargetType="{x:Type Thumb}">
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate>
+ <Label VerticalContentAlignment="Center"
+ Foreground="{Binding HeaderFontColor}" Content="{Binding Title}"/>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+ </ResourceDictionary>
+ </UserControl.Resources>
+
+ <UserControl.Template>
+ <ControlTemplate TargetType="local:InnerWindow">
+ <AdornerDecorator x:Name="PART_Adorner" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
+ <Grid GotFocus="Grid_GotFocus">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="30"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+
+ <Grid Background="{DynamicResource ReVerBar}">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="*"/>
+ <ColumnDefinition Width="Auto"/>
+ </Grid.ColumnDefinitions>
+
+ <Thumb Style="{StaticResource SliderThumbStyle}" Grid.Column="0" x:Name="thumb1" DragDelta="DragDelta"
+ DragStarted="DragStarted" DragCompleted="DragCompleted"/>
+
+ <StackPanel Grid.Column="1" Orientation="Horizontal">
+ <Button Style="{StaticResource ChildWindowButton}" Background="Transparent" Click="Lock_Click"></Button>
+ <Button Style="{StaticResource ChildWindowButton}" Background="Transparent" Click="Min_Click"></Button>
+ <Button Style="{StaticResource ChildWindowButton}" Background="Transparent" Click="Max_Click" ></Button>
+ <!--<Button Style="{StaticResource ChildWindowCloseButton}" Background="Transparent" Click="CLose_Click"></Button>-->
+ </StackPanel>
+ </Grid>
+
+ <Border Grid.Row="1" Background="LightGray" VerticalAlignment="Stretch" BorderThickness="2,0,2,2" BorderBrush="{Binding HeaderBackground}">
+ <ContentPresenter HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></ContentPresenter>
+ </Border>
+ </Grid>
+ </AdornerDecorator>
+ </ControlTemplate>
+ </UserControl.Template>
+</UserControl>
\ No newline at end of file
--
Gitblit v1.9.1