예제 #1
0
 private void OnFilterApplied(PropertyFilter filter)
 {
     if (this.FilterApplied != null)
     {
         this.FilterApplied(this, new PropertyFilterAppliedEventArgs(filter));
     }
 }
예제 #2
0
        // TODO: Optimize performance
        public override void ApplyFilter(PropertyFilter filter)
        {
            foreach (PropertyItem property in properties)
            {
                if (PropertyMatchesFilter(filter, property))
                {
                    foreach (FrameworkElement element in Children)
                    {
                        if (!object.Equals(element.Tag, property.Name))
                        {
                            continue;
                        }
                        element.Visibility = Visibility.Visible;
                    }
                    continue;
                }

                foreach (FrameworkElement element in Children)
                {
                    if (!object.Equals(element.Tag, property.Name))
                    {
                        continue;
                    }
                    element.Visibility = Visibility.Collapsed;
                }
            }
        }
예제 #3
0
        // TODO: Optimize performance
        public override void ApplyFilter(PropertyFilter filter)
        {
            foreach (PropertyItem property in properties)
              {
            if (PropertyMatchesFilter(filter, property))
            {
              foreach (FrameworkElement element in Children)
              {
            if (!object.Equals(element.Tag, property.Name)) continue;
            element.Visibility = Visibility.Visible;
              }
              continue;
            }

            foreach (FrameworkElement element in Children)
            {
              if (!object.Equals(element.Tag, property.Name)) continue;
              element.Visibility = Visibility.Collapsed;
            }
              }
        }
예제 #4
0
 public void ApplyFilter(PropertyFilter filter)
 {
     this.MatchesFilter = (filter == null) || filter.Match(this);
     this.OnFilterApplied(filter);
 }
예제 #5
0
 public override void ApplyFilter(PropertyFilter filter)
 {
     //throw new NotImplementedException();
 }
예제 #6
0
 public override void ApplyFilter(PropertyFilter filter)
 {
     //throw new NotImplementedException();
 }
예제 #7
0
 private bool PropertyMatchesFilter(PropertyFilter filter, PropertyItem entry)
 {
     entry.ApplyFilter(filter);
     return(entry.MatchesFilter);
 }
예제 #8
0
 public abstract void ApplyFilter(PropertyFilter filter);
예제 #9
0
 private bool PropertyMatchesFilter(PropertyFilter filter, PropertyItem entry)
 {
     entry.ApplyFilter(filter);
       return entry.MatchesFilter;
 }
예제 #10
0
 public abstract void ApplyFilter(PropertyFilter filter);