From 701dc273618c4d75f65e15a910278a1ef5a05a07 Mon Sep 17 00:00:00 2001 From: liufei Date: Fri, 25 Mar 2022 17:57:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=AC=E5=81=9C=E5=88=87=E6=8D=A2=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PannelCard/LeftCardControl.xaml | 105 +++++++----- .../PannelCard/LeftCardControl.xaml.cs | 150 +++++++++++++++--- 2 files changed, 194 insertions(+), 61 deletions(-) diff --git a/Control/UserControls/PannelCard/LeftCardControl.xaml b/Control/UserControls/PannelCard/LeftCardControl.xaml index 4a62083..d0c6484 100644 --- a/Control/UserControls/PannelCard/LeftCardControl.xaml +++ b/Control/UserControls/PannelCard/LeftCardControl.xaml @@ -21,8 +21,8 @@ - - + + @@ -43,11 +43,34 @@ + + + + - - + + + + + + + @@ -75,14 +98,14 @@ + Padding="2,3,0,2" + ItemsSource="{Binding MenuList}" + Tag="{Binding AppConfig.MenuCardWidth}" + BorderThickness="0" Foreground="{x:Null}" + SelectedIndex="{Binding AppConfig.SelectedMenuIndex}" + VirtualizingPanel.VirtualizationMode="Recycling" + SelectionChanged="Menu_SelectionChanged" + > @@ -109,38 +132,38 @@ - + - + HorizontalAlignment="Left" + Width="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1},Path=Tag, Mode=TwoWay, Converter={StaticResource MenuWidthConvert}, ConverterParameter=35}" + FontSize="16" + Height="28" + VerticalAlignment="Center" + TextAlignment="Left" + LostFocus="LostFocusOrEnterDown" + KeyDown="LostFocusOrEnterDown" + Tag="{Binding}" + Padding="2" + BorderThickness="0" + IsVisibleChanged="MenuEditWhenVisibilityChanged" + Visibility="{Binding MenuEdit}"/> +