示例#1
0
 public ColorFilterControl(DelegateFilterDescriptor filterDescriptor)
 {
     this.InitializeComponent();
     this.filterDescriptor = filterDescriptor ?? new DelegateFilterDescriptor {
         Filter = new ColorFilter()
     };
     this.checkBoxContainer.ItemsSource = (this.filterDescriptor.Filter as ColorFilter).Colors;
 }
示例#2
0
        public override FilterDescriptorBase BuildDescriptor()
        {
            var descriptor = new DelegateFilterDescriptor();

            descriptor.Filter = new FlightClassFilter((FlightClass)this.classCombo.SelectedIndex);

            return(descriptor);
        }
 public MainPage()
 {
     InitializeComponent();
     filterDescriptor = new DelegateFilterDescriptor {
         Filter = MyViewModel.GetNameFilter
     };
     sortDescriptor = new PropertySortDescriptor {
         PropertyName = "FullName", SortOrder = SortOrder.Ascending
     };
     contactListView.SortDescriptors.Add(sortDescriptor);
 }
 public ColorFilterControl(DelegateFilterDescriptor filterDescriptor)
 {
     this.InitializeComponent();
     this.filterDescriptor = filterDescriptor ?? new DelegateFilterDescriptor { Filter = new ColorFilter() };
     this.checkBoxContainer.ItemsSource = (this.filterDescriptor.Filter as ColorFilter).Colors;
 }