6 changed files with 133 additions and 52 deletions
@ -0,0 +1,34 @@ |
|||||||
|
/* |
||||||
|
* Created by SharpDevelop. |
||||||
|
* User: Peter Forstmeier |
||||||
|
* Date: 02.09.2011 |
||||||
|
* Time: 15:10 |
||||||
|
* |
||||||
|
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
||||||
|
*/ |
||||||
|
using System; |
||||||
|
using ICSharpCode.TreeView; |
||||||
|
|
||||||
|
namespace ICSharpCode.CodeQualityAnalysis.Controls |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of DependecyTreeNode.
|
||||||
|
/// </summary>
|
||||||
|
public class DependecyTreeNode:SharpTreeNode |
||||||
|
{ |
||||||
|
private INode node; |
||||||
|
public DependecyTreeNode(INode node) |
||||||
|
{ |
||||||
|
this.node = node; |
||||||
|
} |
||||||
|
|
||||||
|
public override object Text |
||||||
|
{ |
||||||
|
get { return node.Name; } |
||||||
|
} |
||||||
|
|
||||||
|
public override object ToolTip { |
||||||
|
get { return node.Name; } |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -1,38 +1,73 @@ |
|||||||
<UserControl x:Class="ICSharpCode.CodeQualityAnalysis.Controls.TreeMatrixControl" |
<?xml version="1.0" encoding="utf-8"?> |
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
<UserControl |
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
x:Class="ICSharpCode.CodeQualityAnalysis.Controls.TreeMatrixControl" |
||||||
xmlns:Controls="clr-namespace:ICSharpCode.CodeQualityAnalysis.Controls"> |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:Controls="clr-namespace:ICSharpCode.CodeQualityAnalysis.Controls" |
||||||
|
xmlns:tree="http://icsharpcode.net/sharpdevelop/treeview"> |
||||||
<UserControl.Resources> |
<UserControl.Resources> |
||||||
<Style TargetType="{x:Type TreeViewItem}"> |
<Style |
||||||
<Setter Property="BorderBrush" Value="Red" /> |
TargetType="{x:Type tree:SharpTreeNodeView}" |
||||||
<Setter Property="Header" Value="test" /> |
> |
||||||
|
<Setter Property="Height" Value="36" /> |
||||||
|
|
||||||
</Style> |
</Style> |
||||||
</UserControl.Resources> |
</UserControl.Resources> |
||||||
<Grid> |
<Grid> |
||||||
<Grid.RowDefinitions> |
<Grid.RowDefinitions> |
||||||
<RowDefinition Height="Auto" /> |
<RowDefinition |
||||||
<RowDefinition Height="*" /> |
Height="70" /> |
||||||
|
<RowDefinition |
||||||
|
Height="3" /> |
||||||
|
<RowDefinition |
||||||
|
Height="*" /> |
||||||
</Grid.RowDefinitions> |
</Grid.RowDefinitions> |
||||||
|
|
||||||
<Grid.ColumnDefinitions> |
<Grid.ColumnDefinitions> |
||||||
<ColumnDefinition Width="Auto" /> |
<ColumnDefinition |
||||||
<ColumnDefinition Width="*" /> |
Width="70" /> |
||||||
|
<ColumnDefinition |
||||||
|
Width="3" /> |
||||||
|
<ColumnDefinition |
||||||
|
Width="*" /> |
||||||
</Grid.ColumnDefinitions> |
</Grid.ColumnDefinitions> |
||||||
|
|
||||||
<TreeView Name="leftTree" Grid.Row="1" Grid.Column="0"> |
<tree:SharpTreeView |
||||||
<TreeView.Resources> |
Name="leftTree" |
||||||
|
Grid.Row="2" |
||||||
</TreeView.Resources> |
Grid.Column="0"> |
||||||
</TreeView> |
</tree:SharpTreeView> |
||||||
|
|
||||||
|
<GridSplitter Grid.Column="1" Width="3" |
||||||
|
Grid.RowSpan="3" |
||||||
|
ResizeDirection="Columns" |
||||||
|
HorizontalAlignment="Stretch" |
||||||
|
VerticalAlignment="Stretch"></GridSplitter> |
||||||
|
|
||||||
|
<tree:SharpTreeView |
||||||
|
Name="topTree" |
||||||
|
Grid.Row="0" |
||||||
|
Grid.Column="2"> |
||||||
|
<tree:SharpTreeView.LayoutTransform> |
||||||
|
<RotateTransform |
||||||
|
Angle="-90" /> |
||||||
|
</tree:SharpTreeView.LayoutTransform> |
||||||
|
</tree:SharpTreeView> |
||||||
|
|
||||||
<TreeView Name="topTree" Grid.Row="0" Grid.Column="1"> |
<GridSplitter Grid.Row="1" |
||||||
<TreeView.LayoutTransform> |
Grid.Column="2" |
||||||
<RotateTransform Angle="-90" /> |
Height="3" |
||||||
</TreeView.LayoutTransform> |
ResizeDirection="Rows" |
||||||
</TreeView> |
HorizontalAlignment="Stretch"></GridSplitter> |
||||||
|
|
||||||
<ScrollViewer Grid.Column="1" Grid.Row="1" CanContentScroll="True" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible"> |
<ScrollViewer |
||||||
<Controls:DependencyMatrixControl x:Name="matrixControl" /> |
Grid.Column="2" |
||||||
|
Grid.Row="2" |
||||||
|
CanContentScroll="True" |
||||||
|
VerticalScrollBarVisibility="Visible" |
||||||
|
HorizontalScrollBarVisibility="Visible"> |
||||||
|
<Controls:DependencyMatrixControl |
||||||
|
x:Name="matrixControl" /> |
||||||
</ScrollViewer> |
</ScrollViewer> |
||||||
</Grid> |
</Grid> |
||||||
</UserControl> |
</UserControl> |
||||||
Loading…
Reference in new issue