Silverlight:品牌/设计和导航
我在 ASP.NET 方面拥有多年经验,但对 Silverlight 还很陌生。 我有一个关于 Silverlight 页面/应用程序的设计和导航的基本问题?如果 Silverlight 项目与 ASP.NET 项目托管在一起, 是否可以使用母版页来进行品牌/设计,并使用导航来进行页面/应用程序? Silverlight 是否有类似母版页的概念?
I have some years exprience with ASP.NET, but I am new to Silverlight.
I have a basic question regarding the design and navigation of a Silverlight page/application ? If a Silverlight project is hosted together with an ASP.NET project,
is it possible to use masterpages for the branding/design and navigation for the page/application ? Has Silverlight a similar / analogue concept like masterpages ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Silverlight 的工作方式与 Flash 应用程序类似。如果您创建覆盖整个屏幕的仅限 Silverlight 的应用程序,则母版页不适用。您需要使用 Silverlight 代码来实现同样的目的。
如果将其用作嵌入对象,则可以将母版页用于页面的其余部分。
Silverlight works like flash applications do. If you create a Silverlight only application that covers the whole screen, then masterpages do not apply. You would need to use Silverlight code to achieve the same thing.
If you use it as an embedded object, then you can use masterpages for the rest of the page.
Silverlight 确实具有与母版页相同的概念。导航框架就扮演了这个角色。通常有一个带有“框架”的主页。这是其他“视图”将放置其内容的区域。
要提供更多详细信息...
MainPage 导航框架可以被菜单、横幅、品牌等包围。框架区域由每个 Silverlight 页面填充您导航到的。这些导航“页面”包含代表您的内容的数据输入表单、网格等。
Silverlight does have kind of the same concept as master pages. The navigation framework plays this role. There is usually a MainPage with a "Frame". This is the area that other "Views" would have their content placed in.
To give a bit more detail...
The MainPage navigation Frame can be surrounded by menus, banners, branding, etc. The Frame area is filled by each Silverlight Page that you navigate to. These navigation "Pages" contain the data entry forms, grids, etc. that represent your content.