2009-07-16 6 views
0

은 실버 3 베타에서 실버 라이트 3를 설치 한 후, 프레임 제어 나던 더 이상 제대로 작동 ...실버 라이트 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

당신에게 단지 .. 내가 오류없이 탐색을 얻을 ..이 corrent입니다 매핑이 하나뿐이므로 한 페이지 만 가져올 수 있습니다. 당신이 탐색 프로젝트를 만드는 기본 매퍼는 다음과 같습니다

<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

+0

내 코딩에 오류가 없습니다. 시각적 스튜디오 2010 베타 ... 코드가 잘 작동합니다. Visual Studio 2008 .. @Soviut이 조언을 주셔서 감사합니다. – Fredrick