|
|
|
@ -64,13 +64,6 @@ namespace Avalonia.Controls |
|
|
|
public static readonly StyledProperty<bool> HasSystemDecorationsProperty = |
|
|
|
AvaloniaProperty.Register<Window, bool>(nameof(HasSystemDecorations), true); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Sets if the window should cover the taskbar when maximized. Only applies to Windows
|
|
|
|
/// with HasSystemDecorations = false.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly StyledProperty<bool> CoverTaskbarOnMaximizeProperty = |
|
|
|
AvaloniaProperty.Register<Window, bool>(nameof(CoverTaskbarOnMaximize), true); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Defines the <see cref="Title"/> property.
|
|
|
|
/// </summary>
|
|
|
|
@ -97,9 +90,6 @@ namespace Avalonia.Controls |
|
|
|
HasSystemDecorationsProperty.Changed.AddClassHandler<Window>( |
|
|
|
(s, e) => s.PlatformImpl.SetSystemDecorations((bool) e.NewValue)); |
|
|
|
|
|
|
|
CoverTaskbarOnMaximizeProperty.Changed.AddClassHandler<Window>( |
|
|
|
(s, e) => s.PlatformImpl.SetCoverTaskbarWhenMaximized((bool)e.NewValue)); |
|
|
|
|
|
|
|
IconProperty.Changed.AddClassHandler<Window>((s, e) => s.PlatformImpl.SetIcon(((WindowIcon)e.NewValue).PlatformImpl)); |
|
|
|
} |
|
|
|
|
|
|
|
@ -168,16 +158,6 @@ namespace Avalonia.Controls |
|
|
|
set { SetValue(HasSystemDecorationsProperty, value); } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Sets if the window should cover the taskbar when maximized. Only applies to Windows
|
|
|
|
/// with HasSystemDecorations = false.
|
|
|
|
/// </summary>
|
|
|
|
public bool CoverTaskbarOnMaximize |
|
|
|
{ |
|
|
|
get { return GetValue(CoverTaskbarOnMaximizeProperty); } |
|
|
|
set { SetValue(CoverTaskbarOnMaximizeProperty, value); } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the minimized/maximized state of the window.
|
|
|
|
/// </summary>
|
|
|
|
|