-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathNavMenu3DExample.xaml
More file actions
161 lines (161 loc) · 7.84 KB
/
NavMenu3DExample.xaml
File metadata and controls
161 lines (161 loc) · 7.84 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.NavMenu3DExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<controls:CodeViewer Header="{Binding NavigateMenuItem.Name}">
<Grid>
<Grid.Background>
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/NavMenu3D/background.png" />
</Grid.Background>
<Border
Width="400"
Height="235"
Margin="10,0"
VerticalAlignment="Top"
Background="{DynamicResource WD.BackgroundBrush}"
SnapsToDevicePixels="True">
<wd:NavMenu3D
x:Name="PART_NavMenu3D"
VerticalAlignment="Bottom"
SelectionChanged="NavMenu3D_SelectionChanged">
<wd:NavMenu3DItem
Background="#E21854"
Fill="#FD3574"
Tag="Item1">
<StackPanel VerticalAlignment="Center">
<Path
Width="40"
Height="40"
Data="{StaticResource WD.SmileyOutlineGeometry}"
Fill="{DynamicResource WD.WindowTextBrush}"
Stretch="Uniform" />
<TextBlock HorizontalAlignment="Center" Text="Emoji" />
</StackPanel>
</wd:NavMenu3DItem>
<wd:NavMenu3DItem
Background="#41A545"
Fill="#5EECA6"
Tag="Item2">
<StackPanel VerticalAlignment="Center">
<Path
Width="40"
Height="40"
Data="{StaticResource WD.BusGeometry}"
Fill="{DynamicResource WD.WindowTextBrush}"
Stretch="Uniform" />
<TextBlock HorizontalAlignment="Center" Text="Bus" />
</StackPanel>
</wd:NavMenu3DItem>
<wd:NavMenu3DItem
Background="#0A58F0"
Fill="#3A7DFE"
Tag="Item3">
<StackPanel VerticalAlignment="Center">
<Path
Width="40"
Height="40"
Data="{StaticResource WD.FriendGeometry}"
Fill="{DynamicResource WD.WindowTextBrush}"
Stretch="Uniform" />
<TextBlock HorizontalAlignment="Center" Text="Friend" />
</StackPanel>
</wd:NavMenu3DItem>
<wd:NavMenu3DItem
Background="#5F0574"
Fill="#8E1FA4"
Tag="Item4">
<StackPanel VerticalAlignment="Center">
<Path
Width="40"
Height="40"
Data="{StaticResource WD.AlarmClockGeometry}"
Fill="{DynamicResource WD.WindowTextBrush}"
Stretch="Uniform" />
<TextBlock HorizontalAlignment="Center" Text="Clock" />
</StackPanel>
</wd:NavMenu3DItem>
<wd:NavMenu3DItem
Background="#1F0355"
Fill="#5B31AD"
Tag="Item5">
<wd:NavMenu3DItem.Content>
<StackPanel VerticalAlignment="Center">
<Path
Width="40"
Height="40"
Data="{StaticResource WD.BuildingRegularGeometry}"
Fill="{DynamicResource WD.WindowTextBrush}"
Stretch="Uniform" />
<TextBlock HorizontalAlignment="Center" Text="Regular" />
</StackPanel>
</wd:NavMenu3DItem.Content>
<wd:NavMenu3DItem.ContentBack>
<StackPanel VerticalAlignment="Center">
<Path
Width="40"
Height="40"
Data="{StaticResource WD.BuildingRegularGeometry}"
Fill="{DynamicResource WD.WindowTextBrush}"
Stretch="Uniform" />
<TextBlock HorizontalAlignment="Center" Text="建筑" />
</StackPanel>
</wd:NavMenu3DItem.ContentBack>
</wd:NavMenu3DItem>
<wd:NavMenu3DItem Background="Red" Tag="Item6">Item 6</wd:NavMenu3DItem>
</wd:NavMenu3D>
</Border>
<Border
Width="450"
Height="260"
Margin="10,0"
VerticalAlignment="Top"
Background="{x:Null}"
BorderBrush="#181618"
BorderThickness="25,0,25,25"
CornerRadius="0,0,50,50"
SnapsToDevicePixels="True">
<Border.Effect>
<DropShadowEffect
BlurRadius="10"
Direction="300"
ShadowDepth="0"
Color="White" />
</Border.Effect>
</Border>
<StackPanel>
<TextBlock
Margin="0,20"
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="20"
FontWeight="Black"
Text="微信号公众号:WPFDevelopers" />
<TextBlock
Margin="0,20"
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="{StaticResource WD.PrimaryFontSize}"
FontWeight="Black">
<LineBreak />
<Hyperlink NavigateUri="https://github.com/WPFDevelopersOrg/WPFDevelopers.git" RequestNavigate="GithubHyperlink_RequestNavigate">Github 源代码</Hyperlink>
<Run />
<Run />
<Run />
<Hyperlink NavigateUri="https://gitee.com/yanjinhua/WPFDevelopers.git" RequestNavigate="GiteeHyperlink_RequestNavigate">码云源代码</Hyperlink>
</TextBlock>
</StackPanel>
</Grid>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/NavMenu3DExample.xaml" CodeType="Xaml" />
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/NavMenu3DExample.xaml.cs" CodeType="CSharp" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>