-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
485 lines (465 loc) · 35.8 KB
/
Copy pathMainWindow.xaml
File metadata and controls
485 lines (465 loc) · 35.8 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<Window x:Class="AndroidWidget.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:core="clr-namespace:AndroidWidget.Core;assembly=AndroidWidget.Core"
Title="Device Widget for Android"
Icon="{StaticResource AppIconImage}"
Width="258" Height="392"
MinWidth="230" MinHeight="350" MaxWidth="1100" MaxHeight="900"
WindowStyle="None" AllowsTransparency="True" Background="Transparent"
ResizeMode="NoResize" ShowInTaskbar="True" Topmost="True"
Loaded="Window_Loaded" Closing="Window_Closing">
<Grid Margin="8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- Телефон -->
<Border x:Name="PhoneShell" Grid.Column="0" CornerRadius="38"
Background="{DynamicResource PhoneShellBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1.2"
AllowDrop="True" DragEnter="Phone_DragEnter" DragLeave="Phone_DragLeave"
Drop="Phone_Drop">
<Grid x:Name="PhoneBezelGrid" Margin="9">
<Border x:Name="PhoneScreen" CornerRadius="30" Background="{DynamicResource ScreenBackground}"
BorderBrush="{DynamicResource ScreenBorderBrush}" BorderThickness="1"
MouseLeftButtonUp="PhoneScreen_MouseLeftButtonUp">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="35" />
<RowDefinition Height="*" />
<RowDefinition Height="48" />
</Grid.RowDefinitions>
<Border x:Name="SkinCameraCutout" Width="7" Height="7" CornerRadius="4"
Background="#080A0E" HorizontalAlignment="Center" VerticalAlignment="Top"
Margin="0,6,0,0" Panel.ZIndex="8" IsHitTestVisible="False" />
<Grid Grid.Row="0" Margin="13,0,11,0" Background="Transparent"
MouseLeftButtonDown="DragHandle_MouseLeftButtonDown">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Text="ADB" FontSize="10" FontWeight="SemiBold" Foreground="{DynamicResource TextSecondary}"
VerticalAlignment="Center" />
<Button Grid.Column="1" Style="{StaticResource IconButton}"
Width="26" Height="26" Margin="0,0,4,0" Background="Transparent"
BorderBrush="Transparent" Foreground="{DynamicResource TextSecondary}" Content="−" FontSize="16"
ToolTip="Свернуть в мини-виджет" Click="MiniModeButton_Click" />
<Button Grid.Column="2" Style="{StaticResource IconButton}"
Width="26" Height="26" Margin="0,0,4,0" Background="Transparent"
BorderBrush="Transparent" Foreground="{DynamicResource TextSecondary}" Content="⚙" FontSize="12"
ToolTip="Настройки" Click="SettingsButton_Click" />
<Button x:Name="PinButton" Grid.Column="3" Style="{StaticResource IconButton}"
Width="26" Height="26" Margin="0,0,4,0" Background="Transparent"
BorderBrush="Transparent" Foreground="{DynamicResource TextSecondary}" Content="●"
ToolTip="Поверх остальных окон" Click="PinButton_Click" />
<Button Grid.Column="4" Style="{StaticResource IconButton}"
Width="26" Height="26" Background="Transparent" BorderBrush="Transparent"
Foreground="{DynamicResource TextSecondary}"
ToolTip="Закрыть" Click="CloseButton_Click">
<Viewbox Width="11" Height="11" IsHitTestVisible="False">
<Canvas Width="12" Height="12">
<Path Data="M 1.5,1.5 L 10.5,10.5 M 10.5,1.5 L 1.5,10.5"
Stroke="{DynamicResource TextSecondary}" StrokeThickness="1.6"
StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
</Canvas>
</Viewbox>
</Button>
</Grid>
<StackPanel Grid.Row="1" VerticalAlignment="Center" Margin="17,0">
<Border x:Name="SkinDeviceBadge" Width="62" Height="62" CornerRadius="21" HorizontalAlignment="Center"
Background="#242B49" BorderBrush="#6D5CE7" BorderThickness="1">
<Grid>
<Ellipse x:Name="SkinAndroidFace" Width="31" Height="23" Fill="#8A73FF" VerticalAlignment="Center" />
<Ellipse Width="3" Height="3" Fill="White" Margin="-10,-2,0,0" />
<Ellipse Width="3" Height="3" Fill="White" Margin="10,-2,0,0" />
<Rectangle x:Name="SkinAntennaLeft" Width="2" Height="8" RadiusX="1" Fill="#8A73FF"
RenderTransformOrigin="0.5,1" Margin="-18,-31,0,0">
<Rectangle.RenderTransform><RotateTransform Angle="-30" /></Rectangle.RenderTransform>
</Rectangle>
<Rectangle x:Name="SkinAntennaRight" Width="2" Height="8" RadiusX="1" Fill="#8A73FF"
RenderTransformOrigin="0.5,1" Margin="18,-31,0,0">
<Rectangle.RenderTransform><RotateTransform Angle="30" /></Rectangle.RenderTransform>
</Rectangle>
</Grid>
</Border>
<TextBlock x:Name="DeviceNameText" Text="Ищу устройство…" Margin="0,12,0,2"
FontSize="15" FontWeight="SemiBold" Foreground="{DynamicResource TextPrimary}"
TextAlignment="Center" TextTrimming="CharacterEllipsis" />
<TextBlock x:Name="ConnectionText" Text="ADB" FontSize="10.5"
Foreground="{DynamicResource TextSecondary}" TextAlignment="Center" />
<Grid Margin="16,13,16,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<ProgressBar x:Name="BatteryBar" Height="5" Minimum="0" Maximum="100" Value="0"
Background="#252C42" Foreground="#72D8A2" BorderThickness="0"
VerticalAlignment="Center" />
<TextBlock x:Name="BatteryText" Grid.Column="1" Text="—" Margin="8,0,0,0"
FontSize="10" Foreground="{DynamicResource TextSecondary}" />
</Grid>
<Border x:Name="DropZone" Margin="0,14,0,0" Padding="9,8" CornerRadius="11"
Background="{DynamicResource MutedSurfaceBrush}"
BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1">
<TextBlock x:Name="DropHintText" Text="Перетащите файл или APK" FontSize="10.5"
Foreground="{DynamicResource TextSecondary}" TextAlignment="Center" TextWrapping="Wrap" />
</Border>
<TextBlock x:Name="StatusText" Text="Нажмите, чтобы открыть действия"
Margin="3,9,3,0" FontSize="9.5" Foreground="{DynamicResource TextSecondary}"
TextAlignment="Center" TextWrapping="Wrap" MaxHeight="28" />
</StackPanel>
<Border x:Name="PowerStateOverlay" Grid.Row="1" Visibility="Collapsed"
Background="#CC15101A" CornerRadius="22" Margin="14,7"
Panel.ZIndex="5" IsHitTestVisible="False">
<StackPanel VerticalAlignment="Center">
<Grid x:Name="MainPowerIcon" Width="72" Height="72" HorizontalAlignment="Center">
<Ellipse Width="56" Height="56" Stroke="{DynamicResource DangerText}" StrokeThickness="6"
VerticalAlignment="Bottom" />
<Border Width="8" Height="32" CornerRadius="4" Background="{DynamicResource DangerText}"
VerticalAlignment="Top" />
<Border Width="16" Height="13" Background="#CC15101A"
VerticalAlignment="Top" Margin="0,20,0,0" />
</Grid>
<Viewbox x:Name="MainLockIcon" Width="72" Height="72"
HorizontalAlignment="Center" Visibility="Collapsed">
<Canvas Width="64" Height="64">
<Path Data="M 17,30 L 17,22 C 17,8 47,8 47,22 L 47,30"
Stroke="{DynamicResource DangerText}" StrokeThickness="6"
StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
<Border Canvas.Left="7" Canvas.Top="27" Width="50" Height="34"
CornerRadius="7" Background="Transparent"
BorderBrush="{DynamicResource DangerText}" BorderThickness="5" />
<Ellipse Canvas.Left="28" Canvas.Top="39" Width="8" Height="8"
Fill="{DynamicResource DangerText}" />
<Rectangle Canvas.Left="30" Canvas.Top="44" Width="4" Height="8"
RadiusX="2" RadiusY="2" Fill="{DynamicResource DangerText}" />
</Canvas>
</Viewbox>
<TextBlock x:Name="PowerStateText" Text="Телефон заблокирован"
Foreground="{DynamicResource DangerText}" FontWeight="SemiBold" TextAlignment="Center"
Margin="8,7,8,0" />
</StackPanel>
</Border>
<Border x:Name="AuthorizationOverlay" Grid.Row="1" Visibility="Collapsed"
Background="#EA251B0A" BorderBrush="{DynamicResource WarningText}" BorderThickness="2"
CornerRadius="22" Margin="14,7" Panel.ZIndex="6" IsHitTestVisible="False">
<StackPanel VerticalAlignment="Center" Margin="12">
<Border Width="68" Height="68" CornerRadius="34" Background="#34FFB84D"
BorderBrush="{DynamicResource WarningText}" BorderThickness="2" HorizontalAlignment="Center">
<TextBlock Text="!" Foreground="{DynamicResource WarningText}" FontSize="47" FontWeight="Bold"
TextAlignment="Center" VerticalAlignment="Center" />
</Border>
<TextBlock Text="Требуется авторизация ADB" Foreground="{DynamicResource WarningText}"
FontWeight="SemiBold" TextAlignment="Center" Margin="0,12,0,0" />
<TextBlock Text="Разблокируйте телефон и подтвердите RSA-ключ"
Foreground="{DynamicResource TextSecondary}" FontSize="10" TextAlignment="Center"
TextWrapping="Wrap" Margin="7,5,7,0" />
</StackPanel>
</Border>
<Grid Grid.Row="2">
<Border Width="72" Height="4" CornerRadius="2" Background="#65708A"
Opacity="0.58" VerticalAlignment="Bottom" Margin="0,0,0,13" />
</Grid>
<Border x:Name="DropOverlay" Grid.RowSpan="3" Visibility="Collapsed" CornerRadius="29"
Background="#E6251E4A" BorderBrush="#927CFF" BorderThickness="2">
<StackPanel VerticalAlignment="Center">
<TextBlock Text="↓" Foreground="White" FontSize="44" TextAlignment="Center" />
<TextBlock Text="Отпустите на телефон" Foreground="White" FontWeight="SemiBold"
TextAlignment="Center" Margin="15,4,15,0" />
<TextBlock Text="APK установится, остальные файлы — в Download"
Foreground="#C8C0FF" FontSize="10" TextAlignment="Center"
TextWrapping="Wrap" Margin="20,7,20,0" />
</StackPanel>
</Border>
</Grid>
</Border>
<Border x:Name="SkinPowerButton" Width="3" Height="34" CornerRadius="2"
Background="#687084" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,-6,-45" IsHitTestVisible="False" />
<Border x:Name="SkinVolumeButton" Width="3" Height="46" CornerRadius="2"
Background="#687084" HorizontalAlignment="Left" VerticalAlignment="Center"
Margin="-6,0,0,-5" IsHitTestVisible="False" />
</Grid>
</Border>
<!-- Независимое меню: не участвует в размере телефонной карточки. -->
<Popup x:Name="ActionPopup" PlacementTarget="{Binding ElementName=PhoneShell}"
Placement="Right" HorizontalOffset="10" AllowsTransparency="True"
PopupAnimation="Fade" StaysOpen="True">
<Border x:Name="ActionPanel" Width="310" Height="500" Margin="8"
CornerRadius="22" Background="{DynamicResource WindowSurface}"
BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1">
<Grid Margin="17">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Действия" FontSize="18" FontWeight="SemiBold"
Foreground="{DynamicResource TextPrimary}" />
<TextBlock Text="{x:Static core:ProductVersion.ProductLabel}" FontSize="10"
Foreground="{DynamicResource TextSecondary}" />
</StackPanel>
<Button Grid.Column="1" Style="{StaticResource IconButton}" Click="CollapsePanel_Click"
ToolTip="Закрыть панель действий">
<Viewbox Width="12" Height="12" IsHitTestVisible="False">
<Canvas Width="12" Height="12">
<Path Data="M 1.5,1.5 L 10.5,10.5 M 10.5,1.5 L 1.5,10.5"
Stroke="{DynamicResource TextSecondary}" StrokeThickness="1.6"
StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
</Canvas>
</Viewbox>
</Button>
</Grid>
<UniformGrid Grid.Row="1" Columns="4" Rows="4" Margin="0,10,0,0"
HorizontalAlignment="Center">
<Button Style="{StaticResource AppTileButton}" Click="ScreenButton_Click"
ToolTip="Трансляция и управление через scrcpy">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#7559E8">
<Viewbox Width="22" Height="22">
<Path Data="M 3,4 L 21,4 L 21,17 L 3,17 Z M 8,21 L 16,21 M 12,17 L 12,21"
Stroke="White" StrokeThickness="1.8" Fill="Transparent" />
</Viewbox>
</Border>
<TextBlock Text="Экран" Margin="0,5,0,0" FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button x:Name="RecordButton" Style="{StaticResource AppTileButton}" Click="RecordButton_Click"
ToolTip="Настроить и запустить запись экрана в MKV">
<StackPanel HorizontalAlignment="Center">
<Border x:Name="RecordTileIcon" Width="48" Height="48" CornerRadius="14" Background="#C34755">
<Viewbox Width="22" Height="22">
<Path Data="M 12,3 A 9,9 0 1 1 11.9,3 Z M 12,8 A 4,4 0 1 1 11.9,8 Z"
Stroke="White" StrokeThickness="1.8" Fill="Transparent" />
</Viewbox>
</Border>
<TextBlock x:Name="RecordButtonText" Text="Запись" Margin="0,5,0,0"
FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button Style="{StaticResource AppTileButton}" Click="FilesButton_Click"
ToolTip="Файлы, фотографии и папки телефона">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#E59A27">
<Viewbox Width="23" Height="21">
<Path Data="M 2,7 L 9,7 L 11,4 L 22,4 L 22,19 L 2,19 Z"
Stroke="White" StrokeThickness="1.8" Fill="Transparent"
StrokeLineJoin="Round" />
</Viewbox>
</Border>
<TextBlock Text="Файлы" Margin="0,5,0,0" FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button Style="{StaticResource AppTileButton}" Click="TransfersButton_Click"
ToolTip="Очередь передач, прогресс и отмена">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#287D8E">
<Viewbox Width="22" Height="22">
<Path Data="M 7,3 L 3,7 L 7,11 M 3,7 L 16,7 M 17,21 L 21,17 L 17,13 M 21,17 L 8,17"
Stroke="White" StrokeThickness="1.9" Fill="Transparent"
StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" />
</Viewbox>
</Border>
<TextBlock Text="Передачи" Margin="0,5,0,0" FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button Style="{StaticResource AppTileButton}" Click="ScreenshotButton_Click"
ToolTip="Сделать и сохранить PNG-скриншот">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#DD4F78">
<Viewbox Width="23" Height="21">
<Path Data="M 3,7 L 7,7 L 9,4 L 15,4 L 17,7 L 21,7 L 21,19 L 3,19 Z M 12,9 A 4,4 0 1 1 11.9,9 Z"
Stroke="White" StrokeThickness="1.7" Fill="Transparent" StrokeLineJoin="Round" />
</Viewbox>
</Border>
<TextBlock Text="Скриншот" Margin="0,5,0,0" FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button Style="{StaticResource AppTileButton}" Click="InstallButton_Click"
ToolTip="Выбрать и установить APK">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#30A66B">
<Viewbox Width="22" Height="22">
<Path Data="M 5,3 L 19,3 L 19,21 L 5,21 Z M 9,7 L 15,7 M 12,7 L 12,15 M 9,12 L 12,15 L 15,12"
Stroke="White" StrokeThickness="1.7" Fill="Transparent"
StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" />
</Viewbox>
</Border>
<TextBlock Text="APK" Margin="0,5,0,0" FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button Style="{StaticResource AppTileButton}" Click="ShellButton_Click"
ToolTip="Открыть ADB shell">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#394252">
<Viewbox Width="23" Height="20">
<Path Data="M 2,3 L 22,3 L 22,19 L 2,19 Z M 6,8 L 10,11 L 6,14 M 12,15 L 18,15"
Stroke="White" StrokeThickness="1.7" Fill="Transparent"
StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" />
</Viewbox>
</Border>
<TextBlock Text="Shell" Margin="0,5,0,0" FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button Style="{StaticResource AppTileButton}" Click="ClipboardButton_Click"
ToolTip="Отправить текст из буфера обмена">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#148E9E">
<Viewbox Width="21" Height="23">
<Path Data="M 6,5 L 18,5 L 18,21 L 4,21 L 4,5 Z M 8,5 L 8,2 L 14,2 L 14,5 M 8,10 L 14,10 M 8,14 L 14,14"
Stroke="White" StrokeThickness="1.7" Fill="Transparent" StrokeLineJoin="Round" />
</Viewbox>
</Border>
<TextBlock Text="Буфер" Margin="0,5,0,0" FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button Style="{StaticResource AppTileButton}" Click="PowerButton_Click"
ToolTip="Включить или выключить экран телефона">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#D54B43">
<Viewbox Width="22" Height="22">
<Path Data="M 12,2 L 12,11 M 6.2,5.4 A 8,8 0 1 0 17.8,5.4"
Stroke="White" StrokeThickness="2" Fill="Transparent"
StrokeStartLineCap="Round" />
</Viewbox>
</Border>
<TextBlock Text="Питание" Margin="0,5,0,0" FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button Style="{StaticResource AppTileButton}" Click="MtpButton_Click"
ToolTip="Открыть устройство через MTP в Проводнике">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#5070A8">
<Viewbox Width="22" Height="23">
<Path Data="M 12,3 L 12,18 M 12,7 L 7,11 L 7,15 M 12,10 L 17,14 L 17,17 M 9,3 L 12,0 L 15,3 M 5,15 L 9,15 L 9,19 L 5,19 Z M 15,17 A 2,2 0 1 1 14.9,17 Z M 12,18 L 9,22 L 15,22 Z"
Stroke="White" StrokeThickness="1.5" Fill="Transparent"
StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" />
</Viewbox>
</Border>
<TextBlock Text="MTP" Margin="0,5,0,0" FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button Style="{StaticResource AppTileButton}" Click="WirelessButton_Click"
ToolTip="Сопряжение и подключение Wireless debugging">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#326BB5">
<Viewbox Width="23" Height="20">
<Path Data="M 2,7 C 8,-1 16,-1 22,7 M 6,11 C 10,6 14,6 18,11 M 10,15 C 11.5,13.5 12.5,13.5 14,15 M 12,19 L 12,19.1"
Stroke="White" StrokeThickness="1.9" Fill="Transparent"
StrokeStartLineCap="Round" />
</Viewbox>
</Border>
<TextBlock Text="Wi-Fi ADB" Margin="0,5,0,0" FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
<Button x:Name="CompanionButton" Style="{StaticResource AppTileButton}"
Click="CompanionButton_Click" ToolTip="Установить Device Widget Companion">
<StackPanel HorizontalAlignment="Center">
<Border Width="48" Height="48" CornerRadius="14" Background="#6157A8">
<Viewbox Width="22" Height="23">
<Path Data="M 7,2 L 17,2 L 17,21 L 7,21 Z M 10,5 L 14,5 M 11,18 L 13,18 M 3,9 C 1,11 1,14 3,16 M 21,9 C 23,11 23,14 21,16"
Stroke="White" StrokeThickness="1.7" Fill="Transparent"
StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round" />
</Viewbox>
</Border>
<TextBlock x:Name="CompanionButtonText" Text="Компаньон" Margin="0,5,0,0"
FontSize="10.5" TextAlignment="Center" />
</StackPanel>
</Button>
</UniformGrid>
<StackPanel Grid.Row="2" Margin="2,8,2,0">
<TextBlock x:Name="PanelStatusText" Text="Готово" FontSize="10"
Foreground="{DynamicResource TextSecondary}" TextTrimming="CharacterEllipsis" />
<TextBlock x:Name="CompanionStatusText" Text="Функции companion отключены" Margin="0,3,0,0"
FontSize="9.5" Foreground="{DynamicResource TextSecondary}"
TextTrimming="CharacterEllipsis" />
</StackPanel>
</Grid>
</Border>
</Popup>
<Popup x:Name="OperationBubblePopup" PlacementTarget="{Binding ElementName=PhoneShell}"
Placement="Left" HorizontalOffset="-7" AllowsTransparency="True"
PopupAnimation="Fade" StaysOpen="True">
<Grid Width="278" Margin="8">
<Border Margin="0,0,9,0" Padding="14,12" CornerRadius="16"
Background="{DynamicResource SurfaceBrush}" BorderBrush="#4AAE70" BorderThickness="1"
Cursor="Hand" MouseLeftButtonUp="OperationBubble_MouseLeftButtonUp">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="32" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border Width="26" Height="26" CornerRadius="13" VerticalAlignment="Top"
Background="#4AAE70">
<TextBlock Text="✓" Foreground="White" FontWeight="Bold"
HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<StackPanel Grid.Column="1" Margin="7,0,0,0">
<TextBlock Text="Видео сохранено" FontSize="11.5" FontWeight="SemiBold"
Foreground="{DynamicResource TextPrimary}" />
<TextBlock x:Name="OperationBubbleMessageText" Margin="0,4,0,0" FontSize="10.5"
Foreground="{DynamicResource TextSecondary}" TextWrapping="Wrap"
MaxHeight="48" TextTrimming="CharacterEllipsis" />
<TextBlock Text="Нажмите, чтобы открыть видео" Margin="0,7,0,0" FontSize="9.5"
Foreground="#4AAE70" />
</StackPanel>
</Grid>
</Border>
<Path Data="M 0,0 L 10,8 L 0,16 Z" Width="10" Height="16"
Fill="{DynamicResource SurfaceBrush}" Stretch="Fill"
HorizontalAlignment="Right" VerticalAlignment="Center" />
</Grid>
</Popup>
<Popup x:Name="SmsBubblePopup" PlacementTarget="{Binding ElementName=PhoneShell}"
Placement="Left" HorizontalOffset="-7" AllowsTransparency="True"
PopupAnimation="Fade" StaysOpen="True">
<ItemsControl x:Name="SmsBubbleItems" Width="278" Margin="8">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Margin="0,0,0,7">
<Border Margin="0,0,9,0" Padding="14,12" CornerRadius="16"
Background="{DynamicResource SurfaceBrush}"
BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
Cursor="Hand" MouseLeftButtonUp="SmsBubble_MouseLeftButtonUp">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="32" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border Width="26" Height="26" CornerRadius="13" VerticalAlignment="Top"
Background="{DynamicResource Accent}">
<Path Data="M 6,7 L 20,7 L 20,17 L 13,17 L 9,21 L 9,17 L 6,17 Z"
Fill="White" Stretch="Uniform" Margin="6" />
</Border>
<StackPanel Grid.Column="1" Margin="7,0,0,0">
<TextBlock Text="{Binding Message.Sender}" FontSize="11.5"
FontWeight="SemiBold" Foreground="{DynamicResource TextPrimary}"
TextTrimming="CharacterEllipsis" />
<TextBlock Text="{Binding Message.Preview}" Margin="0,4,0,0" FontSize="10.5"
Foreground="{DynamicResource TextSecondary}" TextWrapping="Wrap"
MaxHeight="48" TextTrimming="CharacterEllipsis" />
<TextBlock Text="Нажмите, чтобы скрыть" Margin="0,7,0,0" FontSize="9.5"
Foreground="{DynamicResource Accent}" />
</StackPanel>
</Grid>
</Border>
<Path Data="M 0,0 L 10,8 L 0,16 Z" Width="10" Height="16"
Fill="{DynamicResource SurfaceBrush}" Stretch="Fill"
HorizontalAlignment="Right" VerticalAlignment="Center" />
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Popup>
<Thumb Style="{StaticResource CornerResizeThumb}" Panel.ZIndex="50"
DragDelta="ResizeGrip_DragDelta" DragCompleted="ResizeGrip_DragCompleted" />
</Grid>
</Window>