Hello
When using Binding,
I'd like to know an easy way to refer to DataContext in View. We are using the MVVM module of DevExpress.
When we currently want to bind to a variable in UserControl View, rather than a dependent property of any object, we define the name of the View to set up ElementName and bind it.
ex)
XAML<UserControl x:Name="View">
Value={Binding DataContext.ViewVar, ElementName=View}
In this format, you access DataContext in View of UserControl. However, I would like to know how to refer to DataContext in UserControl View through the dxci extension or dxmvvm extension instead of setting up this ElementName.
Because if you set the ElementName property and refer to DataContext in View, you have to set ElementName on each screen and write it down every time you bind it, so there is a big opportunity cost for all screens.
Please tell me how to access DataContext in UserControl View. When defining UserControl, we do not define DataContxt as ViewModel, but connect View and ViewModel by MVVM Module Injection method of DevExpress.
Please reply as soon as possible.