终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

70 righe
3.3 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.UserControls.Bottle"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. d:DesignHeight="200"
  9. d:DesignWidth="70"
  10. mc:Ignorable="d">
  11. <Border Name="mainBr" BorderThickness="0">
  12. <Viewbox Width="auto" Height="auto">
  13. <Canvas
  14. Name="cv"
  15. Width="{Binding ElementName=mainBr, Path=ActualWidth}"
  16. Height="{Binding ElementName=mainBr, Path=ActualHeight}">
  17. <Rectangle
  18. Name="r1"
  19. HorizontalAlignment="Center"
  20. VerticalAlignment="Top"
  21. Stroke="Black"
  22. StrokeThickness="0">
  23. <Rectangle.Fill>
  24. <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
  25. <GradientStop Color="{Binding BottleColor.Color, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
  26. <GradientStop Offset="1" Color="{Binding BottleColor.Color, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
  27. <GradientStop Offset="0.45" Color="#FEFFFFFF" />
  28. <GradientStop Offset="0.55" Color="#FEF9F9F9" />
  29. </LinearGradientBrush>
  30. </Rectangle.Fill>
  31. </Rectangle>
  32. <Border
  33. Name="bd"
  34. HorizontalAlignment="Center"
  35. VerticalAlignment="Bottom"
  36. Background="DimGray"
  37. BorderThickness="0" />
  38. <Path
  39. Name="pa"
  40. HorizontalAlignment="Center"
  41. VerticalAlignment="Top"
  42. Fill="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  43. Stretch="Fill"
  44. StrokeThickness="0" />
  45. <Ellipse
  46. Name="e2"
  47. HorizontalAlignment="Left"
  48. VerticalAlignment="Top"
  49. Fill="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  50. Stroke="#FF636242"
  51. StrokeThickness="0.5" />
  52. <Rectangle
  53. Name="refile"
  54. HorizontalAlignment="Center"
  55. VerticalAlignment="Center"
  56. Fill="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  57. Stroke="Black"
  58. StrokeThickness="0" />
  59. <Ellipse
  60. x:Name="e1"
  61. HorizontalAlignment="Left"
  62. VerticalAlignment="Center"
  63. Fill="{Binding BottleColor, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  64. StrokeThickness="0" />
  65. </Canvas>
  66. </Viewbox>
  67. </Border>
  68. </UserControl>