通过XAML嵌套的类对象 [英] Nested class object through XAML
本文介绍了通过XAML嵌套的类对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过XAML标记实例化嵌套类?
例如,我有以下课程安排
How to instantiate a nested class through XAML markup?
e.g I have following arrangment of classes
public class ViewModel
{
..
public class DataCommands
{
..
}
}
并且我想实例化DataCommands类.
and I want to instantiate DataCommands class.
推荐答案
请参见 ^ ]解决.
使用DataTemplate
或ItemTemplate
.
这篇关于通过XAML嵌套的类对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文