c# - WPF Cannot see image in runtime -


i've created 3 images context menu. problem can not see them in runtime. (i can see them in editor window)

i've already

  • changed compile type resource
  • and image type png (just in case)

    <color x:key="backgroundcolor" a="255" r="19" g="19" b="19"/>  <bitmapimage x:key="bicut" urisource="images/cut.tif"/> <bitmapimage x:key="bicopy" urisource="images/copy.tif"/> <bitmapimage x:key="bipaste" urisource="images/paste.tif"/>  <solidcolorbrush x:key="borderbrush" color="#ececec"/>  <style targettype="contextmenu">     <setter property="foreground" value="{staticresource borderbrush}"/>     <setter property="snapstodevicepixels" value="true" />     <setter property="overridesdefaultstyle" value="true" />     <setter property="grid.issharedsizescope" value="true" />     <setter property="template">         <setter.value>             <controltemplate targettype="contextmenu">                 <border borderthickness="1" borderbrush="#2468d9" padding="2" background="#131313">                     <stackpanel orientation="horizontal">                         <stackpanel orientation="horizontal" height="20">                             <image source="{staticresource bicut}" width="20"/>                             <button content="ausschneiden" margin="5,0,0,0"/>                             <textblock text="strg+x" textalignment="center" verticalalignment="center" margin="5,0,0,0"/>                         </stackpanel>                     </stackpanel>                 </border>             </controltemplate>         </setter.value>     </setter> </style> 

okay solved drag image, loaded project, source="<dragged image path>". insert full path of image.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -