Skip to content

Commit

Permalink
[ColorPicker]Convert main window to FluentWindow to fix window issues (
Browse files Browse the repository at this point in the history
  • Loading branch information
donlaci committed Mar 14, 2024
1 parent 612e249 commit 62d278b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/modules/colorPicker/ColorPickerUI/MainWindow.xaml
@@ -1,29 +1,31 @@
<Window
<ui:FluentWindow
x:Class="ColorPicker.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:behaviors="clr-namespace:ColorPicker.Behaviors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:e="http://schemas.microsoft.com/xaml/behaviors"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
Width="120"
Height="64"
MinWidth="0"
MinHeight="0"
AllowsTransparency="True"
AutomationProperties.Name="Color Picker"
Background="Transparent"
ExtendsContentIntoTitleBar="True"
Opacity="0.1"
ResizeMode="NoResize"
ShowInTaskbar="False"
SizeToContent="WidthAndHeight"
SourceInitialized="MainWindowSourceInitialized"
Topmost="True"
WindowCornerPreference="Default"
WindowStyle="None"
mc:Ignorable="d">
<e:Interaction.Behaviors>
<behaviors:ChangeWindowPositionBehavior />
<behaviors:AppearAnimationBehavior />
</e:Interaction.Behaviors>
<ContentControl x:Name="MainView" Content="{Binding MainViewModel}" />
</Window>
</ui:FluentWindow>
2 changes: 1 addition & 1 deletion src/modules/colorPicker/ColorPickerUI/MainWindow.xaml.cs
Expand Up @@ -13,7 +13,7 @@ namespace ColorPicker
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
public partial class MainWindow : FluentWindow
{
public MainWindow()
{
Expand Down

0 comments on commit 62d278b

Please sign in to comment.