|
- <UserControl
- x:Class="BPASmartClient.CustomResource.UserControls.Bottle"
- 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="200"
- d:DesignWidth="70"
- mc:Ignorable="d">
- <Border Name="mainBr" BorderThickness="0">
- <Viewbox Width="auto" Height="auto">
- <Canvas
- Name="cv"
- Width="{Binding ElementName=mainBr, Path=ActualWidth}"
- Height="{Binding ElementName=mainBr, Path=ActualHeight}">
- <Rectangle
- Name="r1"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Stroke="Black"
- StrokeThickness="0">
- <Rectangle.Fill>
- <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
- <GradientStop Color="{Binding BottleColor.Color, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
- <GradientStop Offset="1" Color="{Binding BottleColor.Color, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
- <GradientStop Offset="0.45" Color="#FEFFFFFF" />
- <GradientStop Offset="0.55" Color="#FEF9F9F9" />
- </LinearGradientBrush>
- </Rectangle.Fill>
- </Rectangle>
- <Border
- Name="bd"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Background="DimGray"
- BorderThickness="0" />
- <Path
- Name="pa"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Fill="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
- Stretch="Fill"
- StrokeThickness="0" />
- <Ellipse
- Name="e2"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Fill="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
- Stroke="#FF636242"
- StrokeThickness="0.5" />
- <Rectangle
- Name="refile"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Fill="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
- Stroke="Black"
- StrokeThickness="0" />
- <Ellipse
- x:Name="e1"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Fill="{Binding BottleColor, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
- StrokeThickness="0" />
-
- </Canvas>
- </Viewbox>
- </Border>
- </UserControl>
|