Ejemplo n.º 1
0
 public SharedRaceViewModel()
 {
     Genders = new FilterableObservableCollection <Gender>((g, s) =>
                                                           g.GenderDescription.ToLower().Contains(s));
     Locations = new FilterableObservableCollection <Location>((l, s) =>
                                                               l.LocationName.ToLower().Contains(s));
 }
    public MainWindow()
    {
        items = new FilterableObservableCollection()
        {
            new ListViewItem()
            {
                Name = "Hallo", IsArchived = false
            },
            new ListViewItem()
            {
                Name = "world", IsArchived = true
            },
            new ListViewItem()
            {
                Name = "!!!", IsArchived = false
            }
        };

        InitializeComponent();
    }