DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Collections;
namespace DevComponents.DotNetBar.Design
{
public class RadialMenuItemDesigner : BaseItemDesigner
{
#region Implementation
private void RemoveDescriptors(System.Collections.IDictionary properties, String[] propNames)
{
foreach (String propName in propNames)
{
if (properties.Contains(propName))
{
if (properties[propName] is PropertyDescriptor)
properties[propName] = TypeDescriptor.CreateProperty(this.Component.GetType(), (PropertyDescriptor)properties[propName], new BrowsableAttribute(false));
else if (properties[propName] is EventDescriptor)
properties[propName] = TypeDescriptor.CreateEvent(this.Component.GetType(), (EventDescriptor)properties[propName], new BrowsableAttribute(false));
else
properties.Remove(propName);
}
}
}
protected override void PreFilterProperties(System.Collections.IDictionary properties)
{
base.PreFilterProperties(properties);
RemoveDescriptors(properties,
new String[] { "ItemAlignment",
"GlobalItem",
"AccessibleDefaultActionDescription",
"AccessibleDescription",
"AccessibleName",
"AccessibleRole",
"CanCustomize",
"Category",
"KeyTips",
"Shortcuts",
"ThemeAware",
"GlobalName",
"Stretch",
"BeginGroup" });
}
#endregion
}
}