Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.

WinUIDialogService

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>

Note that the WinUIDialogService does not support asynchronous UICommands.