Class BadgePanel
A custom panel for badge UIs that lays out a content element over a scalable shape.
Behavior:
- Children: Uses the ContentPresenter as the badge content and the Path as the badge shape/background.
- Measure: Computes desired size from the ContentPresenter including its Margin.
The Path is measured but does not influence desired size.
- Arrange: Stretches the Path to the full final size. Arranges the ContentPresenter inside the padded area,
respecting its Margin and Horizontal/VerticalAlignment (supports Stretch).
Inheritance
System.Object
BadgePanel
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class BadgePanel : Panel
Constructors
BadgePanel()
Declaration
Methods
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
| Type |
Name |
Description |
| System.Windows.Size |
finalSize |
|
Returns
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
| Type |
Name |
Description |
| System.Windows.Size |
availableSize |
|
Returns