@@ -39,6 +39,7 @@ | |||||
HorizontalAlignment="Center" | HorizontalAlignment="Center" | ||||
VerticalAlignment="Top" | VerticalAlignment="Top" | ||||
Opacity="0.8" | Opacity="0.8" | ||||
Visibility="Collapsed" | |||||
Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" | Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" | ||||
StrokeDashArray="2 4" | StrokeDashArray="2 4" | ||||
StrokeDashCap="Round" | StrokeDashCap="Round" | ||||
@@ -58,7 +58,7 @@ namespace BPASmartClient.CustomResource.UserControls | |||||
Storyboard.SetTarget(da, mp);//绑定动画 | Storyboard.SetTarget(da, mp);//绑定动画 | ||||
Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | ||||
sb.Children.Add(da);//添加动画 | sb.Children.Add(da);//添加动画 | ||||
this.mp.Visibility = Visibility.Visible; | |||||
if (Direction != 0) this.mp.Visibility = Visibility.Visible; | |||||
sb.Begin();//播放动画 | sb.Begin();//播放动画 | ||||
} | } | ||||
@@ -35,6 +35,7 @@ | |||||
Canvas.Top="21" | Canvas.Top="21" | ||||
Width="150" | Width="150" | ||||
Height="150" | Height="150" | ||||
Visibility="Collapsed" | |||||
Opacity="0.8" | Opacity="0.8" | ||||
Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" | Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" | ||||
StrokeDashArray="2 4" | StrokeDashArray="2 4" | ||||
@@ -58,7 +58,7 @@ namespace BPASmartClient.CustomResource.UserControls | |||||
Storyboard.SetTarget(da, mp);//绑定动画 | Storyboard.SetTarget(da, mp);//绑定动画 | ||||
Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | ||||
sb.Children.Add(da);//添加动画 | sb.Children.Add(da);//添加动画 | ||||
this.mp.Visibility = Visibility.Visible; | |||||
if (Direction != 0) this.mp.Visibility = Visibility.Visible; | |||||
sb.Begin();//播放动画 | sb.Begin();//播放动画 | ||||
} | } | ||||
@@ -31,6 +31,7 @@ | |||||
Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" | Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" | ||||
StrokeDashArray="2 4" | StrokeDashArray="2 4" | ||||
StrokeDashCap="Round" | StrokeDashCap="Round" | ||||
Visibility="Collapsed" | |||||
StrokeEndLineCap="Round" | StrokeEndLineCap="Round" | ||||
StrokeStartLineCap="Round" | StrokeStartLineCap="Round" | ||||
StrokeThickness="4" /> | StrokeThickness="4" /> | ||||
@@ -72,7 +72,7 @@ namespace BPASmartClient.CustomResource.UserControls | |||||
Storyboard.SetTarget(da, mp);//绑定动画 | Storyboard.SetTarget(da, mp);//绑定动画 | ||||
Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | ||||
sb.Children.Add(da);//添加动画 | sb.Children.Add(da);//添加动画 | ||||
this.mp.Visibility = Visibility.Visible; | |||||
if(Direction!=0) this.mp.Visibility = Visibility.Visible; | |||||
sb.Begin();//播放动画 | sb.Begin();//播放动画 | ||||
} | } | ||||
@@ -36,6 +36,7 @@ | |||||
Canvas.Bottom="21" | Canvas.Bottom="21" | ||||
Width="150" | Width="150" | ||||
Height="150" | Height="150" | ||||
Visibility="Collapsed" | |||||
Opacity="0.8" | Opacity="0.8" | ||||
Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" | Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" | ||||
StrokeDashArray="2 4" | StrokeDashArray="2 4" | ||||
@@ -58,7 +58,7 @@ namespace BPASmartClient.CustomResource.UserControls | |||||
Storyboard.SetTarget(da, mp);//绑定动画 | Storyboard.SetTarget(da, mp);//绑定动画 | ||||
Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | ||||
sb.Children.Add(da);//添加动画 | sb.Children.Add(da);//添加动画 | ||||
this.mp.Visibility = Visibility.Visible; | |||||
if (Direction != 0) this.mp.Visibility = Visibility.Visible; | |||||
sb.Begin();//播放动画 | sb.Begin();//播放动画 | ||||
} | } | ||||
@@ -43,6 +43,7 @@ | |||||
StrokeDashArray="2 4" | StrokeDashArray="2 4" | ||||
StrokeDashCap="Round" | StrokeDashCap="Round" | ||||
StrokeEndLineCap="Round" | StrokeEndLineCap="Round" | ||||
Visibility="Collapsed" | |||||
StrokeStartLineCap="Round" | StrokeStartLineCap="Round" | ||||
StrokeThickness="4" /> | StrokeThickness="4" /> | ||||
@@ -58,7 +58,7 @@ namespace BPASmartClient.CustomResource.UserControls | |||||
Storyboard.SetTarget(da, mp);//绑定动画 | Storyboard.SetTarget(da, mp);//绑定动画 | ||||
Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | ||||
sb.Children.Add(da);//添加动画 | sb.Children.Add(da);//添加动画 | ||||
this.mp.Visibility = Visibility.Visible; | |||||
if (Direction != 0) this.mp.Visibility = Visibility.Visible; | |||||
sb.Begin();//播放动画 | sb.Begin();//播放动画 | ||||
} | } | ||||
@@ -31,6 +31,7 @@ | |||||
Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" | Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" | ||||
StrokeDashArray="2 4" | StrokeDashArray="2 4" | ||||
StrokeDashCap="Round" | StrokeDashCap="Round" | ||||
Visibility="Collapsed" | |||||
StrokeEndLineCap="Round" | StrokeEndLineCap="Round" | ||||
StrokeStartLineCap="Round" | StrokeStartLineCap="Round" | ||||
StrokeThickness="4" /> | StrokeThickness="4" /> | ||||
@@ -71,7 +71,7 @@ namespace BPASmartClient.CustomResource.UserControls | |||||
Storyboard.SetTarget(da, mp);//绑定动画 | Storyboard.SetTarget(da, mp);//绑定动画 | ||||
Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | Storyboard.SetTargetProperty(da, new PropertyPath("StrokeDashOffset")); | ||||
sb.Children.Add(da);//添加动画 | sb.Children.Add(da);//添加动画 | ||||
this.mp.Visibility = Visibility.Visible; | |||||
if (Direction != 0) this.mp.Visibility = Visibility.Visible; | |||||
sb.Begin();//播放动画 | sb.Begin();//播放动画 | ||||
} | } | ||||