diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBL.xaml b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBL.xaml index 817a53c6..5b2ca4fb 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBL.xaml +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBL.xaml @@ -39,6 +39,7 @@ HorizontalAlignment="Center" VerticalAlignment="Top" Opacity="0.8" + Visibility="Collapsed" Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" StrokeDashArray="2 4" StrokeDashCap="Round" diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBL.xaml.cs b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBL.xaml.cs index ced3cd71..3aab8660 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBL.xaml.cs +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBL.xaml.cs @@ -58,7 +58,7 @@ namespace BPASmartClient.CustomResource.UserControls Storyboard.SetTarget(da, mp);//绑定动画 Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); sb.Children.Add(da);//添加动画 - this.mp.Visibility = Visibility.Visible; + if (Direction != 0) this.mp.Visibility = Visibility.Visible; sb.Begin();//播放动画 } diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBR.xaml b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBR.xaml index ff472944..1be60177 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBR.xaml +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBR.xaml @@ -35,6 +35,7 @@ Canvas.Top="21" Width="150" Height="150" + Visibility="Collapsed" Opacity="0.8" Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" StrokeDashArray="2 4" diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBR.xaml.cs b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBR.xaml.cs index 04b15b00..965bd61a 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBR.xaml.cs +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineBR.xaml.cs @@ -58,7 +58,7 @@ namespace BPASmartClient.CustomResource.UserControls Storyboard.SetTarget(da, mp);//绑定动画 Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); sb.Children.Add(da);//添加动画 - this.mp.Visibility = Visibility.Visible; + if (Direction != 0) this.mp.Visibility = Visibility.Visible; sb.Begin();//播放动画 } diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineH.xaml b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineH.xaml index ed3cf71c..8b5f5363 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineH.xaml +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineH.xaml @@ -31,6 +31,7 @@ Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" StrokeDashArray="2 4" StrokeDashCap="Round" + Visibility="Collapsed" StrokeEndLineCap="Round" StrokeStartLineCap="Round" StrokeThickness="4" /> diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineH.xaml.cs b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineH.xaml.cs index 6ca5a3aa..4fd287cf 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineH.xaml.cs +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineH.xaml.cs @@ -72,7 +72,7 @@ namespace BPASmartClient.CustomResource.UserControls Storyboard.SetTarget(da, mp);//绑定动画 Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); sb.Children.Add(da);//添加动画 - this.mp.Visibility = Visibility.Visible; + if(Direction!=0) this.mp.Visibility = Visibility.Visible; sb.Begin();//播放动画 } diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTL.xaml b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTL.xaml index f5d59369..10175219 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTL.xaml +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTL.xaml @@ -36,6 +36,7 @@ Canvas.Bottom="21" Width="150" Height="150" + Visibility="Collapsed" Opacity="0.8" Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" StrokeDashArray="2 4" diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTL.xaml.cs b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTL.xaml.cs index f2105402..9f9a6102 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTL.xaml.cs +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTL.xaml.cs @@ -58,7 +58,7 @@ namespace BPASmartClient.CustomResource.UserControls Storyboard.SetTarget(da, mp);//绑定动画 Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); sb.Children.Add(da);//添加动画 - this.mp.Visibility = Visibility.Visible; + if (Direction != 0) this.mp.Visibility = Visibility.Visible; sb.Begin();//播放动画 } diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTR.xaml b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTR.xaml index 82b97a04..0b34d9e9 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTR.xaml +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTR.xaml @@ -43,6 +43,7 @@ StrokeDashArray="2 4" StrokeDashCap="Round" StrokeEndLineCap="Round" + Visibility="Collapsed" StrokeStartLineCap="Round" StrokeThickness="4" /> diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTR.xaml.cs b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTR.xaml.cs index a75e9abe..3dc19f25 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTR.xaml.cs +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineTR.xaml.cs @@ -58,7 +58,7 @@ namespace BPASmartClient.CustomResource.UserControls Storyboard.SetTarget(da, mp);//绑定动画 Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); sb.Children.Add(da);//添加动画 - this.mp.Visibility = Visibility.Visible; + if (Direction != 0) this.mp.Visibility = Visibility.Visible; sb.Begin();//播放动画 } diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineV.xaml b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineV.xaml index 6d8da16e..1b26578a 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineV.xaml +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineV.xaml @@ -31,6 +31,7 @@ Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" StrokeDashArray="2 4" StrokeDashCap="Round" + Visibility="Collapsed" StrokeEndLineCap="Round" StrokeStartLineCap="Round" StrokeThickness="4" /> diff --git a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineV.xaml.cs b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineV.xaml.cs index f91552bc..7b8b50c8 100644 --- a/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineV.xaml.cs +++ b/BPASmartClient.CustomResource/UserControls/Control/PipeLine/PipeLineV.xaml.cs @@ -71,7 +71,7 @@ namespace BPASmartClient.CustomResource.UserControls Storyboard.SetTarget(da, mp);//绑定动画 Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); sb.Children.Add(da);//添加动画 - this.mp.Visibility = Visibility.Visible; + if (Direction != 0) this.mp.Visibility = Visibility.Visible; sb.Begin();//播放动画 }