Djostit
Djostit
CC#
Created by Elio on 11/28/2022 in #help
Command WPF with viewmodel
In the screenshot I see that he does not see the command
14 replies
CC#
Created by Elio on 11/28/2022 in #help
Command WPF with viewmodel
<Page.DataContext>
<local:TestVM />
</Page.DataContext>
<Page.DataContext>
<local:TestVM />
</Page.DataContext>
14 replies
CC#
Created by Elio on 11/28/2022 in #help
Command WPF with viewmodel
In the xaml you need to specify DataContext to be able to bind.
14 replies
CC#
Created by Elio on 11/28/2022 in #help
Command WPF with viewmodel
command example
14 replies
CC#
Created by Elio on 11/28/2022 in #help
Command WPF with viewmodel
public DelegateCommand TestCommand => new(() =>
{
Debug.WriteLine("It's working");
});
public DelegateCommand TestCommand => new(() =>
{
Debug.WriteLine("It's working");
});
14 replies
CC#
Created by Elio on 11/28/2022 in #help
Command WPF with viewmodel
When using DevExpress you need to inherit BindableBase in your ViewModel
14 replies
CC#
Created by Elio on 11/28/2022 in #help
Command WPF with viewmodel
I advise you to use DevExpress. As I understand it, you are violating the MVVM principles.
14 replies