You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/HorusStudio.Maui.MaterialDesignControls/Controls/NavigationDrawer/MaterialNavigationDrawerItem.cs
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ public class MaterialNavigationDrawerItem : INotifyPropertyChanged
22
22
privatebool_isSelected;
23
23
privatebool_isEnabled=true;
24
24
privatestring_automationId=null!;
25
+
privateColor?_labelColor;
26
+
privateColor?_activeIndicatorLabelColor;
25
27
26
28
#endregion Attributes
27
29
@@ -149,6 +151,26 @@ public string AutomationId
149
151
set=>SetProperty(ref_automationId,value);
150
152
}
151
153
154
+
/// <summary>
155
+
/// Gets or sets the label color for this item. If null, falls back to the MaterialNavigationDrawer's LabelColor.
156
+
/// This color is also applied to the leading and trailing icons when ApplyLeadingIconTintColor or ApplyTrailingIconTintColor is true.
157
+
/// </summary>
158
+
publicColor?LabelColor
159
+
{
160
+
get=>_labelColor;
161
+
set=>SetProperty(ref_labelColor,value);
162
+
}
163
+
164
+
/// <summary>
165
+
/// Gets or sets the active indicator label color for this item when selected. If null, falls back to the MaterialNavigationDrawer's ActiveIndicatorLabelColor.
166
+
/// This color is also applied to the leading and trailing icons when the item is selected and ApplyLeadingIconTintColor or ApplyTrailingIconTintColor is true.
0 commit comments