/// <summary> /// Perform post create tasks. /// </summary> protected override void PostCreate() { // Ask the header group to finish the create phase _headerGroup.PostCreate(); // Let base class perform standard actions base.PostCreate(); }
/// <summary> /// Construct the view appropriate for this builder. /// </summary> /// <param name="navigator">Reference to navigator instance.</param> /// <param name="manager">Reference to current manager.</param> /// <param name="redirector">Palette redirector.</param> public override void Construct(KryptonNavigator navigator, ViewManager manager, PaletteRedirect redirector) { // Let base class perform common operations base.Construct(navigator, manager, redirector); // Get the current root element _oldRoot = ViewManager.Root; // Construct the viewlet instance _headerGroup = new ViewletHeaderGroup(navigator, redirector, NeedPaintDelegate); // Create and initialize all objects ViewBase newRoot = _headerGroup.Construct(_oldRoot); _headerGroup.PostCreate(); // Assign the new root ViewManager.Root = newRoot; // Need to monitor changes in the enabled state Navigator.EnabledChanged += new EventHandler(OnEnabledChanged); }