Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Tutorial 3: Create Custom Node not working (Read 3860 times)
cosp
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Jan 7th, 2011
Tutorial 3: Create Custom Node not working
Jan 7th, 2011 at 1:45pm
Print Post  
I followed the steps on the tutorial, but the nodes do not display.
I tracked the problem down to the Image's Metadata property, which always throws an exception (SystemNotSupportedException) with the message:"BitmapMetadata is not available on BitmapImage."

It might be a problem with .NET 4.0. I tried a quick test on a 3.5 project: the rectangles show but no image and still some exception.

Anyone experiencing the same?

Thanks

Cos
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Tutorial 3: Create Custom Node not working
Reply #1 - Jan 7th, 2011 at 2:08pm
Print Post  
Hi,

What kind of images are you trying to load, and doesn't the installed tutorial project work for you? it should be located somewhere under Program Files\ WpfDiagram\VS2010\Samples\C#\Tutorial*.

Stoyan
  
Back to top
 
IP Logged
 
cosp
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Jan 7th, 2011
Re: Tutorial 3: Create Custom Node not working
Reply #2 - Jan 7th, 2011 at 2:29pm
Print Post  
Thank you,

I found the sample tutorial and that works...

I check the differences and the only thing I can think of is that I'm using 2 dummy jpegs, and the tutorial uses transparent png's.

So I want ahead and copied the image fiels from the tutorials to my project, and pasted the code from the sample class to mine (just to make sure).

My project (which has nothing different that the code in the tutorial) still has the issue.

The only thing I can say is that I am hosting the Diagram control in a tabbed control container...

THanks again

Cos
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Tutorial 3: Create Custom Node not working
Reply #3 - Jan 7th, 2011 at 3:23pm
Print Post  
Have you embedded the images as resources, or added them as content? (that's the "build action" in the property window when you select an image file.) Have you also updated the image URIs you pass to the BitmapImage constructor?

Stoyan
  
Back to top
 
IP Logged
 
cosp
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Jan 7th, 2011
Re: Tutorial 3: Create Custom Node not working
Reply #4 - Jan 7th, 2011 at 3:29pm
Print Post  
Resources, same as the tutorial code
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Tutorial 3: Create Custom Node not working
Reply #5 - Jan 7th, 2011 at 3:58pm
Print Post  
Could you email your version of the project to support@mindfusion.eu?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint