public ProductCategoryControl(StackPanel stackPanel) { InitializeComponent(); DataContext = new CategoryViewModel(); var product = new ProductControl(true); stackPanel.Children.Add(product); }
public SelectedCategoryChangeCommand(CategoryViewModel categoryViewModel) { this.categoryViewModel = categoryViewModel; }