Skip to content

Commit dabfe9a

Browse files
committed
fix: Add missing NavigationViewItemPresenter.InfoBadge property
1 parent 2d35d99 commit dabfe9a

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/Uno.UI/Microsoft/UI/Xaml/Controls/NavigationView/NavigationViewItemPresenter.Properties.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
3-
// MUX Reference NavigationViewItemPresenter.properties.cpp, commit 6bdf738
3+
// MUX Reference NavigationViewItemPresenter.properties.cpp, commit fd22d7f
44

55
using Windows.UI.Xaml;
66
using Windows.UI.Xaml.Controls;
@@ -24,6 +24,22 @@ public IconElement Icon
2424
public static DependencyProperty IconProperty { get; } =
2525
DependencyProperty.Register(nameof(Icon), typeof(IconElement), typeof(NavigationViewItemPresenter), new FrameworkPropertyMetadata(null));
2626

27+
/// <summary>
28+
/// Gets or sets the info badge in a NavigationView item.
29+
/// </summary>
30+
public InfoBadge InfoBadge
31+
{
32+
get => (InfoBadge)GetValue(InfoBadgeProperty);
33+
set => SetValue(InfoBadgeProperty, value);
34+
}
35+
36+
/// <summary>
37+
/// Identifies the InfoBadge dependency property.
38+
/// </summary>
39+
public static DependencyProperty InfoBadgeProperty { get; } =
40+
DependencyProperty.Register(nameof(InfoBadge), typeof(InfoBadge), typeof(NavigationViewItemPresenter), new FrameworkPropertyMetadata(null));
41+
42+
2743
/// <summary>
2844
/// Gets the template settings.
2945
/// </summary>

0 commit comments

Comments
 (0)