Using Dialog Presenter
Using dialog presenter is simple and straightforward. You can target virtually any type of view context by specifying the respective ViewModel. To learn more how to implement the platform-specific view, see Data Presentation Overview.
Here are some basic usage examples. To show a simple dialog and retrieve the result, you can use the following code snippet:
Customizing Dialog Presenter
Dialog Presenter comes with 3 built-in buttons which represents negative, positive, and neutral actions. By default, the dialog presenter will only display the positive and neutral buttons. However you can easily customize what are going to be displayed through the DialogOptions. See the following code.
If you wish to hide the buttons, you can do it in this way.
There are several properties that you can customize in the DialogOptions. See the following list.
Specifies the caption text of the dialog.
Specifies the visible buttons.
Indicates whether buttons should be included in the
Specifies the negative button text.
Specifies the negative button style.
Specifies the positive button text.
Specifies the positive button style.
Specifies the neutral button text.
Specifies the neutral button style.
In addition to the generic dialog settings, each platform has their own settings that are specific to their interface guidelines. For instance, you can enable universal presenter setting in iOS, customizing its transition, presentation mode, and much more.
To jump start with Crosslight Dialog Presenter and see how it is implemented, please check out our comprehensive samples here: http://git.intersoftpt.com/projects/CROS-SUPP/repos/dialogpresenter-sample/browse.
For step-by-step walkthrough on how to get started with the Crosslight Dialog Presenter, check out this document: Get Started with Crosslight Dialog Presenter.