开发者

How to link with other pages?

开发者 https://www.devze.com 2022-12-14 16:46 出处:网络
I have tried, but only work with webpages on the Internet. How to link with other pages within a file?开发者_如何学C

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

精彩评论

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

关注公众号