|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <UserControl
- x:Class="BPASmartClient.CustomResource.UserControls.PipeLineH"
- 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="800"
- 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.5,0" EndPoint="0.5,1">
- <GradientStop Offset="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>
|