wp7 在其他 XAML 中插入 XAML?
如何将 XMAL 插入其他 XMAL 中?
这在wp7中可能吗?
如果有人知道概念帮助我。
谢谢。
How can i insert XMAL inside other XMAL?
is this possible in wp7?
If anyone know concept help me.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有点像可重复使用的组件?
HTML
中的 iframe?您可能对UserControls
感兴趣。 这里有一个很棒的教程。因此,首先您创建一个新的用户控件,例如。
“MyUserControl.xaml”
(文件 -> 新项目 -> 用户控件)并向其中添加一些组件。稍后您可以在另一个 XAML 文件中添加对它的引用并简单地使用它:这在我链接的教程中都有解释:) 。
Kind of like reusable components? A'la iframes in
HTML
? You might be interested inUserControls
. Here's an excellent tutorial about.So first you create a new usercontrol eg.
"MyUserControl.xaml"
(File -> New item -> User Control) and add some components to it. Later on you can add a reference to it in another XAML file and use it simply:<MyProject:MyUserControl x:Name="something" />
It's all explained in the tutorial I linked :).