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.
ImportsDevExpress.MvvmImportsSystem.Windows.InputNamespace Example.ViewModel
PublicClass MainViewModel
ProtectedOverridableReadOnlyProperty MessageBoxService() As IMessageBoxService
GetReturnNothingEndGetEndPropertyPublicSub ShowMessage()
MessageBoxService.Show("This is MainView!")
EndSubEndClassEndNamespace
ImportsDevExpress.MvvmImportsDevExpress.Mvvm.DataAnnotationsNamespace Example.ViewModel
PublicClass ChildViewModel
<ServiceProperty(SearchMode:=ServiceSearchMode.PreferParents)> _
ProtectedOverridableReadOnlyProperty MessageBoxService() As IMessageBoxService
GetReturnNothingEndGetEndPropertyPublicSub ShowMessage()
MessageBoxService.Show("This is ChildView")
EndSubEndClassEndNamespace
<UserControlx:Class="Example.View.ChildView"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:ViewModel="clr-namespace:Example.ViewModel"xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"mc:Ignorable="d"d:DesignHeight="300"d:DesignWidth="300"DataContext="{dxmvvm:ViewModelSource ViewModel:ChildViewModel}"><Grid><ButtonContent="ChildView: Show Message"Command="{Binding ShowMessageCommand}"/></Grid></UserControl>