wp7 在其他 XAML 中插入 XAML?

发布于 2024-12-07 15:52:29 字数 80 浏览 4 评论 0原文

如何将 XMAL 插入其他 XMAL 中?

这在wp7中可能吗?

如果有人知道概念帮助我。

谢谢。

How can i insert XMAL inside other XMAL?

is this possible in wp7?

If anyone know concept help me.

thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初懵 2024-12-14 15:52:29

有点像可重复使用的组件? HTML 中的 iframe?您可能对UserControls感兴趣。 这里有一个很棒的教程。

因此,首先您创建一个新的用户控件,例如。 “MyUserControl.xaml”(文件 -> 新项目 -> 用户控件)并向其中添加一些组件。稍后您可以在另一个 XAML 文件中添加对它的引用并简单地使用它:

这在我链接的教程中都有解释:) 。

Kind of like reusable components? A'la iframes in HTML? You might be interested in UserControls. 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 :).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文