-
Notifications
You must be signed in to change notification settings - Fork 7
/
GeometryControl.xaml
98 lines (81 loc) · 5.61 KB
/
GeometryControl.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<UserControl
x:Class="修图.Control.GeometryControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:修图.Control"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="1200"
d:DesignWidth="100">
<ListView x:Name="ListView" ScrollViewer.VerticalScrollBarVisibility="Hidden" ItemContainerStyle="{StaticResource ToolListViewItem}" SelectionChanged="ListView_SelectionChanged">
<!--Line:直线-->
<Border x:Uid="/Geometry/Line" Background="Transparent">
<FontIcon FontFamily="Segoe UI Symbol" Glyph="╲" FontSize="22" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Free:自由线-->
<Border x:Uid="/Geometry/Free" Background="Transparent">
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="30" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center" RenderTransformOrigin="0.5,0.5">
<FontIcon.RenderTransform>
<CompositeTransform Rotation="-252.937"/>
</FontIcon.RenderTransform>
</FontIcon>
</Border>
<!--Image:图像-->
<Border x:Uid="/Geometry/Image" Background="Transparent">
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="22" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Word:字词-->
<Border x:Uid="/Geometry/Word" Background="Transparent">
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="24" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Circle:圆-->
<Border x:Uid="/Geometry/Circle" Background="Transparent" BorderThickness="0,1,0,0" BorderBrush="{Binding LineColor,Mode=OneWay}">
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="22" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Rect:矩形-->
<Border x:Uid="/Geometry/Rect" Background="Transparent">
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="20" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--RoundRect:圆角矩形-->
<Border x:Uid="/Geometry/RoundRect" Background="Transparent">
<Rectangle Width="22" Height="22" RadiusX="6" RadiusY="6" Fill="{StaticResource Blue}"/>
</Border>
<!--Triangle:三角形-->
<Border x:Uid="/Geometry/Triangle" Background="Transparent">
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="22" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Diamond:菱形-->
<Border x:Uid="/Geometry/Diamond" Background="Transparent" BorderThickness="0,1,0,0" BorderBrush="{Binding LineColor,Mode=OneWay}">
<FontIcon FontFamily="Segoe UI Symbol" Glyph="" FontSize="26" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Pentagon:多边形-->
<Border x:Uid="/Geometry/Pentagon" Background="Transparent">
<FontIcon FontFamily="Segoe UI Symbol" Glyph="⬟" FontSize="30" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Star:星星-->
<Border x:Uid="/Geometry/Star" Background="Transparent">
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="24" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Pie:饼图-->
<Border x:Uid="/Geometry/Pie" Background="Transparent">
<FontIcon FontFamily="Segoe UI Emoji" Glyph="◕" FontSize="32" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Cog:齿轮-->
<Border x:Uid="/Geometry/Cog" Background="Transparent" BorderThickness="0,1,0,0" BorderBrush="{Binding LineColor,Mode=OneWay}">
<FontIcon FontFamily="Segoe UI Symbol" Glyph="" FontSize="28" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Arrow:箭头-->
<Border x:Uid="/Geometry/Arrow" Background="Transparent">
<FontIcon FontFamily="Segoe UI Symbol" Glyph="➡" FontSize="40" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Capsule:胶囊-->
<Border x:Uid="/Geometry/Capsule" Background="Transparent">
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="26" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<!--Heart:心型-->
<Border x:Uid="/Geometry/Heart" Background="Transparent">
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="22" Foreground="{StaticResource Blue}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
</ListView>
</UserControl>