【发布时间】:2011-05-15 10:18:15
【问题描述】:
我创建了一个 Silverlight Navigation 应用程序。
我的 MainPage XAML 包含基本导航信息:
<navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}"
Source="/About" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
<navigation:Frame.UriMapper>
<uriMapper:UriMapper>
<uriMapper:UriMapping Uri="" MappedUri="/Views/About.xaml"/>
<uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
</uriMapper:UriMapper>
</navigation:Frame.UriMapper>
</navigation:Frame>
现在我不喜欢视图(控件)在同一个程序集中的事实,我想给项目更多的结构,并将所有视图(控件)移动到一个单独的程序集中(例如 Gui_Layer)。
现在要采取哪些步骤使 MainPage 知道 About 页面(例如)已从当前程序集移动到另一个程序集?
我希望导航不是在“currentAssembly/Views/”中而是在“Gui_Layer/Views”中查找控件。
提前致谢
【问题讨论】:
标签: .net silverlight xaml