diff --git a/src/Core/src/Platform/Windows/ContentPanel.cs b/src/Core/src/Platform/Windows/ContentPanel.cs index 00f53554e003..48d91cd41940 100644 --- a/src/Core/src/Platform/Windows/ContentPanel.cs +++ b/src/Core/src/Platform/Windows/ContentPanel.cs @@ -82,7 +82,7 @@ internal void EnsureBorderPath() public void UpdateBackground(Paint? background) { - if (_borderPath == null) + if (_borderPath is null) { return; } @@ -135,7 +135,7 @@ void UpdateBorder(IShape? strokeShape) void AddContent(FrameworkElement? content) { - if (content == null) + if (content is null) { return; }