From 025d630f778be33a77b0bf2f8d5c9e0fa62ed307 Mon Sep 17 00:00:00 2001 From: Jurjen Biewenga Date: Thu, 7 Sep 2017 13:07:49 +0200 Subject: [PATCH] Renamed 'HasTaskbarIcon' to 'ShowInTaskbar' --- src/Avalonia.Controls/Window.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); } } ///