public FRPropertyGrid() { DrawFlatToolbar = true; PropertySort = PropertySort.Alphabetical; PropertyTabs.RemoveTabType(typeof(PropertiesTab)); PropertyTabs.AddTabType(typeof(FRPropertiesTab)); }
/// <summary> /// Use this constructor if you already have an ServiceProvider infrastructure /// </summary> /// <param name="serviceProvider">a ServiceProvider</param> public PropertyGridEx(IServiceProvider serviceProvider) { DrawFlat = true; // add the RawPage now and for ever (static) PropertyTabs.AddTabType(typeof(RawMemberTab), PropertyTabScope.Static); SetServiceProvider(serviceProvider); }
public void ShowEvents(bool show) { if (show) { PropertyTabs.AddTabType(typeof(EventsTab)); } ShowEventsButton(show); }
internal void BindObj(IComponent ctrl) { _ctrls.Clear(); _ctrls.Add(ctrl); PropertyTabs.AddTabType(typeof(EventsTab), PropertyTabScope.Document); ShowEventsButton(true); this.SelectedObject = ctrl; }
protected override void OnCreateControl() { DrawFlatToolbar = true; HelpVisible = true; PropertySort = PropertySort.Alphabetical; InitContextMenu(); ContextMenuStrip = _contextMenu; _goBackOneItem.Enabled = false; _goForwardOneItem.Enabled = false; base.OnCreateControl(); // Add New Tabs here PropertyTabs.AddTabType(typeof(AllPropertiesTab)); PropertyTabs.AddTabType(typeof(AllFieldsTab)); PropertyTabs.AddTabType(typeof(InstanceEventsTab)); PropertyTabs.AddTabType(typeof(MethodsTab)); PropertyTabs.AddTabType(typeof(ProcessInfoTab)); _historyObjects.Clear(); }