Is it possible to create MVVM properties using for/while loop? Where should I place the loop? In constructor or will any other method work? I would be using some other property or constructor parameter as a counter.
I am using WPF 4.0
Is it possible to create Lists or Arrays containing ObservableCollection<string> {get: set;}
ie. string/int property observable collection in a list or array.
like
List<ObservableCollection<string> {get;set;} lt= new List<ObservableCollection<string> {get;set;}();
I am trying to do something like below without creating a class.
public class CustomerListList : List<CustomerList> { }
public class CustomerList : List<Customer> { }
public class Customer
{
public int ID { get; set; }
public string SomethingWithText { get; set; }
}
I found above code in "The Poet"'s answer to below question. Creating a List of Lists in C#