mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[General][UX]Flyouts are not constrained to the UI root anymore (#29734)
* add property * add property * Update DashboardPage.xaml * small additions * Fix XAML style
This commit is contained in:
@@ -635,7 +635,8 @@
|
|||||||
<Flyout
|
<Flyout
|
||||||
x:Name="AddVariableFlyout"
|
x:Name="AddVariableFlyout"
|
||||||
Closed="AddVariableFlyout_Closed"
|
Closed="AddVariableFlyout_Closed"
|
||||||
Placement="Right">
|
Placement="Right"
|
||||||
|
ShouldConstrainToRootBounds="False">
|
||||||
<Grid Width="320" Height="480">
|
<Grid Width="320" Height="480">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
FontSize=16}"
|
FontSize=16}"
|
||||||
Style="{StaticResource SubtleButtonStyle}">
|
Style="{StaticResource SubtleButtonStyle}">
|
||||||
<Button.Flyout>
|
<Button.Flyout>
|
||||||
<Flyout>
|
<Flyout ShouldConstrainToRootBounds="False">
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Width="320"
|
Width="320"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
|
|||||||
@@ -217,7 +217,7 @@
|
|||||||
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
||||||
Visibility="{Binding ElementName=checkBox_regex, Path=IsChecked}">
|
Visibility="{Binding ElementName=checkBox_regex, Path=IsChecked}">
|
||||||
<Button.Flyout>
|
<Button.Flyout>
|
||||||
<Flyout x:Name="RegExFlyout">
|
<Flyout x:Name="RegExFlyout" ShouldConstrainToRootBounds="False">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="28" />
|
<RowDefinition Height="28" />
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
</Border.Background>
|
</Border.Background>
|
||||||
</Border>
|
</Border>
|
||||||
<DropDownButton.Flyout>
|
<DropDownButton.Flyout>
|
||||||
<Flyout>
|
<Flyout ShouldConstrainToRootBounds="False">
|
||||||
<ColorPicker
|
<ColorPicker
|
||||||
IsAlphaEnabled="True"
|
IsAlphaEnabled="True"
|
||||||
IsAlphaSliderVisible="True"
|
IsAlphaSliderVisible="True"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
</Border.Background>
|
</Border.Background>
|
||||||
</Border>
|
</Border>
|
||||||
<DropDownButton.Flyout>
|
<DropDownButton.Flyout>
|
||||||
<Flyout>
|
<Flyout ShouldConstrainToRootBounds="False">
|
||||||
<ColorPicker
|
<ColorPicker
|
||||||
IsAlphaEnabled="False"
|
IsAlphaEnabled="False"
|
||||||
IsAlphaSliderVisible="False"
|
IsAlphaSliderVisible="False"
|
||||||
|
|||||||
@@ -101,7 +101,10 @@
|
|||||||
<DataTemplate x:Key="ModuleItemKBMTemplate" x:DataType="viewmodels:DashboardModuleKBMItem">
|
<DataTemplate x:Key="ModuleItemKBMTemplate" x:DataType="viewmodels:DashboardModuleKBMItem">
|
||||||
<Button x:Uid="DashboardKBMShowMappingsButton" HorizontalAlignment="Stretch">
|
<Button x:Uid="DashboardKBMShowMappingsButton" HorizontalAlignment="Stretch">
|
||||||
<Button.Flyout>
|
<Button.Flyout>
|
||||||
<Flyout x:Name="DetailsFlyout" Placement="Bottom">
|
<Flyout
|
||||||
|
x:Name="DetailsFlyout"
|
||||||
|
Placement="Bottom"
|
||||||
|
ShouldConstrainToRootBounds="False">
|
||||||
<StackPanel Orientation="Vertical" Spacing="4">
|
<StackPanel Orientation="Vertical" Spacing="4">
|
||||||
<ItemsControl ItemsSource="{x:Bind Path=RemapKeys, Mode=OneWay}">
|
<ItemsControl ItemsSource="{x:Bind Path=RemapKeys, Mode=OneWay}">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
|
|||||||
@@ -108,8 +108,8 @@
|
|||||||
<TextBlock x:Uid="EditTooltip" />
|
<TextBlock x:Uid="EditTooltip" />
|
||||||
</ToolTipService.ToolTip>
|
</ToolTipService.ToolTip>
|
||||||
<Button.Flyout>
|
<Button.Flyout>
|
||||||
<Flyout x:Uid="ImageResizer_EditSize">
|
<Flyout x:Uid="ImageResizer_EditSize" ShouldConstrainToRootBounds="False">
|
||||||
<StackPanel Margin="0,12,0,0" Spacing="16">
|
<StackPanel Spacing="16">
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Uid="ImageResizer_Name"
|
x:Uid="ImageResizer_Name"
|
||||||
Width="240"
|
Width="240"
|
||||||
@@ -146,7 +146,6 @@
|
|||||||
<ComboBox
|
<ComboBox
|
||||||
x:Uid="ImageResizer_Size"
|
x:Uid="ImageResizer_Size"
|
||||||
Width="240"
|
Width="240"
|
||||||
Margin="0,0,0,24"
|
|
||||||
SelectedIndex="{Binding Path=Unit, Mode=TwoWay}">
|
SelectedIndex="{Binding Path=Unit, Mode=TwoWay}">
|
||||||
<ComboBoxItem x:Uid="ImageResizer_Sizes_Units_CM" />
|
<ComboBoxItem x:Uid="ImageResizer_Sizes_Units_CM" />
|
||||||
<ComboBoxItem x:Uid="ImageResizer_Sizes_Units_Inches" />
|
<ComboBoxItem x:Uid="ImageResizer_Sizes_Units_Inches" />
|
||||||
@@ -233,7 +232,7 @@
|
|||||||
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
||||||
Style="{StaticResource SubtleButtonStyle}">
|
Style="{StaticResource SubtleButtonStyle}">
|
||||||
<Button.Flyout>
|
<Button.Flyout>
|
||||||
<Flyout>
|
<Flyout ShouldConstrainToRootBounds="False">
|
||||||
<TextBlock x:Name="FileFormatTextBlock">
|
<TextBlock x:Name="FileFormatTextBlock">
|
||||||
<Run x:Uid="ImageResizer_FileFormatDescription" />
|
<Run x:Uid="ImageResizer_FileFormatDescription" />
|
||||||
<LineBreak />
|
<LineBreak />
|
||||||
|
|||||||
@@ -288,8 +288,8 @@
|
|||||||
<TextBlock x:Uid="EditTooltip" />
|
<TextBlock x:Uid="EditTooltip" />
|
||||||
</ToolTipService.ToolTip>
|
</ToolTipService.ToolTip>
|
||||||
<Button.Flyout>
|
<Button.Flyout>
|
||||||
<Flyout x:Uid="MouseJumpThumbnailSize_Edit">
|
<Flyout x:Uid="MouseJumpThumbnailSize_Edit" ShouldConstrainToRootBounds="False">
|
||||||
<StackPanel Margin="0,12,0,0" Spacing="16">
|
<StackPanel Spacing="16">
|
||||||
<NumberBox
|
<NumberBox
|
||||||
x:Uid="MouseUtils_MouseJump_ThumbnailSize_Edit_Width"
|
x:Uid="MouseUtils_MouseJump_ThumbnailSize_Edit_Width"
|
||||||
Width="140"
|
Width="140"
|
||||||
|
|||||||
Reference in New Issue
Block a user