Mathéo
Mathéo
CC#
Created by Mathéo on 8/17/2023 in #help
❔ Best way to structure MVVM WPF App for multiples popups
Hi ! I have a (nooby) WPF question. So I'm using MVVM paterns Here is my folder structure:
/MVVM
/Model
Employee.cs
/View
EmployeesView.xaml
MainView.xaml
/ViewModel
EmployeesViewModel.cs
MainViewModel.cs
/MVVM
/Model
Employee.cs
/View
EmployeesView.xaml
MainView.xaml
/ViewModel
EmployeesViewModel.cs
MainViewModel.cs
I would like to add popups for my employees part (Like view employee detail, edit employee detail and add employee) I don't know how to do that, should I create a custom user control ? should I put all of my popups straight in EmployeesView.xaml (which seem not very clean) ? I'm begginer to wpf so your experience will help me 🙂 Thank you, have a nice day
9 replies