WinUIDialogService
The WinUIDialogService allows you to show a modal window (the WinUIDialogWindow control).
The WinUIDialogService implements the IDialogService interface.
Note
Add the DevExpress.Xpf.Controls reference to your project to use the WinUIDialogService service.
The WinUIDialogService works similarly to the DialogService. You can use the example from the DialogService documentation topic and replace the DialogService
definition with the WinUIDialogService
:
<UserControl ...
xmlns:dxwui="http://schemas.devexpress.com/winfx/2008/xaml/windowsui"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm">
<dxmvvm:Interaction.Behaviors>
<dxwui:WinUIDialogService>
<dxwui:WinUIDialogService.ViewTemplate>
<DataTemplate>
<View:RegistrationView/>
</DataTemplate>
</dxwui:WinUIDialogService.ViewTemplate>
</dxwui:WinUIDialogService>
</dxmvvm:Interaction.Behaviors>
</UserControl>