❔ ✅ Notification marker in WPF
I want to create a notification marker like seen in the first picture. I am trying this right now using <Ellipse> for the circle and <TextBlock> for the count
My approach is a total mess as I have to make sure with pixel perfect margins and paddings that the number is always centered within the elipse, not to mention that the number might have 1, 2, 3.... digits.
It looks okayish for 1 and 2 digit numbers but for 3+ digits the number exceeds the bounds of my ellipse and it starts to look ugly (second picture).
Any better ideas than using Ellipse and TextBlock or how I could deal with this issue using Ellipse and Textblock?
My approach is a total mess as I have to make sure with pixel perfect margins and paddings that the number is always centered within the elipse, not to mention that the number might have 1, 2, 3.... digits.
It looks okayish for 1 and 2 digit numbers but for 3+ digits the number exceeds the bounds of my ellipse and it starts to look ugly (second picture).
Any better ideas than using Ellipse and TextBlock or how I could deal with this issue using Ellipse and Textblock?