开发者

How to link with other pages?

I have tried, but only work with webpages on the Internet. How to link with other pages within a file?开发者_如何学C

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


Assuming this .xaml file is in your xap, try using the relative path instead:

<HyperlinkButton NavigateUri="/try.xaml"> 

Also, this may help: Using the HyperlinkButton Control

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜