diff --git a/src/Wpf.Ui.Test/MainWindow.xaml b/src/Wpf.Ui.Test/MainWindow.xaml
index 5968422..1c52615 100644
--- a/src/Wpf.Ui.Test/MainWindow.xaml
+++ b/src/Wpf.Ui.Test/MainWindow.xaml
@@ -534,37 +534,19 @@
Text="PersonPicture" />
-
-
-
-
-
-
-
-
-
+
+
+
diff --git a/src/Wpf.Ui.Violeta/Controls/PersonPicture/PersonPicture.cs b/src/Wpf.Ui.Violeta/Controls/PersonPicture/PersonPicture.cs
index 7f3157b..aa7028d 100644
--- a/src/Wpf.Ui.Violeta/Controls/PersonPicture/PersonPicture.cs
+++ b/src/Wpf.Ui.Violeta/Controls/PersonPicture/PersonPicture.cs
@@ -103,7 +103,7 @@ void UpdateIfReady()
}
else
{
- templateSettings.ActualImageBrush = null;
+ templateSettings.ActualImageBrush = null!;
}
// If the control is converted to 'Group-mode', we'll clear individual-specific information.
@@ -233,7 +233,7 @@ void UpdateBadgeImageSource()
{
if (m_badgeImageBrush == null)
{
- m_badgeImageBrush = GetTemplateChild("BadgeImageBrush") as ImageBrush;
+ m_badgeImageBrush = (ImageBrush)GetTemplateChild("BadgeImageBrush");
}
if (m_badgingEllipse == null || m_badgeImageBrush == null)
diff --git a/src/Wpf.Ui.Violeta/Controls/PersonPicture/PersonPicture.xaml b/src/Wpf.Ui.Violeta/Controls/PersonPicture/PersonPicture.xaml
index 2c75145..2c6ebb7 100644
--- a/src/Wpf.Ui.Violeta/Controls/PersonPicture/PersonPicture.xaml
+++ b/src/Wpf.Ui.Violeta/Controls/PersonPicture/PersonPicture.xaml
@@ -19,8 +19,8 @@