Knot.xaml 1.4 KB

123456789101112131415161718192021
  1. <UserControl x:Class="Aitex.Core.UI.Control.Knot"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. x:Name="me"
  5. Height="6" Width="6">
  6. <UserControl.RenderTransform>
  7. <RotateTransform x:Name="rotateTransform" Angle="0" CenterX="1.5" CenterY="1.5"/>
  8. </UserControl.RenderTransform>
  9. <Grid x:Name="LayoutRoot">
  10. <Ellipse x:Name="knotElli" Fill="#FF0B0B0C" Stroke="Black" RenderTransformOrigin="0.497,0.49" StrokeThickness="0" Margin="1.209,1.229,1.249,1.229"/>
  11. <Canvas x:Name="throughPath" Margin="-2.124,1.326,-1.844,0.378">
  12. <Path Data="M208.89601,89.520805 L210.89605,89.521138 C211.02,89.058362 210.89054,89.157186 211.23704,88.925253 211.44935,88.722666 211.72403,88.713333 212.19487,88.631017 212.68574,88.659255 213.2167,88.668464 213.42673,88.925228 213.72111,89.236612 213.68499,89.163993 213.77648,89.489076 L215.44156,89.502343" Stretch="Fill" Stroke="{Binding KnotElliColor , ElementName=me, Mode=Default}" x:Name="pathThrough" RenderTransformOrigin="0.505,0.956" Height="3.796" Width="9.968"/>
  13. <Path Data="M1.25,5.122 L4.34375,5.122" Height="2.688" Stretch="Fill" Stroke="{Binding ThroughInnerColor , ElementName=me, Mode=Default}" Canvas.Left="2.152" Canvas.Top="2.484" Width="6.004" StrokeThickness="3" />
  14. </Canvas>
  15. </Grid>
  16. </UserControl>