2009-07-16 75 views
0

从Silverlight 3的Beta版安装Silverlight 3中之后,帧控制似乎没有工作了...这是corrent ..我没有错误和没有导航..Silverlight 3的导航

<navigation:Frame x:Name="Frames" Source="Home" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"> 
      <navigation:Frame.UriMapper> 
       <navcore:UriMapper> 
        <navcore:UriMapping Uri="Home" MappedUri="/Views/Home.xaml" /> 
       </navcore:UriMapper> 
      </navigation:Frame.UriMapper> 
     </navigation:Frame> 

回答

0

你有一个映射,所以你只会得到一个页面。当你创建一个导航项目的默认映射是这样的:

<navigation:Frame.UriMapper> 
    <uriMapper:UriMapper> 
     <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/> 
     <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/> 
    </uriMapper:UriMapper> 
</navigation:Frame.UriMapper> 

第二映射将查找基于指定的页面名称的视图。

+0

问题是它不导航..它只是仍然像“http://localhost/ProjectName/Default.aspx” – Fredrick 2009-07-18 14:46:45