image as part of a button in silverlight, page does not show up

Posted on 2010-04-01
Medium Priority
Last Modified: 2013-11-25
Hi All,

I have the below on an xaml page. When I run the project and view in the browser it won't show as it hangs at 100%, and says an error in the bottom left hand corner. When I remove it the page loads with no errors. Where am I going wrong with this? Should I add extra xaml code to the button to make it work and viewable.

Please advise,

<Button x:Name="btnEdit" HorizontalAlignment="Left" Height="49" Margin="428,135,0,0" VerticalAlignment="Top" Width="104" Click="OnImageButtonClick" ><Image Source="editprofile.png"></Image></Button>
Question by:Seosaimh
LVL 16

Assisted Solution

CuteBug earned 800 total points
ID: 29338797
Make sure the image "editprofile.png" is available at the location from where your .xap file is present.

Accepted Solution

Seosaimh earned 0 total points
ID: 29339190
actually managed to resolve this myself, had not declared the event handler correctly on the page so it was getting stuck.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Watch the video of Kernel Migrator for SharePoint, which demonstrate the process easily of migration from SharePoint to SharePoint, OneDrive for Business & Google Drive servers, Public Folder to SharePoint, File Server to SharePoint. The tool has va…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question