예제 #1
0
        private void _btnAdd_Click(object sender, RoutedEventArgs e)
        {
            var view = new EditFiltersGroup();

            ViewManager.AddUserControl(view);
            ViewManager.OpenUserControl(view);
        }
예제 #2
0
        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;
        }