Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Overview in Demo & Databinding (Read 2104 times)
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Overview in Demo & Databinding
Oct 1st, 2010 at 11:15am
Print Post  
Hello!

1. I like the overview funktion in the demo with the light tracking rect and the darker area and jumping to this position.

How can I implement this.
I have an overview without this light and dark and i can't jump to that position which i click in the overview.


2. Will there be an release for supporting Databinding for the diagram?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview in Demo & Databinding
Reply #1 - Oct 1st, 2010 at 11:38am
Print Post  
Hi,

1. Set the DimBrush property. Scrolling with the mouse should be enabled by default; check if there isn't some element up in the visual tree stopping the mouse events, e.g. by setting Handled = true from a PreviewMouseXX event.

2. We'll add databinding support at some point, but there are some more useful things we'd like to implement first.

Stoyan
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: Overview in Demo & Databinding
Reply #2 - Oct 1st, 2010 at 1:54pm
Print Post  
Hi Stoyan,

i have the following code:
Code
Select All
<diag:Overview Name="diagOverview" DimBrush="Beige"/> 



and set a connection
Code
Select All
diagOverview.Document = dgDiagram; 


to the following XAML Element:

to the Diagramm:
Code
Select All
                        <diag:DiagramView
                            Height="Auto"
                            Name="dvDiagram"
                            Width="Auto" >

                            <diag:Diagram
                                Name="dgDiagram"
                                Background="White"
                                Behavior="DrawLinks"
                                AllowInplaceEdit="True"
                                InplaceEditAcceptOnEnter="True"
                                InplaceEditCancelOnEsc="True"
                                ShowGrid="False"
                                AllowDrop="True"
                                AllowSelfLoops="False"
                                AllowUnanchoredLinks="True"

                                EnableLanes="True"
                                MouseRightButtonDown="dgDiagram_MouseRightButtonDown"
                                LinkHeadShape="Triangle"
                                LinkHeadShapeSize="15"
                                LinkShape="Cascading"
                                DynamicLinks="True"
                                LinkBrush="Black"
                                LinkTextStyle="Center"
                                RouteLinks="True"
                                AllowLinksRepeat="False"
                                ShowHandlesOnDrag="True"
                                NodeActivated="dgDiagram_NodeActivated"
                                NodeDeselected="dgDiagram_NodeDeselected"
                                DragEnter="DragEnterNode"
                                Drop="DropNode"
                                ShowDisabledHandles="False"
                                AutoResize="RightAndDown"
                                >
                            </diag:Diagram>
                        </diag:DiagramView> 



I don't see a light tracking rect and when i click in the overview, my Diagram gets a Position at top left.

It seems like i don't get a small tracking rect.

Any hints?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview in Demo & Databinding
Reply #3 - Oct 1st, 2010 at 2:33pm
Print Post  
At this time the Overview control supports only ScrollViewer and Ruler as containers of the diagram. We'll try to make it work with DiagramViews next week.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint