Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Projection color on ruler doesn't show properly. (Read 8780 times)
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Projection color on ruler doesn't show properly.
Jan 29th, 2013 at 9:59am
Print Post  
I am working with diagramming.mindfussion diagram. I am using ruler in which i placed diagram.
code is here in xaml:-

<diag:Ruler Name="ruler"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"                        
                        Unit="Pixel"                      
                        ProjectionColor="#5E6A6AD4">
<diag:Diagram Name="diagram"                              
                              HorizontalAlignment="Left"
                              GridSizeX="10"
                              GridSizeY="10"/>


and code behind

With diagram
            .AutoResize = AutoResize.None
            .Behavior = Behavior.Modify
            .AlignToGrid = False
            .AutoScroll = True
            .MeasureUnit = MindFusion.Diagramming.Silverlight.GraphicsUnit.Pixel
            .AdjustmentHandlesSize = 10
            .ShapeBrush = NodeBrush          
            .Bounds = BGBounds          
            .ShowGrid = True
        End With


When i placed any shape node in diagram say the top is at the position 400 as per the ruler of the diagram. But the projection color shows a little variation. It shows 395 as for the above case. How can I sync both the ruler's value and the projection color for the shape node?

If I do diagram.AlignToGrid=True then problem still persist.

Thanks in advance.  Sad

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Projection color on ruler doesn't show properly.
Reply #1 - Jan 29th, 2013 at 2:33pm
Print Post  
I can't see this happening. Are you sure the projection stripe touches that 395 tick? Here is what the projection for a node at 400x400 looks like in our test app after zooming in to show the '5 labels.

  
Back to top
 
IP Logged
 
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Re: Projection color on ruler doesn't show properly.
Reply #2 - Jan 29th, 2013 at 2:58pm
Print Post  
Thanks

You can see in this snap shot.
  

MyDiagram.PNG (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Projection color on ruler doesn't show properly.
Reply #3 - Jan 30th, 2013 at 4:44pm
Print Post  
Have you set any Silverlight layout properties such as Margin on the diagram? The Ruler expects that the diagram will fill it completely and could be showing the projection and ticks with some offset if there are margins.
  
Back to top
 
IP Logged
 
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Re: Projection color on ruler doesn't show properly.
Reply #4 - Feb 22nd, 2013 at 4:45am
Print Post  
Thanks stoyo.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint