HeaderPane
Main
Hide
Share Link
Print

SftTaskDialogCommandLinkButton Class

Represents a command link of a task dialog: a large button with a text and a description, shown in the content area.

Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET

Inheritance

Syntax

public sealed class SftTaskDialogCommandLinkButton : Softelvdm.SftStyleNET.SftTaskDialogButton;
Public NotInheritable Class SftTaskDialogCommandLinkButton
    Inherits Softelvdm.SftStyleNET.SftTaskDialogButton

Constructors

PublicSftTaskDialogCommandLinkButtonInitializes a new instance of the SftTaskDialogCommandLinkButton class.

Properties

PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonAbortReturns a new Abort button.
PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonAllowCloseDialogDefines whether clicking the button closes the dialog.
PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogControlBoundPageReturns the page the element belongs to while the page is shown.
PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonCancelReturns a new Cancel button.
PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonCloseReturns a new Close button.
PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonContinueReturns a new Continue button.
PublicDescriptionTextDefines the description shown below the text.
PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonEnabledDefines whether the button can be clicked.
PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonHelpReturns a new Help button, which raises the SftTaskDialogPage.HelpRequest event of the page and does not close the dialog.
PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonIgnoreReturns a new Ignore button.
PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonNoReturns a new No button.
PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonOKReturns a new OK button.
PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonRetryReturns a new Retry button.
PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonShowShieldIconDefines whether the button shows the shield icon, which tells the user that the action needs elevated rights.
PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogControlTagDefines an object with data about the element.
PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonTextDefines the text of the button.
PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonTryAgainReturns a new Try Again button.
PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonVisibleDefines whether the button is shown.
PublicStaticInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonYesReturns a new Yes button.

Methods

PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonEqualsReturns whether the object is the same button, or the same standard button.
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 Softelvdm.SftStyleNET.SftTaskDialogButtonGetHashCodeReturns a hash code for the button.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonPerformClickClicks the button, as the user would, while its page is shown.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonToStringReturns the text of the button.

Events

PublicInherited from Softelvdm.SftStyleNET.SftTaskDialogButtonClickOccurs when the button is clicked.

Examples

C# View entire sample code

            SftTaskDialogPage page = new SftTaskDialogPage {
                Caption = "Unsaved orders",
                Heading = "What do you want to do with the 3 unsaved orders?",
                Icon = SftTaskDialogIcon.Warning,
                Verification = new SftTaskDialogVerificationCheckBox("&Do not ask again"),
                Expander = new SftTaskDialogExpander("Order 1042, Order 1044 and Order 1045 have changes that are not saved."),
                Footnote = new SftTaskDialogFootnote("Drafts are kept for 30 days."),
            };
            page.Buttons.Add(new SftTaskDialogCommandLinkButton("&Save the orders", "They are saved as drafts and can be completed later."));
            page.Buttons.Add(new SftTaskDialogCommandLinkButton("D&iscard the orders", "The changes are lost."));
            page.Buttons.Add(SftTaskDialogButton.Cancel);
            SftTaskDialogButton clicked = SftTaskDialog.ShowDialog(this, page);
            labelResult.Text = "Task dialog: " + (clicked == null ? "closed" : clicked.Text.Replace("&", "")) + (page.Verification.Checked ? ", do not ask again" : "");
        }

        private void buttonColorDialog_Click(object sender, EventArgs e) {

VB.NET View entire sample code

    Private Sub ButtonTaskDialog_Click(ByVal sender As Object, ByVal e As EventArgs) Handles ButtonTaskDialog.Click
        Dim page As New SftTaskDialogPage()
        page.Caption = "Unsaved orders"
        page.Heading = "What do you want to do with the 3 unsaved orders?"
        page.Icon = SftTaskDialogIcon.Warning
        page.Verification = New SftTaskDialogVerificationCheckBox("&Do not ask again")
        page.Expander = New SftTaskDialogExpander("Order 1042, Order 1044 and Order 1045 have changes that are not saved.")
        page.Footnote = New SftTaskDialogFootnote("Drafts are kept for 30 days.")
        page.Buttons.Add(New SftTaskDialogCommandLinkButton("&Save the orders", "They are saved as drafts and can be completed later."))
        page.Buttons.Add(New SftTaskDialogCommandLinkButton("D&iscard the orders", "The changes are lost."))
        page.Buttons.Add(SftTaskDialogButton.Cancel)
        Dim clicked As SftTaskDialogButton = SftTaskDialog.ShowDialog(Me, page)
        Dim text As String = "closed"
        If clicked IsNot Nothing Then
            text = clicked.Text.Replace("&", "")
        End If

See Also Classes | SftStyle/NET 3.0