UpdateButtons() public method

Recreate the buttons to reflect a change in selected page.
public UpdateButtons ( ) : void
return void
        /// <summary>
        /// Process a change in the selected page
        /// </summary>
        public override void SelectedPageChanged()
        {
            // Ask the header group to update the
            _headerGroup.UpdateButtons();

            // Let base class perform common actions
            base.SelectedPageChanged();
        }
        /// <summary>
        /// Process a change in the selected page
        /// </summary>
        public override void SelectedPageChanged()
        {
            UpdateStatePalettes();
            _headerGroup.UpdateButtons();

            // Let base class do standard work
            base.SelectedPageChanged();
        }
Esempio n. 3
0
        /// <summary>
        /// Process a change in the visible state for a page.
        /// </summary>
        /// <param name="page">Page that has changed visible state.</param>
        public override void PageVisibleStateChanged(KryptonPage page)
        {
            // If is possible the header group has not been created yet
            // Ensure buttons are recreated to reflect different previous/next visibility
            _headerGroup?.UpdateButtons();

            // Let base class do standard work
            base.PageVisibleStateChanged(page);
        }