VGPartText.xaml 1.2 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="MECF.Framework.UI.Client.Ctrlib.UnitControls.VGPartText"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. mc:Ignorable="d"
  7. d:DesignHeight="450" d:DesignWidth="800">
  8. <Canvas Width="20" Height="20">
  9. <Path StrokeThickness="2" Stretch="Fill" >
  10. <Path.Data>
  11. <GeometryGroup>
  12. <EllipseGeometry RadiusX="8" RadiusY="8" ></EllipseGeometry>
  13. <!--<LineGeometry StartPoint="0,-10" EndPoint="0,10"></LineGeometry>-->
  14. </GeometryGroup>
  15. </Path.Data>
  16. <Path.Stroke>
  17. <SolidColorBrush Color="#FF403E40"></SolidColorBrush>
  18. </Path.Stroke>
  19. </Path>
  20. <TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type UserControl}},Path=PartText}" Margin="6 2 0 0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="13">
  21. </TextBlock>
  22. </Canvas>
  23. </UserControl>