Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
How to instantiate a nested class through XAML markup?

e.g I have following arrangment of classes


public class ViewModel
{
  ..
    public class DataCommands
    {
      ..
    }
}


and I want to instantiate DataCommands class.
Posted
Updated 12-Jan-11 9:13am
v2
Comments
Sergey Alexandrovich Kryukov 12-Jan-11 11:00am    
Good question (my 5)

See here[^] for a workaround.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 12-Jan-11 11:01am    
Very useful. Good to know (my 5)
Espen Harlinn 12-Jan-11 17:37pm    
5. -> 5+ ahh, I get it :)
Abhinav S 13-Jan-11 0:01am    
Thanks. It was something new to me too :).
With either a DataTemplate, or an ItemTemplate.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900