image as part of a button in silverlight, page does not show up
Posted on 2010-04-01
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.
<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>