WP7/Silverlight Hyperlink Image -
i new both silverlight , wp7. have been attempting hotlink image using hyperlinkbutton , setting content image. however, makes image disappear.
to reproduce:
- create new windows phone panorama application.
- on mainpage.xaml replace rectangle image, setting source applicationicon.png.
- then, surround hyperlinkbutton.
<hyperlinkbutton navigateuri="http://www.bing.com" targetname="_blank"> <image source="applicationicon.png"/> </hyperlinkbutton>
i have tried numerous properties , nothing works me. both items work interdependently. possible in wp7? external uri. have search documentation , found nothing that's helped.
your comments , suggestions appreciated.
this bit of oddity in can't directly place image control's content. topic explored here during beta.
peter torr's had suggested using stackpanel hyperlink's content. did work @ time, not appear working @ moment reason.
with said, richard woo identified work around use hyperlinks background property. confirmed still works follows:
<hyperlinkbutton height="310" horizontalalignment="left" margin="206,202,0,0" name="hyperlinkbutton1" verticalalignment="top" width="200" > <hyperlinkbutton.background> <imagebrush imagesource="splashscreenimage.jpg"/> </hyperlinkbutton.background> </hyperlinkbutton>
it may worth raising issue looked on suggestions forum or connect.
as far alternatives hyperlink go, matt's option image , gesture looks workable. use button , retemplate it's appearance in blend.
Comments
Post a Comment