HeaderPane
Main
Hide
Share Link
Print

SftTaskDialogRadioButton Class

Represents a radio button of a task dialog.

Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET

Inheritance

Syntax

public sealed class SftTaskDialogRadioButton : Softelvdm.SftStyleNET.SftTaskDialogControl;
Public NotInheritable Class SftTaskDialogRadioButton
    Inherits Softelvdm.SftStyleNET.SftTaskDialogControl

Constructors

PublicSftTaskDialogRadioButtonInitializes a new instance of the SftTaskDialogRadioButton class.

Properties

PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogControlBoundPageReturns the page the element belongs to while the page is shown.
PublicCheckedDefines whether the radio button is checked.
PublicEnabledDefines whether the radio button can be checked by the user.
PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogControlTagDefines an object with data about the element.
PublicTextDefines the text of the radio button.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicToStringReturns the text of the radio button.

Events

PublicCheckedChangedOccurs when the SftTaskDialogRadioButton.Checked property changes while the page is shown.

Examples

C# View entire sample code

            page.Buttons.Add(SftTaskDialogButton.Cancel);
            page.Buttons.Add(SftTaskDialogButton.Help);

            page.Created += (s, a) => DumpValues("page.Created", a);
            page.Destroyed += (s, a) => DumpValues("page.Destroyed", a);
            page.HelpRequest += (s, a) => DumpValues("page.HelpRequest", a);
            page.LinkClicked += (s, a) => DumpValues("page.LinkClicked", a);
            apply.Click += (s, a) => DumpValues("Apply.Click (the dialog stays open)", a);
            foreach (SftTaskDialogRadioButton radio in page.RadioButtons) {
                SftTaskDialogRadioButton r = radio;
                r.CheckedChanged += (s, a) => DumpValues("RadioButton.CheckedChanged (" + r.Text.Replace("&", "") + (r.Checked ? ", checked" : "") + ")", a);
            }
            page.Verification.CheckedChanged += (s, a) => DumpValues("Verification.CheckedChanged (" + page.Verification.Checked + ")", a);
            page.Expander.ExpandedChanged += (s, a) => DumpValues("Expander.ExpandedChanged (" + page.Expander.Expanded + ")", a);

            SftTaskDialogButton clicked = SftTaskDialog.ShowDialog(this, page);

VB.NET View entire sample code

        page.Buttons.Add(SftTaskDialogButton.Cancel)
        page.Buttons.Add(SftTaskDialogButton.Help)

        AddHandler page.Created, Sub(s, a) DumpValues("page.Created", a)
        AddHandler page.Destroyed, Sub(s, a) DumpValues("page.Destroyed", a)
        AddHandler page.HelpRequest, Sub(s, a) DumpValues("page.HelpRequest", a)
        AddHandler page.LinkClicked, Sub(s, a) DumpValues("page.LinkClicked", a)
        AddHandler apply.Click, Sub(s, a) DumpValues("Apply.Click (the dialog stays open)", a)
        For Each radio As SftTaskDialogRadioButton In page.RadioButtons
            Dim r As SftTaskDialogRadioButton = radio
            AddHandler r.CheckedChanged, Sub(s, a) DumpValues("RadioButton.CheckedChanged (" + r.Text.Replace("&", "") + If(r.Checked, ", checked", "") + ")", a)
        Next
        AddHandler page.Verification.CheckedChanged, Sub(s, a) DumpValues("Verification.CheckedChanged (" + page.Verification.Checked.ToString() + ")", a)
        AddHandler page.Expander.ExpandedChanged, Sub(s, a) DumpValues("Expander.ExpandedChanged (" + page.Expander.Expanded.ToString() + ")", a)

        Dim clicked As SftTaskDialogButton = SftTaskDialog.ShowDialog(Me, page)

See Also Classes | SftStyle/NET 3.0