Flyouts use FlyoutAction objects to display buttons. These buttons are stored in the FlyoutAction.Commands collection. The FlyoutCommand class allows you to add both standard (OK, Cancel, Retry etc) and custom buttons to FlyoutActions.
C# |
myFlyoutAction.Commands.AddRange(new FlyoutCommand[] {FlyoutCommand.OK, FlyoutCommand.Cancel});
|
VB |
myFlyoutAction.Commands.AddRange(New FlyoutCommand() {FlyoutCommand.OK, FlyoutCommand.Cancel})
|
To add a custom button, create your own FlyoutCommand class descendant and override the required properties. See the How To: Create a Message Box Flyout With User Control topic for anexample.
System.Object
FlyoutCommand