Пример #1
0
 void FilterBox_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (e.NewValue is FilterModel)
     {
         this.Model = e.NewValue as FilterModel;
         this.Model.FilterCommand.CanExecuteTargets += () => true;
         Model.FilterCommand.ExecuteTargets += ExecuteHandler;
         this.SetupValidationRules();
         Model.PropertyChanged += Model_PropertyChanged;
     }
 }
Пример #2
0
 public FilterValidation(FilterModel model)
 {
     this.model = model;
 }