Table of Contents

Class Button

Namespace
Tudormobile.Wpf.Behaviors
Assembly
Tudormobile.WpfControls.dll

Provides attached properties and methods for adding confirmation behavior to buttons.

public class Button
Inheritance
Button
Inherited Members

Remarks

The Button class defines an attached property, Tudormobile.Wpf.Behaviors.Button.ConfirmProperty, which allows you to associate confirmation parameters with a button. When the property is set, the button's Click event is intercepted to display a confirmation dialog before executing the button's action.

Methods

GetConfirm(DependencyObject)

Retrieves the ConfirmParameters associated with the specified DependencyObject.

public static ConfirmParameters? GetConfirm(DependencyObject obj)

Parameters

obj DependencyObject

The DependencyObject from which to retrieve the confirmation parameters.

Returns

ConfirmParameters

The ConfirmParameters associated with the specified obj, or null if no confirmation parameters are set.

SetConfirm(DependencyObject, ConfirmParameters?)

Sets the confirmation parameters for the specified dependency object.

public static void SetConfirm(DependencyObject obj, ConfirmParameters? value)

Parameters

obj DependencyObject

The DependencyObject to which the confirmation parameters will be applied. Cannot be null.

value ConfirmParameters

The ConfirmParameters to set, or null to clear the confirmation parameters.