PageRenderTime 1485ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 1ms

/CBR/CBR/Resources/XAML/Controls/MagnifyGlass.xaml

#
XAML | 78 lines | 76 code | 2 blank | 0 comment | 0 complexity | 44e930e1f001bd374d86a359fc1e7875 MD5 | raw file
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:controls="clr-namespace:CBR.Components.Controls">
  4. <Style x:Key="{x:Type controls:MagnifyGlass}" TargetType="{x:Type controls:MagnifyGlass}">
  5. <Setter Property="Visibility" Value="Hidden" />
  6. <Setter Property="Template">
  7. <Setter.Value>
  8. <ControlTemplate TargetType="{x:Type controls:MagnifyGlass}">
  9. <Canvas>
  10. <Canvas x:Name="PART_magnifierCanvas" Canvas.Left="0" Canvas.Top="0">
  11. <Ellipse x:Name="outer_ellipse" Width="262.667" Height="262.667" Canvas.Left="0" Canvas.Top="3.05176e-005" Stretch="Fill" StrokeThickness="10" StrokeLineJoin="Round">
  12. <Ellipse.Stroke>
  13. <LinearGradientBrush StartPoint="-0.107934,0.498174" EndPoint="1.4111,0.49627">
  14. <LinearGradientBrush.GradientStops>
  15. <GradientStop Color="#AF000000" Offset="0"/>
  16. <GradientStop Color="#AFFFFFFF" Offset="1"/>
  17. </LinearGradientBrush.GradientStops>
  18. </LinearGradientBrush>
  19. </Ellipse.Stroke>
  20. </Ellipse>
  21. <Ellipse x:Name="PART_magnifierView" Width="243.687" Height="243.687" Canvas.Left="10.4999" Canvas.Top="9.33334" Stretch="Fill" StrokeThickness="3" StrokeLineJoin="Round" Stroke="#FFCECECE">
  22. <Ellipse.Fill>
  23. <VisualBrush ViewboxUnits="Absolute" Viewbox="0,0,150,150" ViewportUnits="RelativeToBoundingBox" Viewport="0,0,1,1" />
  24. </Ellipse.Fill>
  25. </Ellipse>
  26. <Path x:Name="Path" Width="64.5573" Height="63.25" Canvas.Left="191" Canvas.Top="195.274" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Stroke="#FF141414" Data="F1 M 192,247.417L 204.057,257.524L 215.25,256.667L 253,218.917L 254.557,209.024L 243.641,196.274L 192,247.417 Z ">
  27. <Path.Fill>
  28. <LinearGradientBrush StartPoint="-0.0615579,1.136" EndPoint="1.53753,1.136">
  29. <LinearGradientBrush.RelativeTransform>
  30. <TransformGroup>
  31. <SkewTransform CenterX="-0.0615579" CenterY="1.136" AngleX="-1.20878" AngleY="0"/>
  32. <RotateTransform CenterX="-0.0615579" CenterY="1.136" Angle="-44.3771"/>
  33. </TransformGroup>
  34. </LinearGradientBrush.RelativeTransform>
  35. <LinearGradientBrush.GradientStops>
  36. <GradientStop Color="#AF000000" Offset="0"/>
  37. <GradientStop Color="#AFFFFFFF" Offset="1"/>
  38. </LinearGradientBrush.GradientStops>
  39. </LinearGradientBrush>
  40. </Path.Fill>
  41. </Path>
  42. <Path x:Name="Path_0" Width="77.6667" Height="77.75" Canvas.Left="215.083" Canvas.Top="217.917" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Stroke="#FF525252" Data="F1 M 216.083,256.333L 253.5,294.667L 291.75,257.167L 253.25,218.917L 216.083,256.333 Z ">
  43. <Path.Fill>
  44. <LinearGradientBrush StartPoint="0.240088,0.801981" EndPoint="0.788028,0.801981">
  45. <LinearGradientBrush.RelativeTransform>
  46. <TransformGroup>
  47. <SkewTransform CenterX="0.240088" CenterY="0.801981" AngleX="0.0628626" AngleY="0"/>
  48. <RotateTransform CenterX="0.240088" CenterY="0.801981" Angle="-44.9686"/>
  49. </TransformGroup>
  50. </LinearGradientBrush.RelativeTransform>
  51. <LinearGradientBrush.GradientStops>
  52. <GradientStop Color="#AF000000" Offset="0"/>
  53. <GradientStop Color="#AFFFFFFF" Offset="1"/>
  54. </LinearGradientBrush.GradientStops>
  55. </LinearGradientBrush>
  56. </Path.Fill>
  57. </Path>
  58. <Path x:Name="Path_1" Width="107.5" Height="93.25" Canvas.Left="250.25" Canvas.Top="252.917" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Stroke="#AF000000" Data="F1 M 282.75,345.167L 251.25,310.667L 251.5,296.417L 292.5,256.167L 306.75,253.917L 356.75,299.667C 352.574,303.361 348.398,307.055 344.064,310.888C 339.731,314.722 335.241,318.694 330.666,320.314C 326.091,321.933 321.432,321.2 316.932,320.491C 312.432,319.783 308.091,319.1 304.534,319.441C 300.977,319.783 298.203,321.149 295.43,322.515C 292.62,323.899 289.81,325.283 288.089,327.349C 286.369,329.415 285.737,332.164 285.029,335.248C 284.32,338.331 283.535,341.749 282.75,345.167 Z ">
  59. <Path.Fill>
  60. <LinearGradientBrush StartPoint="-5.78532e-007,0.500001" EndPoint="0.999999,0.500001">
  61. <LinearGradientBrush.GradientStops>
  62. <GradientStop Color="#AF000000" Offset="0"/>
  63. <GradientStop Color="#AFFFFFFF" Offset="1"/>
  64. </LinearGradientBrush.GradientStops>
  65. </LinearGradientBrush>
  66. </Path.Fill>
  67. </Path>
  68. <Path x:Name="Line" Width="46.25" Height="43" Canvas.Left="299.566" Canvas.Top="260.437" Stretch="Fill" StrokeThickness="5" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" Stroke="#57FFFFFF" Data="F1 M 302.066,262.937L 343.316,300.937"/>
  69. <Path x:Name="Line_2" Width="23.75" Height="26" Canvas.Left="258.066" Canvas.Top="302.687" Stretch="Fill" StrokeThickness="3" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" Stroke="#FF7E7E7E" Data="F1 M 259.566,304.187L 280.316,327.187"/>
  70. </Canvas>
  71. </Canvas>
  72. </ControlTemplate>
  73. </Setter.Value>
  74. </Setter>
  75. </Style>
  76. </ResourceDictionary>