diff --git a/Control/UserControls/PannelCard/LeftCardControl.xaml b/Control/UserControls/PannelCard/LeftCardControl.xaml index 1f6d242..911b851 100644 --- a/Control/UserControls/PannelCard/LeftCardControl.xaml +++ b/Control/UserControls/PannelCard/LeftCardControl.xaml @@ -22,6 +22,7 @@ + @@ -42,24 +43,34 @@ + + + + - - - - - + + + + + - - - - - - - - @@ -87,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" + > @@ -123,36 +134,36 @@ - + 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}"/> +