user control
-
I create a library of these classes contains a user control that contains images as background to some button, I add it to the main page such as referance, I added this code to retrieve the control xaml user
but i get an exception: the user control Cannot locate resource :^)
-
I create a library of these classes contains a user control that contains images as background to some button, I add it to the main page such as referance, I added this code to retrieve the control xaml user
but i get an exception: the user control Cannot locate resource :^)
What are the values of the 'Build Action' and 'Copy to Output' properties of the background image (right click - properties)? What does the xaml (or code) look like for assigning the image as the background of the UserControl look like?
-
I create a library of these classes contains a user control that contains images as background to some button, I add it to the main page such as referance, I added this code to retrieve the control xaml user
but i get an exception: the user control Cannot locate resource :^)
Your error is going to be in the myeditor usercontrol. Like Jeremy suggested check to ensure that your image sources on the control are correct, and that the control is able to locate them during runtime.