Here are the examples of the csharp api class ComponentFactory.Krypton.Navigator.KryptonNavigator.OnLayout(System.Windows.Forms.LayoutEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: Krypton
Source File: KryptonNavigator.cs
Source File: KryptonNavigator.cs
protected override void OnInitialized(EventArgs e) { // Ignore call as view builder is already destructed if (!IsDisposed && (_viewBuilder != null)) { // Let base class generate standard event base.OnInitialized(e); // Ask the view builder to pull down current view _viewBuilder.Destruct(); // Ask the view builder to create new view based on new mode _viewBuilder = ViewBuilderBase.CreateViewBuilder(_mode); _viewBuilder.Construct(this, ViewManager, Redirector); if (LayoutOnInitialized) { // Force a layout now that initialization is complete OnLayout(new LayoutEventArgs(null, null)); } } }
0
2. Example
Project: Krypton
Source File: KryptonNavigator.cs
Source File: KryptonNavigator.cs
protected void ForceControlLayout() { // Usually the layout will not occur if currently initializing but // we need to force the layout processing because overwise the size // of the panel controls will not have been calculated when controls // are added to the panels. That would then cause problems with // anchor controls as they would then resize incorrectly. if (!IsInitialized) { _forcedLayout = true; OnLayout(new LayoutEventArgs(null, null)); _forcedLayout = true; } }