Dialogs provide important prompts in a user flow.
Currently, this control only represents the UI and guidelines proposed by Material, it doesn't provide the popup/alert behavior, you could resolve it with Rg.Plugins.Popup or with a similar implementation.
View Material Design documentation
<material3:MaterialDialog
HeadlineText="Basic dialog"
SupportingText="Basic dialog with an accept button and cancel button."
AcceptText="Accept"
AcceptCommand="{Binding AcceptCommand}"
CancelText="Cancel"
CancelCommand="{Binding CancelCommand}" />
This property is to set the background color of the dialog.
This property is to set the background color of the dialog shadow.
This property is to set if the control will have shadow or not.
This property is to set the corner radius of the dialog.
This property is to set the icon with support for PNG, JPG or JPEG.
This property is to set the leading icon with support for view, you can use SVG, font icon, PNG, JPG or JPEG.
This property is to set the sizes to the icon.
This property is to set the icon alignment.
- Start
- Center
- End
This property is to set the headline text of the dialog.
This property is to set the horizontal headline text alignment.
- Start
- Center
- End
This property is to set the color text of the headline.
This property is to the font size of the headline.
This property is to the font family of the headline.
This property is to set the supporting text of the dialog.
This property is to set the horizontal supporting text alignment.
- Start
- Center
- End
This property is to set the color text of the supporting text.
This property is to the font size of the supporting text.
This property is to the font family of the supporting text.
This property is to set if the control will have divider or not.
This property is to set the color of the divider.
This property is to set the text of the cancel button.
This property is to set the background color of the cancel button.
This property is to set the color text of the cancel button.
This property is to the font size of the cancel button.
This property is to the font family of the cancel button.
This property is to set the corner radius of cancel button.
This property is to set the command of the cancel button.
This property is to show a busy indicator in the cancel button when a command is running.
This property is to set if the cancel button is visible or hidden.
This property is to set if the cancel button is enabled or disabled.
This property is to set the text of the accept button.
This property is to set the background color of the accept button.
This property is to set the color text of the accept button.
This property is to the font size of the accept button.
This property is to the font family of the accept button.
This property is to set the corner radius of accept button.
This property is to set the command of the accept button.
If the ItemSource property has a bound list, this command will receive as a parameter the selected item if it is a single selection or a list of selected items if it is multiple selection (AllowMultiselect).
This property is to show a busy indicator in the accept button when a command is running.
This property is to set if the accept button is visible or hidden.
This property is to set if the accept button is enabled or disabled.
This property is to set the horizontal alignment of the accept and cancel buttons.
- Start
- Center
- End
This property is to set if the control will have a search to filter the items or not.
This property is to set the text of the search placeholder.
This property is to set the horizontal alignment of the search text.
- Start
- Center
- End
This property is to set the color text of the search text.
This property is to set the background color of the search.
This property is to the font size of the search text.
This property is to the font family of the search text.
This property is to set a quick selection command which will be invoked as soon as the user selects any item from the list.
This command will receive as a parameter the selected item.
This property is to set if the control will allow multiple selection of items or not.
This property is for displaying list of items to select. You should set a List of MaterialDialogItem. Its definition is:
- Id (string): internal identifier that you could need to identify the items.
- Text (string): text showed.
- IsSelected (bool): by default you can select an item or items in case multiple select is allowed.
This property is to set the color text of the items.
This property is to the font size of the items.
This property is to the font family of the items.
This property is to set the checkbox color of the items.
This property is to set the icon when is checked, it supports PNG, JPG or JPEG.
This property is to set the icon when is unchecked, it supports PNG, JPG or JPEG.
This property is to set the icon when is checked. It is a DataTemplate property, so you can set any control, it could supports SVG, font icon, PNG, JPG or JPEG.
This property is to set the icon when is unchecked. It is a DataTemplate property, so you can set any control, it could supports SVG, font icon, PNG, JPG or JPEG.
This property is to set the size of the checkbox.
This property is to set the spacing of the checkbox.