Tree layout direction & adding controls to the graph

Jan 17, 2012 at 1:42 PM
Edited Jan 17, 2012 at 1:43 PM

Hi ,

 

1-i'm trying to change the direction of the layout (layout algorithm parameter-layout direction) for

the tree to be LeftToRight (by default its shown TopToBottom) but  i couldn't find the attribute

or the property to do so.

 

Xaml:

        <zoom:ZoomControl DockPanel.Dock="Bottom" Name="Zoom"  Zoom="0.2"
								ZoomBoxOpacity="0.5" Background="White" Margin="-2,8,2,-8">
            <tree:PocGraphLayout 
									DestructionTransition="{x:Null}"
									IsAnimationEnabled="False"
									x:Name="graphLayout" Margin="10"
									Graph="{Binding Path=Graph}"
									OverlapRemovalAlgorithmType="FSA"
                                    					LayoutAlgorithmType="Tree"
									HighlightAlgorithmType="Simple" 
									LayoutMode="Simple"     
									OverridesDefaultStyle="True" 
									OverlapRemovalConstraint="Must"     
									EdgeRoutingConstraint="Must"/>
           
        </zoom:ZoomControl>

Code behind:
            TryVeiwModel tryVeiw = new TryVeiwModel();
            graphLayout.DataContext = tryVeiw;
            Zoom.Mode = ZoomControlModes.Fill;


2-I'm also trying to add another wpf control inside the graph area lats say a text box,so
it will be shown as the zoom control to the left of the graph.So is that possible??

Thanks in advance