Пример #1
0
        private static void CheckBoxOnDataContextChanged(FilterSetupView view, object sender, DependencyPropertyChangedEventArgs e)
        {
            var checkBox = (CheckBox)sender;
            var filterViewModel = (SimpleFilterViewModel)checkBox.DataContext;

            if (filterViewModel != null && filterViewModel.Value == OperatorValueFilterDescriptorBase.UnsetValue)
            {
                filterViewModel.Value = null;
            }
        }
Пример #2
0
        private static void NumericUpDownOnDataContextChanged(FilterSetupView view, object sender, DependencyPropertyChangedEventArgs e)
        {
            var numericUpDown = (RadNumericUpDown)sender;
            var filterViewModel = (SimpleFilterViewModel)numericUpDown.DataContext;

            if (filterViewModel != null && filterViewModel.Value == OperatorValueFilterDescriptorBase.UnsetValue)
            {
                filterViewModel.Value = null;
            }
        }
Пример #3
0
 private static void OnComboBoxSelectionChanged(FilterSetupView target, EventPattern<SelectionChangedEventArgs> handler)
 {
     target.ComboBoxOnSelectionChanged(handler.Sender, handler.EventArgs);
 }