I have a class
public class Item { public string A { get; set; } public Control B { get; set; } }
I m using MVVM with Silverlight. I have a custom view that is inherited from a standard view. Custom view has public property
public ICollection MyItems { get; set; }which should store items described above.
In xaml of my view I have
xxxx.MyItems> Item A="someText" B="_existingButton" /> Item A="someText2" B="_existingButton2" /> /xxxx.MyItems>
Initialize() method of View fails when trying to assign value for B.
How can I assign a reference to existing element for a custom collection item?