fix: fix Flyout Placement.
This commit is contained in:
parent
73687eb72f
commit
4d3c9630c3
@ -9,46 +9,48 @@
|
|||||||
d:DesignHeight="1450"
|
d:DesignHeight="1450"
|
||||||
d:DesignWidth="800"
|
d:DesignWidth="800"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<StackPanel Spacing="20">
|
<ScrollViewer>
|
||||||
<StackPanel
|
<StackPanel Spacing="20">
|
||||||
VerticalAlignment="Top"
|
<StackPanel
|
||||||
Orientation="Horizontal"
|
VerticalAlignment="Top"
|
||||||
Spacing="20">
|
Orientation="Horizontal"
|
||||||
<ColorView ColorSpectrumShape="Ring" />
|
Spacing="20">
|
||||||
<ColorView ColorSpectrumShape="Box" />
|
<ColorView ColorSpectrumShape="Ring" />
|
||||||
<ColorView Palette="{DynamicResource SemiColorPalette}" />
|
<ColorView ColorSpectrumShape="Box" />
|
||||||
|
<ColorView Palette="{DynamicResource SemiColorPalette}" />
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel
|
||||||
|
VerticalAlignment="Top"
|
||||||
|
Orientation="Horizontal">
|
||||||
|
<ColorView
|
||||||
|
Theme="{StaticResource SimpleColorView}"
|
||||||
|
IsAlphaVisible="True"
|
||||||
|
HsvColor="hsv(120,11%,10%)" />
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
|
||||||
|
<ColorPicker ColorSpectrumShape="Ring">
|
||||||
|
<ColorPicker.Palette>
|
||||||
|
<controls:FlatHalfColorPalette />
|
||||||
|
</ColorPicker.Palette>
|
||||||
|
</ColorPicker>
|
||||||
|
<ColorPicker ColorSpectrumShape="Box">
|
||||||
|
<ColorPicker.Palette>
|
||||||
|
<colorPicker:SemiColorLightPalette />
|
||||||
|
</ColorPicker.Palette>
|
||||||
|
</ColorPicker>
|
||||||
|
|
||||||
|
<ColorPicker ColorSpectrumShape="Box" Theme="{DynamicResource HexColorPicker}">
|
||||||
|
<ColorPicker.Palette>
|
||||||
|
<colorPicker:SemiColorLightPalette />
|
||||||
|
</ColorPicker.Palette>
|
||||||
|
</ColorPicker>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
|
||||||
|
<ColorPicker Theme="{StaticResource SimpleColorPicker}"
|
||||||
|
HsvColor="hsv(120,11%,10%)" />
|
||||||
|
<ColorPicker Theme="{StaticResource HexSimpleColorPicker}"
|
||||||
|
HsvColor="hsv(120,11%,10%)" />
|
||||||
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel
|
</ScrollViewer>
|
||||||
VerticalAlignment="Top"
|
</UserControl>
|
||||||
Orientation="Horizontal">
|
|
||||||
<ColorView
|
|
||||||
Theme="{StaticResource SimpleColorView}"
|
|
||||||
IsAlphaVisible="True"
|
|
||||||
HsvColor="hsv(120,11%,10%)" />
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
|
|
||||||
<ColorPicker ColorSpectrumShape="Ring">
|
|
||||||
<ColorPicker.Palette>
|
|
||||||
<controls:FlatHalfColorPalette />
|
|
||||||
</ColorPicker.Palette>
|
|
||||||
</ColorPicker>
|
|
||||||
<ColorPicker ColorSpectrumShape="Box">
|
|
||||||
<ColorPicker.Palette>
|
|
||||||
<colorPicker:SemiColorLightPalette />
|
|
||||||
</ColorPicker.Palette>
|
|
||||||
</ColorPicker>
|
|
||||||
|
|
||||||
<ColorPicker ColorSpectrumShape="Box" Theme="{DynamicResource HexColorPicker}">
|
|
||||||
<ColorPicker.Palette>
|
|
||||||
<colorPicker:SemiColorLightPalette />
|
|
||||||
</ColorPicker.Palette>
|
|
||||||
</ColorPicker>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
|
|
||||||
<ColorPicker Theme="{StaticResource SimpleColorPicker}"
|
|
||||||
HsvColor="hsv(120,11%,10%)" />
|
|
||||||
<ColorPicker Theme="{StaticResource HexSimpleColorPicker}"
|
|
||||||
HsvColor="hsv(120,11%,10%)" />
|
|
||||||
</StackPanel>
|
|
||||||
</StackPanel>
|
|
||||||
</UserControl>
|
|
@ -538,7 +538,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</DropDownButton.Styles>
|
</DropDownButton.Styles>
|
||||||
<DropDownButton.Flyout>
|
<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.
|
The following is copy-pasted from the ColorView's control template.
|
||||||
|
@ -29,4 +29,5 @@
|
|||||||
<colorPicker:SemiColorDarkPalette x:Key="SemiColorPalette" />
|
<colorPicker:SemiColorDarkPalette x:Key="SemiColorPalette" />
|
||||||
|
|
||||||
<PlacementMode x:Key="ColorPickerFlyoutPlacement">AnchorAndGravity</PlacementMode>
|
<PlacementMode x:Key="ColorPickerFlyoutPlacement">AnchorAndGravity</PlacementMode>
|
||||||
|
<PlacementMode x:Key="SimpleColorPickerFlyoutPlacement">BottomEdgeAlignedLeft</PlacementMode>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
Loading…
x
Reference in New Issue
Block a user