private void _btnAdd_Click(object sender, RoutedEventArgs e) { var view = new EditFiltersGroup(); ViewManager.AddUserControl(view); ViewManager.OpenUserControl(view); }
private void OpenEditMode(object sender, RoutedEventArgs e) { var button = (sender as ButtonWithObject); var group = button?.Object as FiltersGroup; var view = new EditFiltersGroup(group); ViewManager.AddUserControl(view); ViewManager.OpenUserControl(view); e.Handled = true; }