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}"/> +