2009-07-16 76 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