-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathBreatheLightExample.xaml
More file actions
201 lines (192 loc) · 9.04 KB
/
BreatheLightExample.xaml
File metadata and controls
201 lines (192 loc) · 9.04 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.BreatheLightExample"
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}">
<UniformGrid Columns="2">
<Border
Width="400"
Height="140"
Background="{StaticResource WD.BackgroundBrush}"
CornerRadius="3"
Effect="{StaticResource WD.PrimaryShadowDepth}">
<Grid Margin="20,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<wd:BreathLamp
Width="60"
Height="60"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Background="{DynamicResource WD.PrimaryTextBrush}"
EffectColor="{DynamicResource WD.DefaultPressedColor}"
IsLampStart="true"
LampEffect="OuterGlow">
<Ellipse>
<Ellipse.Fill>
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Breathe/2.jpg" />
</Ellipse.Fill>
</Ellipse>
</wd:BreathLamp>
<TextBlock
Grid.Column="1"
Margin="10,20"
FontSize="{StaticResource WD.MediumFontSize}">
<Run Foreground="{StaticResource WD.PrimaryTextBrush}">
周星星|达叔
</Run>
<Run Foreground="{StaticResource WD.SuccessBrush}">正在直播</Run>
</TextBlock>
<Button
Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Content="进入直播"
Style="{StaticResource WD.PrimaryButton}" />
</Grid>
</Border>
<Border
Width="400"
Height="140"
Background="{StaticResource WD.BackgroundBrush}"
CornerRadius="3"
Effect="{StaticResource WD.PrimaryShadowDepth}">
<Grid Margin="20,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<wd:BreathLamp
Width="60"
Height="60"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Background="LightGreen"
EffectColor="LightGreen"
IsLampStart="true"
LampEffect="Eclipse">
<Ellipse>
<Ellipse.Fill>
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Breathe/1.jpg" />
</Ellipse.Fill>
</Ellipse>
</wd:BreathLamp>
<TextBlock
Grid.Column="1"
Margin="10,20"
FontSize="{StaticResource WD.MediumFontSize}"
TextWrapping="Wrap">
<Run Foreground="{StaticResource WD.PrimaryTextBrush}">
大话西游之大圣娶亲

</Run>
<Run Foreground="{StaticResource WD.SuccessBrush}">正在直播</Run>
</TextBlock>
<Button
Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Content="进入直播"
Style="{StaticResource WD.PrimaryButton}" />
</Grid>
</Border>
<Border
Width="400"
Height="140"
Background="{StaticResource WD.BackgroundBrush}"
CornerRadius="3"
Effect="{StaticResource WD.PrimaryShadowDepth}">
<Grid Margin="20,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<wd:BreathLamp
Width="60"
Height="60"
HorizontalAlignment="Left"
VerticalAlignment="Top"
IsLampStart="true"
LampEffect="Ripple">
<Ellipse>
<Ellipse.Fill>
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Breathe/0.jpg" />
</Ellipse.Fill>
</Ellipse>
</wd:BreathLamp>
<TextBlock
Grid.Column="1"
Margin="10,20"
FontSize="{StaticResource WD.MediumFontSize}">
<Run Foreground="{StaticResource WD.PrimaryTextBrush}">
XXXYYY
</Run>
<Run Foreground="{StaticResource WD.SuccessBrush}">正在直播</Run>
</TextBlock>
<Button
Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Content="进入直播"
Style="{StaticResource WD.PrimaryButton}" />
</Grid>
</Border>
<Border
Width="400"
Height="140"
Background="{StaticResource WD.BackgroundBrush}"
CornerRadius="3"
Effect="{StaticResource WD.PrimaryShadowDepth}">
<Grid Margin="20,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<wd:BreathLamp
Width="60"
Height="60"
HorizontalAlignment="Left"
VerticalAlignment="Top"
GradientStopColor1="#FF00cec9"
GradientStopColor2="#2000cec9"
IsLampStart="True"
LampEffect="Streamer">
<Ellipse Width="53" Height="53">
<Ellipse.Fill>
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Chat/UserImages/yanjinhua.png" />
</Ellipse.Fill>
</Ellipse>
</wd:BreathLamp>
<TextBlock
Grid.Column="1"
Margin="10,20"
FontSize="{StaticResource WD.MediumFontSize}">
<Run Foreground="{StaticResource WD.PrimaryTextBrush}">
WPF开发者
</Run>
<Run Foreground="{StaticResource WD.SuccessBrush}">正在直播</Run>
</TextBlock>
<Button
Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Content="进入直播"
Style="{StaticResource WD.PrimaryButton}" />
</Grid>
</Border>
</UniformGrid>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/BreatheLightExample.xaml" CodeType="Xaml" />
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/BreatheLightExample.xaml.cs" CodeType="CSharp" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>