如何从XAML调用参数化构造函数 [英] how to call a parametrized constructor from XAML
本文介绍了如何从XAML调用参数化构造函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在surface2.0项目中调用XAML中的参数化构造函数?
is it possible to call a parametrized constructor from XAML in a surface2.0 project?
我正在使用来自其他人的usercontrol,它通过带参数的构造函数创建对象。
I am using a usercontrol from others which creates object via a constructor with parameters.
Fan Terry Zhang
Fan Terry Zhang
推荐答案
你好,
是的,现在你可以使用XAML中的参数化构造函数与.NET 4
yes now you can use paramterized constructor from XAML with .NET 4
.NET 4,0带来了一个挑战答案的新功能。
.NET 4,0 brings a new feature that challenges the answer.
x:参数指令
http:// msdn。 microsoft.com/en-us/library/ee795382.aspx
希望它有助于支付这个问题的答案
hope it helps
Thnaks to mark this answserasreply if it helps
关于
serge
regard
serge
这篇关于如何从XAML调用参数化构造函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文