6 changed files with 133 additions and 52 deletions
@ -0,0 +1,34 @@
@@ -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 @@
@@ -1,38 +1,73 @@
|
||||
<UserControl x:Class="ICSharpCode.CodeQualityAnalysis.Controls.TreeMatrixControl" |
||||
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"> |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<UserControl |
||||
x:Class="ICSharpCode.CodeQualityAnalysis.Controls.TreeMatrixControl" |
||||
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> |
||||
<Style TargetType="{x:Type TreeViewItem}"> |
||||
<Setter Property="BorderBrush" Value="Red" /> |
||||
<Setter Property="Header" Value="test" /> |
||||
<Style |
||||
TargetType="{x:Type tree:SharpTreeNodeView}" |
||||
> |
||||
<Setter Property="Height" Value="36" /> |
||||
|
||||
</Style> |
||||
</UserControl.Resources> |
||||
<Grid> |
||||
<Grid.RowDefinitions> |
||||
<RowDefinition Height="Auto" /> |
||||
<RowDefinition Height="*" /> |
||||
<RowDefinition |
||||
Height="70" /> |
||||
<RowDefinition |
||||
Height="3" /> |
||||
<RowDefinition |
||||
Height="*" /> |
||||
</Grid.RowDefinitions> |
||||
|
||||
<Grid.ColumnDefinitions> |
||||
<ColumnDefinition Width="Auto" /> |
||||
<ColumnDefinition Width="*" /> |
||||
<ColumnDefinition |
||||
Width="70" /> |
||||
<ColumnDefinition |
||||
Width="3" /> |
||||
<ColumnDefinition |
||||
Width="*" /> |
||||
</Grid.ColumnDefinitions> |
||||
|
||||
<TreeView Name="leftTree" Grid.Row="1" Grid.Column="0"> |
||||
<TreeView.Resources> |
||||
|
||||
</TreeView.Resources> |
||||
</TreeView> |
||||
<tree:SharpTreeView |
||||
Name="leftTree" |
||||
Grid.Row="2" |
||||
Grid.Column="0"> |
||||
</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"> |
||||
<TreeView.LayoutTransform> |
||||
<RotateTransform Angle="-90" /> |
||||
</TreeView.LayoutTransform> |
||||
</TreeView> |
||||
<GridSplitter Grid.Row="1" |
||||
Grid.Column="2" |
||||
Height="3" |
||||
ResizeDirection="Rows" |
||||
HorizontalAlignment="Stretch"></GridSplitter> |
||||
|
||||
<ScrollViewer Grid.Column="1" Grid.Row="1" CanContentScroll="True" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible"> |
||||
<Controls:DependencyMatrixControl x:Name="matrixControl" /> |
||||
<ScrollViewer |
||||
Grid.Column="2" |
||||
Grid.Row="2" |
||||
CanContentScroll="True" |
||||
VerticalScrollBarVisibility="Visible" |
||||
HorizontalScrollBarVisibility="Visible"> |
||||
<Controls:DependencyMatrixControl |
||||
x:Name="matrixControl" /> |
||||
</ScrollViewer> |
||||
</Grid> |
||||
</UserControl> |
||||
Loading…
Reference in new issue