コード例 #1
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.nextButton       = new WizardCommandAreaButtonElement();
            this.nextButton.Class = "NextButton";
            this.nextButton.UseDefaultDisabledPaint = false;
            this.nextButton.Text = LocalizationProvider <RadWizardLocalizationProvider> .CurrentProvider.GetLocalizedString("NextButtonText");

            this.nextButton.Alignment = ContentAlignment.MiddleRight;
            this.nextButton.MinSize   = new Size(100, 24);
            this.nextButton.Click    += new EventHandler(this.NextButton_Click);
            this.cancelButton         = new WizardCommandAreaButtonElement();
            this.cancelButton.Class   = "CancelButtont";
            this.cancelButton.UseDefaultDisabledPaint = false;
            this.cancelButton.Text = LocalizationProvider <RadWizardLocalizationProvider> .CurrentProvider.GetLocalizedString("CancelButtonText");

            this.cancelButton.Alignment = ContentAlignment.MiddleRight;
            this.cancelButton.MinSize   = new Size(100, 24);
            this.finishButton           = new WizardCommandAreaButtonElement();
            this.finishButton.Class     = "FinishButton";
            this.finishButton.UseDefaultDisabledPaint = false;
            this.finishButton.Text = LocalizationProvider <RadWizardLocalizationProvider> .CurrentProvider.GetLocalizedString("FinishButtonText");

            this.finishButton.Alignment = ContentAlignment.MiddleRight;
            this.finishButton.MinSize   = new Size(100, 24);
            this.helpButton             = (LightVisualElement) new BaseWizardElement();
            this.helpButton.Class       = "HelpButton";
            this.helpButton.Text        = LocalizationProvider <RadWizardLocalizationProvider> .CurrentProvider.GetLocalizedString("HelpButtonText");

            this.helpButton.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.helpButton.Alignment         = ContentAlignment.MiddleLeft;
            this.helpButton.MinSize           = new Size(60, 24);
        }
コード例 #2
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.backButton       = new WizardCommandAreaButtonElement();
            this.backButton.Class = "BackButton";
            this.backButton.UseDefaultDisabledPaint = false;
            this.backButton.Text = LocalizationProvider <RadWizardLocalizationProvider> .CurrentProvider.GetLocalizedString("BackButtonText");

            this.backButton.Alignment = ContentAlignment.MiddleRight;
            this.backButton.MinSize   = new Size(100, 24);
            this.backButton.Click    += new EventHandler(this.BackButton_Click);
        }
コード例 #3
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            this.nextButton       = new WizardCommandAreaButtonElement();
            this.nextButton.Class = "NextButton";
            this.nextButton.UseDefaultDisabledPaint = false;
            this.nextButton.Text      = RadWizardLocalizationProvider.CurrentProvider.GetLocalizedString(RadWizardStringId.NextButtonText);
            this.nextButton.Alignment = ContentAlignment.MiddleRight;
            this.nextButton.MinSize   = new Size(100, 24);
            this.nextButton.Click    += new EventHandler(NextButton_Click);
            this.Children.Add(this.nextButton);

            this.cancelButton       = new WizardCommandAreaButtonElement();
            this.cancelButton.Class = "CancelButtont";
            this.cancelButton.UseDefaultDisabledPaint = false;
            this.cancelButton.Text      = RadWizardLocalizationProvider.CurrentProvider.GetLocalizedString(RadWizardStringId.CancelButtonText);
            this.cancelButton.Alignment = ContentAlignment.MiddleRight;
            this.cancelButton.MinSize   = new Size(100, 24);
            this.Children.Add(this.cancelButton);

            this.finishButton       = new WizardCommandAreaButtonElement();
            this.finishButton.Class = "FinishButton";
            this.finishButton.UseDefaultDisabledPaint = false;
            this.finishButton.Text      = RadWizardLocalizationProvider.CurrentProvider.GetLocalizedString(RadWizardStringId.FinishButtonText);
            this.finishButton.Alignment = ContentAlignment.MiddleRight;
            this.finishButton.MinSize   = new Size(100, 24);
            this.Children.Add(this.finishButton);

            this.helpButton                   = new BaseWizardElement();
            this.helpButton.Class             = "HelpButton";
            this.helpButton.Text              = RadWizardLocalizationProvider.CurrentProvider.GetLocalizedString(RadWizardStringId.HelpButtonText);
            this.helpButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.helpButton.Alignment         = ContentAlignment.MiddleLeft;
            this.helpButton.MinSize           = new Size(60, 24);
            this.Children.Add(this.helpButton);
        }
コード例 #4
0
        private void FocusCommandButton()
        {
            WizardCommandAreaButtonElement backButton = this.BackButton as WizardCommandAreaButtonElement;

            if (backButton != null)
            {
                backButton.IsFocusedWizardButton = false;
            }
            this.NextButton.IsFocusedWizardButton   = false;
            this.CancelButton.IsFocusedWizardButton = false;
            this.FinishButton.IsFocusedWizardButton = false;
            if (this.NextButton.Visibility == ElementVisibility.Visible && this.NextButton.Enabled)
            {
                this.NextButton.Focus();
                this.NextButton.IsFocusedWizardButton = true;
            }
            else if (this.FinishButton.Visibility == ElementVisibility.Visible && this.FinishButton.Enabled)
            {
                this.FinishButton.Focus();
                this.FinishButton.IsFocusedWizardButton = true;
            }
            else if (backButton != null && backButton.Visibility == ElementVisibility.Visible && backButton.Enabled)
            {
                this.BackButton.Focus();
                backButton.IsFocusedWizardButton = true;
            }
            else
            {
                if (this.CancelButton.Visibility != ElementVisibility.Visible || !this.CancelButton.Enabled)
                {
                    return;
                }
                this.CancelButton.Focus();
                this.CancelButton.IsFocusedWizardButton = true;
            }
        }
コード例 #5
0
        public override AccessibleObject GetChild(int index)
        {
            WizardCommandAreaButtonElement navigationButton = ((RadWizard)this.Owner).WizardElement.View.CommandArea.NavigationButtons[index];

            return((AccessibleObject) new RadButtonElementAccessibleObject((RadButtonItem)navigationButton, navigationButton.Text));
        }