Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Border after loading from file (Read 3795 times)
Robert Simon
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Feb 3rd, 2013
Border after loading from file
Feb 3rd, 2013 at 4:13pm
Print Post  
Hi,

i have designed and saved a diagram (SL v11.1), it looks fine.
but when i load it from the saved xml file there is a border around each nodes

can i disable it somehow?
thanks,
  

sample_001.jpg (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Border after loading from file
Reply #1 - Feb 4th, 2013 at 6:54am
Print Post  
Hi,

Have you by chance derived from ShapeNode in order to override its control template? In such case, you will have to call the RegisterItemClass method when initializing your application to associate an XML string id with the custom node class.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Robert Simon
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Feb 3rd, 2013
Re: Border after loading from file
Reply #2 - Feb 4th, 2013 at 9:37pm
Print Post  
I do this on loaded. shall i repeat it later on?

           private void UserControl_Loaded(object sender, RoutedEventArgs e)
           {
Diagram.RegisterItemClass(typeof(MyNode), "my:MyNode", 1);
                 diagram.CustomBehavior = new MyBehavior(diagram);
                 diagram.UndoEnabled = true;
            overview.Document = diagram;
            AnnealLayout layout = new AnnealLayout();
            layout.Arrange(diagram);
            diagram.ZoomFactor = 100;
            slider1.ValueChanged += slider1_ValueChanged;
          }
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Border after loading from file
Reply #3 - Feb 5th, 2013 at 9:12am
Print Post  
If the visibility of that border is controlled by a custom property of yours, you should save and load its value from within the SaveToXml and LoadFromXml overrides. What does the MyNode's Xaml template look like?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint