PageRenderTime 11ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms 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
 5    <Style x:Key="{x:Type controls:MagnifyGlass}" TargetType="{x:Type controls:MagnifyGlass}">
 6        <Setter Property="Visibility" Value="Hidden" />
 7        <Setter Property="Template">
 8            <Setter.Value>
 9                <ControlTemplate TargetType="{x:Type controls:MagnifyGlass}">
10					<Canvas>
11						<Canvas x:Name="PART_magnifierCanvas" Canvas.Left="0" Canvas.Top="0">
12							<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">
13								<Ellipse.Stroke>
14									<LinearGradientBrush StartPoint="-0.107934,0.498174" EndPoint="1.4111,0.49627">
15										<LinearGradientBrush.GradientStops>
16											<GradientStop Color="#AF000000" Offset="0"/>
17											<GradientStop Color="#AFFFFFFF" Offset="1"/>
18										</LinearGradientBrush.GradientStops>
19									</LinearGradientBrush>
20								</Ellipse.Stroke>
21							</Ellipse>
22							<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">
23								<Ellipse.Fill>
24									<VisualBrush ViewboxUnits="Absolute" Viewbox="0,0,150,150" ViewportUnits="RelativeToBoundingBox" Viewport="0,0,1,1" />
25								</Ellipse.Fill>
26							</Ellipse>
27							<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 ">
28								<Path.Fill>
29									<LinearGradientBrush StartPoint="-0.0615579,1.136" EndPoint="1.53753,1.136">
30										<LinearGradientBrush.RelativeTransform>
31											<TransformGroup>
32												<SkewTransform CenterX="-0.0615579" CenterY="1.136" AngleX="-1.20878" AngleY="0"/>
33												<RotateTransform CenterX="-0.0615579" CenterY="1.136" Angle="-44.3771"/>
34											</TransformGroup>
35										</LinearGradientBrush.RelativeTransform>
36										<LinearGradientBrush.GradientStops>
37											<GradientStop Color="#AF000000" Offset="0"/>
38											<GradientStop Color="#AFFFFFFF" Offset="1"/>
39										</LinearGradientBrush.GradientStops>
40									</LinearGradientBrush>
41								</Path.Fill>
42							</Path>
43							<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 ">
44								<Path.Fill>
45									<LinearGradientBrush StartPoint="0.240088,0.801981" EndPoint="0.788028,0.801981">
46										<LinearGradientBrush.RelativeTransform>
47											<TransformGroup>
48												<SkewTransform CenterX="0.240088" CenterY="0.801981" AngleX="0.0628626" AngleY="0"/>
49												<RotateTransform CenterX="0.240088" CenterY="0.801981" Angle="-44.9686"/>
50											</TransformGroup>
51										</LinearGradientBrush.RelativeTransform>
52										<LinearGradientBrush.GradientStops>
53											<GradientStop Color="#AF000000" Offset="0"/>
54											<GradientStop Color="#AFFFFFFF" Offset="1"/>
55										</LinearGradientBrush.GradientStops>
56									</LinearGradientBrush>
57								</Path.Fill>
58							</Path>
59							<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 ">
60								<Path.Fill>
61									<LinearGradientBrush StartPoint="-5.78532e-007,0.500001" EndPoint="0.999999,0.500001">
62										<LinearGradientBrush.GradientStops>
63											<GradientStop Color="#AF000000" Offset="0"/>
64											<GradientStop Color="#AFFFFFFF" Offset="1"/>
65										</LinearGradientBrush.GradientStops>
66									</LinearGradientBrush>
67								</Path.Fill>
68							</Path>
69							<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"/>
70							<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"/>
71						</Canvas>
72					</Canvas>
73				</ControlTemplate>
74            </Setter.Value>
75        </Setter>
76    </Style>
77    
78</ResourceDictionary>