public ColorFilterControl(DelegateFilterDescriptor filterDescriptor) { this.InitializeComponent(); this.filterDescriptor = filterDescriptor ?? new DelegateFilterDescriptor { Filter = new ColorFilter() }; this.checkBoxContainer.ItemsSource = (this.filterDescriptor.Filter as ColorFilter).Colors; }
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); }