diff --git a/src/Avalonia.Controls/Window.cs b/src/Avalonia.Controls/Window.cs index 37f7c6d47f..9c0245a714 100644 --- a/src/Avalonia.Controls/Window.cs +++ b/src/Avalonia.Controls/Window.cs @@ -69,8 +69,8 @@ namespace Avalonia.Controls /// /// Enables or disables the taskbar icon /// - public static readonly StyledProperty HasTaskbarIconProperty = - AvaloniaProperty.Register(nameof(HasTaskbarIcon), true); + public static readonly StyledProperty ShowInTaskbarProperty = + AvaloniaProperty.Register(nameof(ShowInTaskbar), true); /// /// Defines the property. @@ -98,7 +98,7 @@ namespace Avalonia.Controls HasSystemDecorationsProperty.Changed.AddClassHandler( (s, e) => s.PlatformImpl?.SetSystemDecorations((bool) e.NewValue)); - HasTaskbarIconProperty.Changed.AddClassHandler((w, e) => w.PlatformImpl?.ShowTaskbarIcon((bool)e.NewValue)); + ShowInTaskbarProperty.Changed.AddClassHandler((w, e) => w.PlatformImpl?.ShowTaskbarIcon((bool)e.NewValue)); IconProperty.Changed.AddClassHandler((s, e) => s.PlatformImpl?.SetIcon(((WindowIcon)e.NewValue).PlatformImpl)); } @@ -173,10 +173,10 @@ namespace Avalonia.Controls /// Enables or disables the taskbar icon /// /// - public bool HasTaskbarIcon + public bool ShowInTaskbar { - get { return GetValue(HasTaskbarIconProperty); } - set { SetValue(HasTaskbarIconProperty, value); } + get { return GetValue(ShowInTaskbarProperty); } + set { SetValue(ShowInTaskbarProperty, value); } } ///