HeaderPane
Main
Hide
Share Link
Print

AllowCloseDialog Property, SftTaskDialogButton Class

Defines whether clicking the button closes the dialog.

Class: SftTaskDialogButton
Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET

Syntax

public bool AllowCloseDialog { get; set; }
Public Property AllowCloseDialog As Boolean

Value

True if clicking the button closes the dialog with this button as the result. The Help button never closes the dialog, and neither does a button whose Click handler navigates to another page.

The default value is True.

Comments

Defines whether clicking the button closes the dialog.

Examples

VB.NET View entire sample code

        page.Heading = "Choose the export format"
        page.Text = "The report covers 1,284 orders. Read the <a href=""formats"">format notes</a> first."
        page.EnableLinks = True
        page.Verification = New SftTaskDialogVerificationCheckBox("&Open the file after the export")
        page.Expander = New SftTaskDialogExpander("Comma-separated files open in any spreadsheet program; PDF keeps the layout of the report.")
        page.RadioButtons.Add("&Comma-separated values (.csv)").Checked = True
        page.RadioButtons.Add("&PDF document")
        Dim apply As New SftTaskDialogButton("&Apply")
        apply.AllowCloseDialog = False
        page.Buttons.Add(apply)
        page.Buttons.Add(SftTaskDialogButton.OK)
        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)

See Also SftTaskDialogButton Class | Classes | SftStyle/NET 3.0