Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagramnode bounds and binding (Read 4030 times)
jackalexander
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Sep 24th, 2011
Diagramnode bounds and binding
Jun 21st, 2012 at 11:51am
Print Post  
hi,
i am trying to bind the Bounds of a diagramnode to a new dependency property on the node, which is derived from templatednode.
i am using this xaml:

        <Setter Property="diag:DiagramNode.Bounds" Value="{Binding Path=TimelineLocation, RelativeSource={RelativeSource Mode=Self}}" />

where TimelineLocation is a dependency property.
the bounds never changes from its initial value even though i can see that the dependency property changes
can you see what i am doing wrong?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagramnode bounds and binding
Reply #1 - Jun 21st, 2012 at 1:47pm
Print Post  
Is TimelineLocation of type Rect?
  
Back to top
 
IP Logged
 
jackalexander
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Sep 24th, 2011
Re: Diagramnode bounds and binding
Reply #2 - Jun 21st, 2012 at 7:52pm
Print Post  
yes, it is Rect & it has valid data in it (I can see this using a Property inspector)
I tried the same XAML to set the Rotation of the node, using the FontSize as the source & that worked - the nodes were rotated. Of course it might have been getting FontSize from just about anything in the tree. 
I thought maybe that I was misunderstanding Bounds - maybe I can't set it, maybe I need to use X and Width?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagramnode bounds and binding
Reply #3 - Jun 25th, 2012 at 9:35am
Print Post  
Hi,

I couldn't make binding work either. For the time being you could set Bounds directly from the PropertyChangedCallback associated with TimelineLocation. Our developers will try to implement binding support for the next release.

Stoyan
  
Back to top
 
IP Logged
 
jackalexander
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Sep 24th, 2011
Re: Diagramnode bounds and binding
Reply #4 - Jun 25th, 2012 at 12:50pm
Print Post  
thanks Stoyan, I will work on that.  When do you think the next release will be?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagramnode bounds and binding
Reply #5 - Jun 25th, 2012 at 2:38pm
Print Post  
In a few weeks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint