Suppose I has an Image object in my Resource Dictionary like this:
<Image x:Key="Theme_Icon_Microphone" Source="Images/icon_microphone.png"/>
I want to use this object in DockPanel
<DockPanel>
<!-- My Image object -->
</DockPanel>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Don’t use an
Imageas a static resource because you will only be able to use it once. Instead put aBitmapImagein resources and reference that from yourImage: