fix RadButtonItem -=> RadButtonElement
This commit is contained in:
@@ -34,9 +34,10 @@ public static class Extensions
|
||||
|
||||
public static RadButtonItem GetAsItem(this PluginFeature module, EventHandler? clickHandler, PluginButtonType buttonType = PluginButtonType.RadMenuItem)
|
||||
{
|
||||
var item = buttonType switch
|
||||
RadButtonItem item = buttonType switch
|
||||
{
|
||||
PluginButtonType.RadMenuItem => new RadMenuItem(),
|
||||
PluginButtonType.RadButtonElement => new RadButtonElement(),
|
||||
PluginButtonType.RadButtonItem => new RadButtonItem(),
|
||||
_ => throw new NotSupportedException(),
|
||||
};
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
public enum PluginButtonType
|
||||
{
|
||||
RadMenuItem,
|
||||
RadButtonElement,
|
||||
RadButtonItem,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user