This commit is contained in:
TheXamlGuy
2024-05-24 08:21:50 +01:00
parent 40a150fe80
commit c0c1a82846
103 changed files with 168 additions and 655 deletions
@@ -4,8 +4,6 @@ using Avalonia.Controls.Primitives;
using Avalonia.Controls.Shapes;
using Avalonia.Media;
using Avalonia.Media.Imaging;
using Kromek.UI.Avalonia.Controls;
using System;
namespace Toolkit.UI.Controls.Avalonia;
@@ -157,7 +155,6 @@ public class PersonPicture : TemplatedControl
if (change.Property == ProfilePictureProperty)
{
}
}
@@ -297,6 +294,7 @@ public class PersonPicture : TemplatedControl
PseudoClasses.Set(":NoBadge", true);
}
}
private void UpdateBadgeNumber()
{
if (badgingEllipse == null || badgeNumberTextBlock == null)
@@ -322,6 +320,7 @@ public class PersonPicture : TemplatedControl
badgeNumberTextBlock.Text = "99+";
}
}
private void UpdateDisplayName()
{
displayNameInitials = PersonPictureInitialsGenerator.InitialsFromDisplayName(DisplayName);
@@ -376,4 +375,4 @@ public class PersonPicture : TemplatedControl
}
}
}
}
}