Site Logo
Site Logo
 
It is currently Sun Apr 02, 2017 10:16 pm

All times are UTC [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: WPF Form plugin does not display images
PostPosted: Wed Apr 08, 2015 3:55 pm 
Offline
New User
New User

Joined: Mon Dec 22, 2014 2:11 pm
Posts: 7
Hi, I have a problem with the display of images in WPF Form plugin window.
When I want to put a picture with a different name than the "plugin-icon.png" in Visual Studio everything appears correct, but in PowerMILL plugin window is only displayed image called plugin-icon.png. I keep all the images in the folder /Images. All images are visible in the Images folder located in the solution explorer.

The following line of code responsible for displaying the image.

Code:
<Image Source = "Images / plugin-icon2.png" HorizontalAlignment = "Left" Height = "88" Margin = "41,122,0,0" verticalAlignment = "Top" Width = "91" />


Do you have any idea why the PM does not display other images than those named plugin-icon.png?


Top
 Profile  
 
 Post subject: Re: WPF Form plugin does not display images
PostPosted: Thu Apr 09, 2015 9:14 am 
Offline
DELCAM Staff
DELCAM Staff

Joined: Tue Mar 17, 2009 2:30 pm
Posts: 108
I would suggest that the "Build Action" isn't set to "Resource". Change it to that and that should fix it.

If you continue to have issues then please can you post this in the PowerMILL forum where they will be able to help you better.


Top
 Profile  
 
 Post subject: Re: WPF Form plugin does not display images
PostPosted: Thu Apr 09, 2015 10:01 am 
Offline
New User
New User

Joined: Mon Dec 22, 2014 2:11 pm
Posts: 7
Thanks a lot it works!
lae wrote:
the "Build Action" isn't set to "Resource"


Top
 Profile  
 
 Post subject: Re: WPF Form plugin does not display images
PostPosted: Thu Apr 09, 2015 11:37 am 
Offline
DELCAM Staff
DELCAM Staff

Joined: Tue Mar 17, 2009 2:30 pm
Posts: 108
No problem! Out of curiosity are you using Custom Software Core within your plugin?


Top
 Profile  
 
 Post subject: Re: WPF Form plugin does not display images
PostPosted: Mon Apr 13, 2015 10:56 am 
Offline
New User
New User

Joined: Mon Dec 22, 2014 2:11 pm
Posts: 7
I'm just beginning to write the first plugins, and so far, I have not used yet CSC.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB