mirror of
https://github.com/microsoft/PowerToys
synced 2025-09-02 15:35:12 +00:00
[ColorPicker]Convert main window to FluentWindow to fix window issues (#31805)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<Window
|
<ui:FluentWindow
|
||||||
x:Class="ColorPicker.MainWindow"
|
x:Class="ColorPicker.MainWindow"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
@@ -6,19 +6,21 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:e="http://schemas.microsoft.com/xaml/behaviors"
|
xmlns:e="http://schemas.microsoft.com/xaml/behaviors"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
||||||
Width="120"
|
Width="120"
|
||||||
Height="64"
|
Height="64"
|
||||||
MinWidth="0"
|
MinWidth="0"
|
||||||
MinHeight="0"
|
MinHeight="0"
|
||||||
AllowsTransparency="True"
|
|
||||||
AutomationProperties.Name="Color Picker"
|
AutomationProperties.Name="Color Picker"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
|
ExtendsContentIntoTitleBar="True"
|
||||||
Opacity="0.1"
|
Opacity="0.1"
|
||||||
ResizeMode="NoResize"
|
ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False"
|
ShowInTaskbar="False"
|
||||||
SizeToContent="WidthAndHeight"
|
SizeToContent="WidthAndHeight"
|
||||||
SourceInitialized="MainWindowSourceInitialized"
|
SourceInitialized="MainWindowSourceInitialized"
|
||||||
Topmost="True"
|
Topmost="True"
|
||||||
|
WindowCornerPreference="Default"
|
||||||
WindowStyle="None"
|
WindowStyle="None"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<e:Interaction.Behaviors>
|
<e:Interaction.Behaviors>
|
||||||
@@ -26,4 +28,4 @@
|
|||||||
<behaviors:AppearAnimationBehavior />
|
<behaviors:AppearAnimationBehavior />
|
||||||
</e:Interaction.Behaviors>
|
</e:Interaction.Behaviors>
|
||||||
<ContentControl x:Name="MainView" Content="{Binding MainViewModel}" />
|
<ContentControl x:Name="MainView" Content="{Binding MainViewModel}" />
|
||||||
</Window>
|
</ui:FluentWindow>
|
||||||
|
@@ -13,7 +13,7 @@ namespace ColorPicker
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Interaction logic for MainWindow.xaml
|
/// Interaction logic for MainWindow.xaml
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class MainWindow : Window
|
public partial class MainWindow : FluentWindow
|
||||||
{
|
{
|
||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user