Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Diagram create image shows window (Read 873 times)
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3473
Joined: Oct 19th, 2005
Re: Diagram create image shows window
Reply #15 - Apr 17th, 2026 at 7:46am
Print Post  
Hi Patryk,

Our developer couldn't reproduce, but try setting this flag to see if it helps:

Code
Select All
DevFlags.ResetRenderersAfterImageExport = true; 



using new build here:

https://www.nuget.org/packages/MindFusion.Diagramming.Wpf/4.3.1-alpha2

Or let us know what we should change in attached project to see the problem.

Regards,
Slavcho
Mindfusion
  

CreateImageTest.zip ( 3 KB | 5 Downloads )
Back to top
 
IP Logged
 
Patryk
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Jun 13th, 2025
Re: Diagram create image shows window
Reply #16 - Apr 27th, 2026 at 9:54am
Print Post  
Hi Slavcho,

Setting the flag for true helps! Smiley

Although the change should also take into account the implementations of ContainerNode because here the template is still missing Wink

Looking forward to official release.
Best regards
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3473
Joined: Oct 19th, 2005
Re: Diagram create image shows window
Reply #17 - yesterday at 6:27am
Print Post  
Hi Patryk,

Do you mean ContainerNode's own template disappears after export, or container's child nodes? Does your application override ContainerNode.CreateRenderer too?

Best regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Patryk
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Jun 13th, 2025
Re: Diagram create image shows window
Reply #18 - yesterday at 10:45am
Print Post  
Yes, we have our own override CreateRenderer for ContainerNode. I noticed that our nodes did not loose the template but its not only for classes that inherits from ContainerNode Smiley
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3473
Joined: Oct 19th, 2005
Re: Diagram create image shows window
Reply #19 - yesterday at 11:56am
Print Post  
Sorry, I cannot parse that last sentence Sad Could you show before / after screenshots demonstrating what's hiding after export?

Re CreateRenderer, if caching the result as ControlNode's override you copied above does, check whether it works correctly if you return a new instance instead of caching (ControlNode has some code that moves Control between different views / WPF visual trees, but ContainerNode would not expect a shared renderer at all).

Regards,
Slavcho
Mindfusion
« Last Edit: yesterday at 3:00pm by Slavcho »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint