DotNet 4.8.1 build of DotNetBar
This commit is contained in:
1 parent
33439b63a0
commit
6b0a5d60f4
2609 files changed
+989814
-7
No files matched your search
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace DevComponents.DotNetBar.Design
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for RibbonTabItemGroupCollectionEditor.
|
||||
/// </summary>
|
||||
public class RibbonTabItemGroupCollectionEditor : System.ComponentModel.Design.CollectionEditor
|
||||
{
|
||||
public RibbonTabItemGroupCollectionEditor(Type type)
|
||||
: base(type)
|
||||
{
|
||||
}
|
||||
protected override Type CreateCollectionItemType()
|
||||
{
|
||||
return typeof(RibbonTabItemGroup);
|
||||
}
|
||||
protected override object CreateInstance(Type itemType)
|
||||
{
|
||||
object item = base.CreateInstance(itemType);
|
||||
if (item is RibbonTabItemGroup)
|
||||
{
|
||||
RibbonTabItemGroup group = item as RibbonTabItemGroup;
|
||||
DesignerSupport.SetDefaults(group);
|
||||
}
|
||||
return item;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user