✅ 调整合适宽度
This commit is contained in:
@@ -182,9 +182,13 @@
|
|||||||
CanContentScroll="True"
|
CanContentScroll="True"
|
||||||
PreviewMouseWheel="IconListBox_MouseWheel"
|
PreviewMouseWheel="IconListBox_MouseWheel"
|
||||||
>
|
>
|
||||||
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderBrush}">
|
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
|
BorderThickness="{TemplateBinding BorderBrush}"
|
||||||
|
Width="{Binding AppConfig.WindowWidth, Mode=OneWay,
|
||||||
|
Converter={StaticResource GetWidthByWWConvert},
|
||||||
|
ConverterParameter={x:Static cst:WidthTypeEnum.RIGHT_CARD}}"
|
||||||
|
>
|
||||||
<ItemsPresenter/>
|
<ItemsPresenter/>
|
||||||
|
|
||||||
</Border>
|
</Border>
|
||||||
</hc:ScrollViewer>
|
</hc:ScrollViewer>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
|
|||||||
@@ -26,10 +26,10 @@ namespace GeekDesk.Converts
|
|||||||
return config.WindowWidth - config.MenuCardWidth;
|
return config.WindowWidth - config.MenuCardWidth;
|
||||||
} else if (WidthTypeEnum.RIGHT_CARD_HALF == type)
|
} else if (WidthTypeEnum.RIGHT_CARD_HALF == type)
|
||||||
{
|
{
|
||||||
return (config.WindowWidth - config.MenuCardWidth) * 0.8;
|
return (config.WindowWidth - config.MenuCardWidth) * 0.618;
|
||||||
} else if (WidthTypeEnum.RIGHT_CARD_HALF_TEXT == type)
|
} else if (WidthTypeEnum.RIGHT_CARD_HALF_TEXT == type)
|
||||||
{
|
{
|
||||||
return (config.WindowWidth - config.MenuCardWidth) * 0.8 - config.ImageWidth - 20;
|
return (config.WindowWidth - config.MenuCardWidth) * 0.618 - config.ImageWidth - 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
return config.WindowWidth;
|
return config.WindowWidth;
|
||||||
|
|||||||
Reference in New Issue
Block a user