public Menu() { InitializeComponent(); if (DataContext == null) { DataContext = new MenuViewModel.MenuVM(); } if (cartContext.Products == null) { cartContext.Products = new ObservableCollection <ProductDTO>(); } }
public Menu() { InitializeComponent(); DataContext = new MenuViewModel.MenuVM(); }