public virtual void RemoveOnRecreateChildren(GridEntryRecreateChildrenEventHandler h) { RemoveEventHandler(EVENT_RECREATE_CHILDREN, h); }
public PropertyGridView(IServiceProvider serviceProvider, PropertyGrid propertyGrid) : base() { this.ehValueClick = new EventHandler(this.OnGridEntryValueClick); this.ehLabelClick = new EventHandler(this.OnGridEntryLabelClick); this.ehOutlineClick = new EventHandler(this.OnGridEntryOutlineClick); this.ehValueDblClick = new EventHandler(this.OnGridEntryValueDoubleClick); this.ehLabelDblClick = new EventHandler(this.OnGridEntryLabelDoubleClick); this.ehRecreateChildren = new GridEntryRecreateChildrenEventHandler(this.OnRecreateChildren); ownerGrid = propertyGrid; this.serviceProvider = serviceProvider; SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.ResizeRedraw, false); SetStyle(ControlStyles.UserMouse, true); // properties BackColor = SystemColors.Window; ForeColor = SystemColors.WindowText; grayTextColor = SystemColors.GrayText; backgroundBrush = SystemBrushes.Window; TabStop = true; this.Text = "PropertyGridView"; CreateUI(); LayoutWindow(true); }
public PropertyGridView(IServiceProvider serviceProvider, PropertyGrid propertyGrid) : base() { if (!isScalingInitialized) { if (DpiHelper.IsScalingRequired) { paintWidth = DpiHelper.LogicalToDeviceUnitsX(PAINT_WIDTH); paintIndent = DpiHelper.LogicalToDeviceUnitsX(PAINT_INDENT); outlineSizeExplorerTreeStyle = DpiHelper.LogicalToDeviceUnitsX(OUTLINE_SIZE_EXPLORER_TREE_STYLE); outlineSize = DpiHelper.LogicalToDeviceUnitsX(OUTLINE_SIZE); maxListBoxHeight = DpiHelper.LogicalToDeviceUnitsY(MAX_LISTBOX_HEIGHT); } isScalingInitialized = true; } this.ehValueClick = new EventHandler(this.OnGridEntryValueClick); this.ehLabelClick = new EventHandler(this.OnGridEntryLabelClick); this.ehOutlineClick = new EventHandler(this.OnGridEntryOutlineClick); this.ehValueDblClick = new EventHandler(this.OnGridEntryValueDoubleClick); this.ehLabelDblClick = new EventHandler(this.OnGridEntryLabelDoubleClick); this.ehRecreateChildren = new GridEntryRecreateChildrenEventHandler(this.OnRecreateChildren); ownerGrid = propertyGrid; this.serviceProvider = serviceProvider; SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.ResizeRedraw, false); SetStyle(ControlStyles.UserMouse, true); // properties BackColor = SystemColors.Window; ForeColor = SystemColors.WindowText; grayTextColor = SystemColors.GrayText; backgroundBrush = SystemBrushes.Window; TabStop = true; this.Text = "PropertyGridView"; CreateUI(); LayoutWindow(true); }
public virtual void AddOnRecreateChildren(GridEntryRecreateChildrenEventHandler h) { this.AddEventHandler(EVENT_RECREATE_CHILDREN, h); }