2009-07-16 6 views
0

Silverlight 3のベータ版からのSilverlight 3をインストールした後、フレーム制御doesntのは、それ以上に動作するように思われる...この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

あなただけマッピングが1つしかないので、1ページしか取得できません。あなたはナビゲーション・プロジェクトを作成し、デフォルトのマッパーは、次のようになります。

<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> 

第2のマッピングは、指定されたページ名に基づいてビューを探します。

+0

問題はありません。 "http://localhost/ProjectName/Default.aspx"のように残っています。 – Fredrick

+0

私のエラーは私のコーディングではなく、Visual Studio 2010 betaでした。ビジュアルスタジオ2008 .. @ソビエトアドバイスのおかげで私はそれを自分で行うだろう – Fredrick

関連する問題