diff --git a/Constant/WidthTypeEnum.cs b/Constant/WidthTypeEnum.cs index b50130c..b9e0bfa 100644 --- a/Constant/WidthTypeEnum.cs +++ b/Constant/WidthTypeEnum.cs @@ -14,5 +14,6 @@ namespace GeekDesk.Constant RIGHT_CARD_HALF_TEXT = 3, //右侧托盘宽度的一半 再减去左侧图像宽度 RIGHT_CARD_20 = 4, //右侧托盘宽度 - 20 RIGHT_CARD_40 = 5, //右侧托盘宽度 - 40 + RIGHT_CARD_70 = 6, //右侧托盘宽度 - 70 } } diff --git a/Control/UserControls/PannelCard/RightCardControl.xaml b/Control/UserControls/PannelCard/RightCardControl.xaml index b6e1da2..724e696 100644 --- a/Control/UserControls/PannelCard/RightCardControl.xaml +++ b/Control/UserControls/PannelCard/RightCardControl.xaml @@ -186,9 +186,7 @@ > @@ -212,7 +210,7 @@ VirtualizingPanel.ScrollUnit="Pixel" Width="{Binding AppConfig.WindowWidth, Mode=OneWay, Converter={StaticResource GetWidthByWWConvert}, - ConverterParameter={x:Static cst:WidthTypeEnum.RIGHT_CARD_40}}" + ConverterParameter={x:Static cst:WidthTypeEnum.RIGHT_CARD_70}}" /> diff --git a/Converts/GetWidthByWWConvert.cs b/Converts/GetWidthByWWConvert.cs index bef3e32..7f2633d 100644 --- a/Converts/GetWidthByWWConvert.cs +++ b/Converts/GetWidthByWWConvert.cs @@ -34,6 +34,14 @@ namespace GeekDesk.Converts { return (config.WindowWidth - config.MenuCardWidth) - 20; } + else if (WidthTypeEnum.RIGHT_CARD_40 == type) + { + return (config.WindowWidth - config.MenuCardWidth) - 40; + } + else if (WidthTypeEnum.RIGHT_CARD_70 == type) + { + return (config.WindowWidth - config.MenuCardWidth) - 70; + } return config.WindowWidth; }