Here are the examples of the csharp api class System.Windows.Forms.Design.ControlDesigner.EnableDesignMode(System.Windows.Forms.Control, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
13 Examples
0
1. Example
Project: Krypton
Source File: KryptonNavigatorDesigner.cs
Source File: KryptonNavigatorDesigner.cs
private void OnPageInserted(object sender, TypedCollectionEventArgs<KryptonPage> e) { // Let the user design the new page surface EnableDesignMode(e.Item, e.Item.Name); UpdateVerbStatus(); }
0
2. Example
Project: AeroSuite
Source File: HeaderlessTabControl.cs
Source File: HeaderlessTabControl.cs
public override void Initialize(IComponent component) { base.Initialize(component); if (component is HeaderlessTabControl) { HeaderlessTabControl tabControl = component as HeaderlessTabControl; this.EnableDesignMode(tabControl.SelectedTab, "SelectedTab"); } }
0
3. Example
Project: Neo
Source File: ChrRacesEditorControl.cs
Source File: ChrRacesEditorControl.cs
public override void Initialize(System.ComponentModel.IComponent component) { base.Initialize(component); var ctl = (this.Control as ChrRacesEditorControl).TabControl as TabControl; EnableDesignMode(ctl, "TabControl"); foreach (TabPage page in ctl.TabPages) EnableDesignMode(page, page.Name); }
0
4. Example
Project: Neo
Source File: ExempleEditorControl.cs
Source File: ExempleEditorControl.cs
public override void Initialize(System.ComponentModel.IComponent component) { base.Initialize(component); var ctl = (this.Control as ExempleEditorControl).TabControl as TabControl; EnableDesignMode(ctl, "TabControl"); foreach (TabPage page in ctl.TabPages) EnableDesignMode(page, page.Name); }
0
5. Example
Project: Neo
Source File: CreatureEditorControl.cs
Source File: CreatureEditorControl.cs
public override void Initialize(System.ComponentModel.IComponent component) { base.Initialize(component); var ctl = (this.Control as CreatureEditorControl).TabControl as TabControl; EnableDesignMode(ctl, "TabControl"); foreach (TabPage page in ctl.TabPages) EnableDesignMode(page, page.Name); }
0
6. Example
Project: Neo
Source File: GameObjectEditorControl.cs
Source File: GameObjectEditorControl.cs
public override void Initialize(System.ComponentModel.IComponent component) { base.Initialize(component); var ctl = (this.Control as GameObjectEditorControl).TabControl as TabControl; EnableDesignMode(ctl, "TabControl"); foreach (TabPage page in ctl.TabPages) EnableDesignMode(page, page.Name); }
0
7. Example
Project: Neo
Source File: ItemEditorControl.cs
Source File: ItemEditorControl.cs
public override void Initialize(System.ComponentModel.IComponent component) { base.Initialize(component); var ctl = (this.Control as ItemEditorControl).TabControl as TabControl; EnableDesignMode(ctl, "TabControl"); foreach (TabPage page in ctl.TabPages) EnableDesignMode(page, page.Name); }
0
8. Example
Project: Krypton
Source File: KryptonNavigatorDesigner.cs
Source File: KryptonNavigatorDesigner.cs
public override void Initialize(IComponent component) { // Let base class do sta/n ..... /n //View Source file for more details /n }
0
9. Example
Project: Krypton
Source File: KryptonGroupBoxDesigner.cs
Source File: KryptonGroupBoxDesigner.cs
public override void Initialize(IComponent component) { Debug.Assert(component != null); // Validate the parameter reference if (component == null) throw new ArgumentNullException("component"); // Let base class do standard stuff base.Initialize(component); // Cast to correct type _groupBox = component as KryptonGroupBox; // The resizing handles around the control need to change depending on the // value of the AutoSize and AutoSizeMode properties. When in AutoSize you // do not get the resizing handles, otherwise you do. AutoResizeHandles = true; // Acquire service interfaces _designerHost = (IDesignerHost)GetService(typeof(IDesignerHost)); // Let the internal panel in the container be designable if (_groupBox != null) EnableDesignMode(_groupBox.Panel, "Panel"); }
0
10. Example
Project: Krypton
Source File: KryptonGroupDesigner.cs
Source File: KryptonGroupDesigner.cs
public override void Initialize(IComponent component) { Debug.Assert(component != null); // Validate the parameter reference if (component == null) throw new ArgumentNullException("component"); // Let base class do standard stuff base.Initialize(component); // Cast to correct type _group = component as KryptonGroup; // The resizing handles around the control need to change depending on the // value of the AutoSize and AutoSizeMode properties. When in AutoSize you // do not get the resizing handles, otherwise you do. AutoResizeHandles = true; // Acquire service interfaces _designerHost = (IDesignerHost)GetService(typeof(IDesignerHost)); // Let the internal panel in the container be designable if (_group != null) EnableDesignMode(_group.Panel, "Panel"); }
0
11. Example
Project: Krypton
Source File: KryptonHeaderGroupDesigner.cs
Source File: KryptonHeaderGroupDesigner.cs
public override void Initialize(IComponent component) { Debug.Assert(component !/n ..... /n //View Source file for more details /n }
0
12. Example
Project: TaskScheduler
Source File: HidableDetailPanel.cs
Source File: HidableDetailPanel.cs
public override void Initialize(System.ComponentModel.IComponent component) { base.Initialize(component); var panel = Control as HidableDetailPanel; if (panel != null) EnableDesignMode(panel.DetailArea, "DetailArea"); var service = GetService(typeof(DesignerActionService)) as DesignerActionService; service?.Remove(component); }
0
13. Example
Project: Krypton
Source File: KryptonSplitContainerDesigner.cs
Source File: KryptonSplitContainerDesigner.cs
public override void Initialize(IComponent component) { Debug.Assert(component !/n ..... /n //View Source file for more details /n }