2009-12-25 75 views
0

我已經嘗試過,但只能在互聯網上使用網頁。 如何鏈接文件中的其他頁面?如何鏈接其他網頁?

<HyperlinkButton Background="#00FF0000" Height="46" HorizontalAlignment="Left" Margin="33,0,0,93" VerticalAlignment="Bottom" Width="134" BorderBrush="Red" FontFamily="Comic Sans MS" FontSize="26.667" Foreground="Red" Content="Next Page" NavigateUri="C:\SilverlightApplication15\SilverlightApplication15\try.xaml"> 
       <i:Interaction.Triggers> 
        <i:EventTrigger EventName="Click"> 
         <ic:HyperlinkAction/> 
        </i:EventTrigger> 
       </i:Interaction.Triggers> 
      </HyperlinkButton> 

回答

1

假設該文件名爲.xaml在您的XAP,請嘗試使用相對路徑來代替:

<HyperlinkButton NavigateUri="/try.xaml"> 

而且,這可能會幫助:Using the HyperlinkButton Control

相關問題