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)
|
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.RadMenuItem => new RadMenuItem(),
|
||||||
|
PluginButtonType.RadButtonElement => new RadButtonElement(),
|
||||||
PluginButtonType.RadButtonItem => new RadButtonItem(),
|
PluginButtonType.RadButtonItem => new RadButtonItem(),
|
||||||
_ => throw new NotSupportedException(),
|
_ => throw new NotSupportedException(),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
public enum PluginButtonType
|
public enum PluginButtonType
|
||||||
{
|
{
|
||||||
RadMenuItem,
|
RadMenuItem,
|
||||||
|
RadButtonElement,
|
||||||
RadButtonItem,
|
RadButtonItem,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user