fix: fix Flyout Placement.

This commit is contained in:
Zhang Dian 2024-08-12 16:35:51 +08:00
parent 73687eb72f
commit 4d3c9630c3
3 changed files with 46 additions and 43 deletions

View File

@ -9,6 +9,7 @@
d:DesignHeight="1450"
d:DesignWidth="800"
mc:Ignorable="d">
<ScrollViewer>
<StackPanel Spacing="20">
<StackPanel
VerticalAlignment="Top"
@ -51,4 +52,5 @@
HsvColor="hsv(120,11%,10%)" />
</StackPanel>
</StackPanel>
</ScrollViewer>
</UserControl>

View File

@ -538,7 +538,7 @@
</Style>
</DropDownButton.Styles>
<DropDownButton.Flyout>
<Flyout FlyoutPresenterClasses="nopadding" Placement="{DynamicResource ColorPickerFlyoutPlacement}">
<Flyout FlyoutPresenterClasses="nopadding" Placement="{DynamicResource SimpleColorPickerFlyoutPlacement}">
<!--
The following is copy-pasted from the ColorView's control template.

View File

@ -29,4 +29,5 @@
<colorPicker:SemiColorDarkPalette x:Key="SemiColorPalette" />
<PlacementMode x:Key="ColorPickerFlyoutPlacement">AnchorAndGravity</PlacementMode>
<PlacementMode x:Key="SimpleColorPickerFlyoutPlacement">BottomEdgeAlignedLeft</PlacementMode>
</ResourceDictionary>