Skip to content

Commit

Permalink
Removed unnecessary styles
Browse files Browse the repository at this point in the history
  • Loading branch information
John Simons committed May 14, 2015
1 parent 803c085 commit 85acbe1
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions src/ServiceInsight/MessageFlow/MessageFlowView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@
</ControlTemplate.Triggers>
</ControlTemplate>


<Style x:Key="MessageIconStyle" TargetType="{x:Type controls:IconControl}">
<Setter Property="Data" Value="{StaticResource CommandGeometry}" />
<Style.Triggers>
Expand Down Expand Up @@ -299,6 +300,7 @@
Background="{StaticResource MessageBackground}"
BorderBrush="Transparent"
BorderThickness="1"
SnapsToDevicePixels="False"
MouseLeftButtonDown="MessageRectangle_MouseLeftButtonDown"
d:DataContext="{d:DesignInstance local:MessageNode}">
<Grid x:Name="RootGrid">
Expand Down Expand Up @@ -493,51 +495,25 @@
<Setter Property="StrokeDashArray" Value="1,1" />
</Style>

<Style x:Key="ArrowheadPathStyle" TargetType="Path">
<Setter Property="Stroke" Value="Black" />
<Setter Property="Fill" Value="Black" />
</Style>

<Style x:Key="EventArrowheadPathStyle" TargetType="Path">
<Setter Property="Stroke" Value="Black" />
<Setter Property="Fill" Value="White" />
<Setter Property="StrokeThickness" Value="2" />
</Style>

<DataTemplate x:Key="EndArrowTemplate">
<ms:Arrowhead BackWidth="15"
Length="20"
PathStyle="{StaticResource ArrowheadPathStyle}" />
</DataTemplate>

<DataTemplate x:Key="EventEndArrowTemplate">
<ms:Arrowhead BackWidth="15"
Length="20"
PathStyle="{StaticResource EventArrowheadPathStyle}" />
</DataTemplate>

<ms:CorneredPathBuilder x:Key="PathBuilder" />

<Style x:Key="CommandConnectionStyle" TargetType="ms:DiagramConnectionElement">
<Setter Property="ToolTip" Value="Sent Command" />
<Setter Property="PathStyle" Value="{StaticResource CommandConnectionPathStyle}" />
<Setter Property="EndArrowTemplate" Value="{StaticResource EndArrowTemplate}" />
<Setter Property="PathBuilder" Value="{StaticResource PathBuilder}" />
<Setter Property="Template" Value="{StaticResource ConnectionStyleTemplate}" />
</Style>

<Style x:Key="TimeoutConnectionStyle" TargetType="ms:DiagramConnectionElement">
<Setter Property="ToolTip" Value="Requested Timeout" />
<Setter Property="PathStyle" Value="{StaticResource TimeoutConnectionPathStyle}" />
<Setter Property="EndArrowTemplate" Value="{StaticResource EndArrowTemplate}" />
<Setter Property="PathBuilder" Value="{StaticResource PathBuilder}" />
<Setter Property="Template" Value="{StaticResource ConnectionStyleTemplate}" />
</Style>

<Style x:Key="EventConnectionStyle" TargetType="ms:DiagramConnectionElement">
<Setter Property="ToolTip" Value="Published Event" />
<Setter Property="PathStyle" Value="{StaticResource EventConnectionPathStyle}" />
<Setter Property="EndArrowTemplate" Value="{StaticResource EventEndArrowTemplate}" />
<Setter Property="PathBuilder" Value="{StaticResource PathBuilder}" />
<Setter Property="Template" Value="{StaticResource ConnectionStyleTemplate}" />
</Style>
Expand Down

0 comments on commit 85acbe1

Please sign in to comment.