The Label
property of the ToggleGroupAttribute
class is a string that specifies the label for the toggle group. This label is used to identify the group in the user interface, allowing users to understand what the toggle group represents.
The Label
property of the ToggleGroupAttribute
class is a string that specifies the label for the toggle group. This label is used to identify the group in the user interface, allowing users to understand what the toggle group represents.
To use the Label
property, you need to set it when applying the ToggleGroupAttribute
to a class or property. This label will then be displayed in the UI, providing a clear description of the toggle group.
// Example of using ToggleGroupAttribute with a Label [ToggleGroup("MyToggleGroup", Label = "Enable Features")] public bool IsFeatureEnabled; // In this example, "Enable Features" will be the label shown in the UI for the toggle group.