|
12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <UserControl
- x:Class="BPASmartClient.CustomResource.UserControls.PipeLineV"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- d:DesignHeight="450"
- d:DesignWidth="100"
- mc:Ignorable="d">
- <Grid Name="gr">
- <Viewbox Width="auto" Height="auto">
- <Canvas
- Width="{Binding ElementName=gr, Path=ActualWidth}"
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- ClipToBounds="True">
-
- <Rectangle Width="{Binding ElementName=gr, Path=ActualWidth}" Height="{Binding ElementName=gr, Path=ActualHeight}">
- <Rectangle.Fill>
- <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
- <GradientStop Offset="0.0" Color="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
- <GradientStop Offset="0.5" Color="Snow" />
- <GradientStop Offset="1" Color="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
- </LinearGradientBrush>
- </Rectangle.Fill>
- </Rectangle>
-
- <Path
- Name="mp"
- Opacity="0.8"
- Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
- StrokeDashArray="2 4"
- StrokeDashCap="Round"
- Visibility="Collapsed"
- StrokeEndLineCap="Round"
- StrokeStartLineCap="Round"
- StrokeThickness="4" />
-
- </Canvas>
- </Viewbox>
-
- </Grid>
- </UserControl>
|