From 6885c7a5090b854c84fffd8c4010b7c4e762c797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=84=8F=20=E5=BD=AD?= <2417589739@qq.com> Date: Sat, 16 Apr 2022 01:35:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=B0=E6=B7=87=E6=B7=8B=E6=9C=BA=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HBLConsole.Debug/Debug_MORKIC.xaml | 530 ++++++------------ HBLConsole.Debug/HBLConsole.Debug.csproj | 1 + HBLConsole.Factory/SimpleFactory.cs | 1 + HBLConsole.MORKIC/Control_MORKIC.cs | 366 +++--------- HBLConsole.MORKS/Control_MORKS.cs | 3 +- HBLConsole/App.config | 4 +- .../ResourceDictionarys/BasicStyle.xaml | 4 +- HBLConsole/ViewModel/ViewModelBase.cs | 18 +- HBLDevice.IceCream/CommandHandler.cs | 10 + HBLDevice.IceCream/MorkIStatus.cs | 1 + 10 files changed, 269 insertions(+), 669 deletions(-) diff --git a/HBLConsole.Debug/Debug_MORKIC.xaml b/HBLConsole.Debug/Debug_MORKIC.xaml index 4e37dc1..1f79fa9 100644 --- a/HBLConsole.Debug/Debug_MORKIC.xaml +++ b/HBLConsole.Debug/Debug_MORKIC.xaml @@ -6,6 +6,7 @@ xmlns:local="clr-namespace:HBLConsole.Debug" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:s="https://github.com/canton7/Stylet" + xmlns:pry="clr-namespace:HBLConsole.PryUserControl;assembly=HBLConsole.PryUserControl" d:DesignHeight="450" d:DesignWidth="800" mc:Ignorable="d"> @@ -17,6 +18,7 @@ + @@ -34,18 +36,18 @@ + Grid.ColumnSpan="2" + Background="White" + Opacity="0" /> + Grid.Column="1" + Margin="0,0,5,0" + HorizontalAlignment="Right" + VerticalAlignment="Center" + FontFamily="../Fonts/#iconfont" + FontSize="14" + Foreground="#FF23CACA" + Text="" /> + x:Name="ToggleButton" + Grid.Column="0" + Grid.ColumnSpan="2" + ClickMode="Press" + Focusable="false" + IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" + Template="{StaticResource ComboBoxToggleButton}" /> + x:Name="PART_EditableTextBox" + Margin="2,0,0,0" + VerticalAlignment="Center" + Background="Transparent" + BorderThickness="0" + Focusable="True" + IsReadOnly="{TemplateBinding IsReadOnly}" + Visibility="Hidden" /> + x:Name="Popup" + AllowsTransparency="True" + Focusable="False" + IsOpen="{TemplateBinding IsDropDownOpen}" + Placement="Bottom" + PopupAnimation="Slide"> + x:Name="DropDown" + MinWidth="{TemplateBinding ActualWidth}" + MaxHeight="150" + SnapsToDevicePixels="True"> + x:Name="DropDownBorder" + BorderBrush="#3ba7f2" + BorderThickness="0" /> + Margin="1" + CanContentScroll="True" + HorizontalScrollBarVisibility="Auto" + SnapsToDevicePixels="True" + VerticalScrollBarVisibility="Auto"> + Background="#103153" + IsItemsHost="True" + KeyboardNavigation.DirectionalNavigation="Contained" /> @@ -260,7 +262,7 @@ - + @@ -277,7 +279,7 @@ - + - + - + - + - + + - +