c# - Windows Phone Dev 8 change HyperlinkButton Image (NO SILVERLIGHT) -
i'm making application change hyperlinkbutton image doesn't go.
var brush = new imagebrush(); brush.imagesource = new bitmapimage(new uri("/pics/test/1/1_10.png", urikind.relative)); mainbutton.background = brush; i put code in click event method debugger goes after second line code:
#if debug && !disable_xaml_generated_break_on_unhandled_exception unhandledexception += (sender, e) => { if (global::system.diagnostics.debugger.isattached) global::system.diagnostics.debugger.break(); }; #endif
i think might getting exception because of invalid uri. take @ uri schemes here: https://msdn.microsoft.com/en-us/library/windows/apps/jj655406.aspx
also, image should added content.
Comments
Post a Comment