Ejemplo n.º 1
0
            private void InitializeComponent()
            {
                this.fadeInToggleButton  = new RadToggleButton();
                this.fadeOutToggleButton = new RadToggleButton();

                this.fadeInToggleButton.Text  = "Fade In";
                this.fadeOutToggleButton.Text = "Fade Out";

                this.Size = new System.Drawing.Size(80, 80);
                this.fadeInToggleButton.Dock    = DockStyle.Top;
                this.fadeOutToggleButton.Dock   = DockStyle.Bottom;
                this.fadeInToggleButton.Height  = 40;
                this.fadeOutToggleButton.Height = 40;

                this.fadeInToggleButton.ToggleState = ((this.result & FadeAnimationType.FadeIn) != 0)
                    ? Telerik.WinControls.Enumerations.ToggleState.On : Telerik.WinControls.Enumerations.ToggleState.Off;

                this.fadeOutToggleButton.ToggleState = ((this.result & FadeAnimationType.FadeOut) != 0)
                    ? Telerik.WinControls.Enumerations.ToggleState.On : Telerik.WinControls.Enumerations.ToggleState.Off;

                this.fadeInToggleButton.ToggleStateChanged  += new StateChangedEventHandler(fadeInToggleButton_ToggleStateChanged);
                this.fadeOutToggleButton.ToggleStateChanged += new StateChangedEventHandler(fadeOutToggleButton_ToggleStateChanged);

                this.Controls.Add(this.fadeInToggleButton);
                this.Controls.Add(this.fadeOutToggleButton);
            }
Ejemplo n.º 2
0
        public override ControlStyleBuilderInfoList GetThemeDesignedControls(System.Windows.Forms.Control previewSurface)
        {
            RadToggleButton button = new RadToggleButton();

            button.AutoSize = false;
            button.Size     = new Size(120, 65);

            button.Text = "RadToggleButton";

            RadToggleButton buttonStructure = new RadToggleButton();

            button.AutoSize = true;

            buttonStructure.Text = "RadToggleButton";

            ControlStyleBuilderInfo     designed = new ControlStyleBuilderInfo(button, buttonStructure.RootElement);
            ControlStyleBuilderInfoList res      = new ControlStyleBuilderInfoList();

            res.Add(designed);

            return(res);
        }
Ejemplo n.º 3
0
 public RadToggleButtonAccessibleObject(RadToggleButton owner)
     : base((Control)owner)
 {
     owner.ToggleStateChanged += new StateChangedEventHandler(this.owner_ToggleStateChanged);
 }