ConfirmationBehavior Members
Shows a confirmation message box before an application executes the specified command. Users can confirm or cancel the operation.Constructors
| Name | Description |
|---|---|
| ConfirmationBehavior() | Initializes a new instance of the ConfirmationBehavior class. |
Fields
| Name | Description |
|---|---|
| CommandParameterProperty static | Identifies the CommandParameter dependency property. |
| CommandProperty static | Identifies the Command dependency property. |
| CommandPropertyNameProperty static | Identifies the CommandPropertyName dependency property. |
| EnableConfirmationMessageProperty static | Identifies the EnableConfirmationMessage dependency property. |
| MessageBoxServiceProperty static | Identifies the MessageBoxService dependency property. |
| MessageButtonProperty static | Identifies the MessageButton dependency property. |
| MessageDefaultResultProperty static | Identifies the MessageDefaultResult dependency property. |
| MessageIconProperty static | Identifies the MessageIcon dependency property. |
| MessageTextProperty static | Identifies the MessageText dependency property. |
| MessageTitleProperty static | Identifies the MessageTitle dependency property. |
Properties
| Name | Description |
|---|---|
| Command | Gets or sets the command that runs if the user accepts the confirmation message. This is a dependency property. |
| CommandParameter | Gets or sets parameters to pass to the Command. This is a dependency property. |
| CommandPropertyName | Gets or sets a name of an associated control’s command property. This is a dependency property. |
| EnableConfirmationMessage | Gets or sets whether a confirmation message should be displayed. This is a dependency property. |
| HasAnimatedProperties | Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object’s dependency properties. Inherited from Animatable. |
| MessageBoxService | Gets or sets a custom message box service. You can use the WinUIMessageBox or create a custom message box that implements the IMessageBoxService interface. This is a dependency property. |
| MessageButton | Gets or sets the confirmation message buttons. This is a dependency property. |
| MessageDefaultResult | Gets or sets the confirmation message button that should be focused when the message appears. This is a dependency property. |
| MessageIcon | Gets or sets the confirmation message icon. This is a dependency property. |
| MessageText | Gets or sets the confirmation message text. This is a dependency property. |
| MessageTitle | Gets or sets the confirmation message title. This is a dependency property. |
Methods
| Name | Description |
|---|---|
| ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) | Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the specified HandoffBehavior is used. Inherited from Animatable. |
| ApplyAnimationClock(DependencyProperty, AnimationClock) | Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable. |
| BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) | Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the specified HandoffBehavior is used. Inherited from Animatable. |
| BeginAnimation(DependencyProperty, AnimationTimeline) | Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable. |
| Clone() | Creates a modifiable clone of this Animatable, making deep copies of this object’s values. When copying this object’s dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. Inherited from Animatable. |
| GetAnimationBaseValue(DependencyProperty) | Returns the non-animated value of the specified DependencyProperty. Inherited from Animatable. |
| ShouldSerializeStoredWeakReference(DependencyObject) static | Specifies whether a dependency object should be serialized. Inherited from Animatable. |
See Also