|
|
|
|
@ -1,11 +1,12 @@
@@ -1,11 +1,12 @@
|
|
|
|
|
<ResourceDictionary |
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
|
|
|
<ResourceDictionary 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:GraphSharp_Controls="clr-namespace:GraphSharp.Controls;assembly=GraphSharp.Controls" |
|
|
|
|
xmlns:Converters="clr-namespace:GraphSharp.Converters;assembly=GraphSharp.Controls" |
|
|
|
|
xmlns:WPFExtensions_AttachedBehaviours="clr-namespace:WPFExtensions.AttachedBehaviours;assembly=WPFExtensions"> |
|
|
|
|
|
|
|
|
|
xmlns:WPFExtensions_AttachedBehaviours="clr-namespace:WPFExtensions.AttachedBehaviours;assembly=WPFExtensions" |
|
|
|
|
> |
|
|
|
|
<Converters:EdgeRouteToPathConverter x:Key="routeToPathConverter" /> |
|
|
|
|
<Controls:DependencyIconVertexConverter x:Key="IconConverter"/> |
|
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="HighlightedVertexBorderBrush" Color="Transparent" /> |
|
|
|
|
<SolidColorBrush x:Key="HighlightedVertexBackgroundBrush" Color="{DynamicResource {x:Static SystemColors.HighlightColorKey}}" /> |
|
|
|
|
@ -28,7 +29,10 @@
@@ -28,7 +29,10 @@
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" |
|
|
|
|
CornerRadius="10,10,10,10" |
|
|
|
|
Padding="{TemplateBinding Padding}"> |
|
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
|
<Image Margin="0, 1, 5, 0" Source="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type GraphSharp_Controls:VertexControl}}, Path=Vertex, Converter={StaticResource IconConverter}}" /> |
|
|
|
|
<ContentPresenter Content="{TemplateBinding Vertex}"/> |
|
|
|
|
</StackPanel> |
|
|
|
|
</Border> |
|
|
|
|
</ControlTemplate> |
|
|
|
|
</Setter.Value> |
|
|
|
|
@ -156,135 +160,4 @@
@@ -156,135 +160,4 @@
|
|
|
|
|
</MultiTrigger> |
|
|
|
|
</Style.Triggers> |
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
<Style TargetType="{x:Type GraphSharp_Controls:CompoundVertexControl}"> |
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
<Setter.Value> |
|
|
|
|
<ControlTemplate TargetType="{x:Type GraphSharp_Controls:CompoundVertexControl}"> |
|
|
|
|
<Border BorderBrush="{TemplateBinding BorderBrush}" |
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" |
|
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
|
Padding="10"> |
|
|
|
|
<GroupBox> |
|
|
|
|
<GroupBox.Header> |
|
|
|
|
adfajkdsfklad |
|
|
|
|
</GroupBox.Header> |
|
|
|
|
|
|
|
|
|
<ItemsControl x:Name="PART_InnerCanvas" |
|
|
|
|
ItemsSource="{TemplateBinding Vertices}"> |
|
|
|
|
<ItemsControl.ItemsPanel> |
|
|
|
|
<ItemsPanelTemplate> |
|
|
|
|
<StackPanel Orientation="Vertical" /> |
|
|
|
|
</ItemsPanelTemplate> |
|
|
|
|
</ItemsControl.ItemsPanel> |
|
|
|
|
</ItemsControl> |
|
|
|
|
</GroupBox> |
|
|
|
|
</Border> |
|
|
|
|
</ControlTemplate> |
|
|
|
|
</Setter.Value> |
|
|
|
|
</Setter> |
|
|
|
|
|
|
|
|
|
<Setter Property="GraphSharp_Controls:GraphElementBehaviour.HighlightTrigger" |
|
|
|
|
Value="{Binding RelativeSource={RelativeSource Self},Path=IsMouseOver}" /> |
|
|
|
|
<Setter Property="WPFExtensions_AttachedBehaviours:DragBehaviour.IsDragEnabled" |
|
|
|
|
Value="True" /> |
|
|
|
|
<Setter Property="WPFExtensions_AttachedBehaviours:DragBehaviour.X" |
|
|
|
|
Value="{Binding RelativeSource={RelativeSource Self},Path=(GraphSharp_Controls:GraphCanvas.X),Mode=TwoWay}" /> |
|
|
|
|
<Setter Property="WPFExtensions_AttachedBehaviours:DragBehaviour.Y" |
|
|
|
|
Value="{Binding RelativeSource={RelativeSource Self},Path=(GraphSharp_Controls:GraphCanvas.Y),Mode=TwoWay}" /> |
|
|
|
|
<Setter Property="BorderThickness" |
|
|
|
|
Value="22" /> |
|
|
|
|
<Setter Property="BorderBrush" |
|
|
|
|
Value="Silver" /> |
|
|
|
|
<Setter Property="Background"> |
|
|
|
|
<Setter.Value> |
|
|
|
|
<LinearGradientBrush StartPoint="0,0" |
|
|
|
|
EndPoint="1,1"> |
|
|
|
|
<GradientStop Color="White" |
|
|
|
|
Offset="0" /> |
|
|
|
|
<GradientStop Color="BurlyWood" |
|
|
|
|
Offset="1" /> |
|
|
|
|
</LinearGradientBrush> |
|
|
|
|
</Setter.Value> |
|
|
|
|
</Setter> |
|
|
|
|
<Style.Triggers> |
|
|
|
|
<Trigger Property="LayoutMode" |
|
|
|
|
Value="Automatic"> |
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
<Setter.Value> |
|
|
|
|
<ControlTemplate TargetType="{x:Type GraphSharp_Controls:CompoundVertexControl}"> |
|
|
|
|
<Border BorderBrush="{TemplateBinding BorderBrush}" |
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" |
|
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
|
Padding="10"> |
|
|
|
|
<GroupBox> |
|
|
|
|
<GroupBox.Header> |
|
|
|
|
wdawew |
|
|
|
|
</GroupBox.Header> |
|
|
|
|
|
|
|
|
|
<ItemsControl x:Name="PART_InnerCanvas" |
|
|
|
|
ItemsSource="{TemplateBinding Vertices}"> |
|
|
|
|
<ItemsControl.ItemsPanel> |
|
|
|
|
<ItemsPanelTemplate> |
|
|
|
|
<GraphSharp_Controls:GraphCanvas Background="White"/> |
|
|
|
|
</ItemsPanelTemplate> |
|
|
|
|
</ItemsControl.ItemsPanel> |
|
|
|
|
</ItemsControl> |
|
|
|
|
</GroupBox> |
|
|
|
|
</Border> |
|
|
|
|
</ControlTemplate> |
|
|
|
|
</Setter.Value> |
|
|
|
|
</Setter> |
|
|
|
|
<Setter Property="Background"> |
|
|
|
|
<Setter.Value> |
|
|
|
|
<LinearGradientBrush StartPoint="0,0" |
|
|
|
|
EndPoint="1,1"> |
|
|
|
|
<GradientStop Color="White" |
|
|
|
|
Offset="0" /> |
|
|
|
|
<GradientStop Color="Silver" |
|
|
|
|
Offset="1" /> |
|
|
|
|
</LinearGradientBrush> |
|
|
|
|
</Setter.Value> |
|
|
|
|
</Setter> |
|
|
|
|
</Trigger> |
|
|
|
|
<Trigger Property="GraphSharp_Controls:GraphElementBehaviour.IsHighlighted" |
|
|
|
|
Value="True"> |
|
|
|
|
<Setter Property="BorderBrush" |
|
|
|
|
Value="Orange" /> |
|
|
|
|
<Setter Property="BorderThickness" |
|
|
|
|
Value="2" /> |
|
|
|
|
</Trigger> |
|
|
|
|
<Trigger Property="GraphSharp_Controls:GraphElementBehaviour.IsSemiHighlighted" |
|
|
|
|
Value="True"> |
|
|
|
|
<Setter Property="BorderBrush" |
|
|
|
|
Value="Yellow" /> |
|
|
|
|
<Setter Property="BorderThickness" |
|
|
|
|
Value="2" /> |
|
|
|
|
</Trigger> |
|
|
|
|
<MultiTrigger> |
|
|
|
|
<MultiTrigger.Conditions> |
|
|
|
|
<Condition Property="GraphSharp_Controls:GraphElementBehaviour.IsSemiHighlighted" |
|
|
|
|
Value="True" /> |
|
|
|
|
<Condition Property="GraphSharp_Controls:GraphElementBehaviour.SemiHighlightInfo" |
|
|
|
|
Value="Source" /> |
|
|
|
|
</MultiTrigger.Conditions> |
|
|
|
|
<Setter Property="BorderBrush" |
|
|
|
|
Value="Red" /> |
|
|
|
|
<Setter Property="BorderThickness" |
|
|
|
|
Value="2" /> |
|
|
|
|
</MultiTrigger> |
|
|
|
|
<MultiTrigger> |
|
|
|
|
<MultiTrigger.Conditions> |
|
|
|
|
<Condition Property="GraphSharp_Controls:GraphElementBehaviour.IsSemiHighlighted" |
|
|
|
|
Value="True" /> |
|
|
|
|
<Condition Property="GraphSharp_Controls:GraphElementBehaviour.SemiHighlightInfo" |
|
|
|
|
Value="Target" /> |
|
|
|
|
</MultiTrigger.Conditions> |
|
|
|
|
<Setter Property="BorderBrush" |
|
|
|
|
Value="Blue" /> |
|
|
|
|
<Setter Property="BorderThickness" |
|
|
|
|
Value="2" /> |
|
|
|
|
</MultiTrigger> |
|
|
|
|
</Style.Triggers> |
|
|
|
|
</Style> |
|
|
|
|
</ResourceDictionary> |