-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainPage.xaml
631 lines (551 loc) · 38.2 KB
/
MainPage.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
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
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
<Page
x:Class="ValleyTube.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ValleyTube"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<Pivot Name="BobIsYourUncle" Title="" SelectionChanged="Pivot_SelectionChanged">
<PivotItem Header="trending">
<ListView x:Name="TrendingListView" ItemClick="TrendsListView_ItemClick">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0">
<Button Background="Transparent" BorderBrush="Transparent" Padding="0" Click="ImageButton_Click">
<Grid>
<Image Source="{Binding ThumbnailUrl}" Width="120" Height="90" Margin="0,0,10,0" Stretch="UniformToFill"/>
<Border Background="Black" Opacity="0.8" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Padding="0">
<TextBlock Text="{Binding LengthFormatted}" Foreground="White" FontSize="14" FontWeight="Bold"/>
</Border>
</Grid>
</Button>
<StackPanel>
<TextBlock Text="{Binding Title}"
FontSize="20"
FontWeight="Bold"
Foreground="White"
TextWrapping="NoWrap"
TextTrimming="CharacterEllipsis"/>
<TextBlock Text="{Binding Author}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding ViewCountText}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding PublishedText}" FontSize="14" Foreground="Gray"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</PivotItem>
<PivotItem Header="recommended">
<ListView x:Name="RecommendedListView" ItemClick="TrendsListView_ItemClick">
<TextBlock x:Name="RecTextNoHistroy" Text="dfdfdfd" FontSize="20" FontWeight="Bold" Foreground="White"
VerticalAlignment="Center" HorizontalAlignment="Center"
Grid.Row="0" Margin="1"/>
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0">
<Button Background="Transparent" BorderBrush="Transparent" Padding="0" Click="ImageButton_Click2">
<Grid>
<Image Source="{Binding ThumbnailUrl}" Width="120" Height="90" Margin="0,0,10,0" Stretch="UniformToFill"/>
<Border Background="Black" Opacity="0.8" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Padding="0">
<TextBlock Text="{Binding LengthFormatted}" Foreground="White" FontSize="14" FontWeight="Bold"/>
</Border>
</Grid>
</Button>
<StackPanel>
<TextBlock Text="{Binding Title}"
FontSize="20"
FontWeight="Bold"
Foreground="White"
TextWrapping="Wrap"
TextTrimming="CharacterEllipsis"/>
<TextBlock Text="{Binding Author}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding ViewCountText}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding PublishedText}" FontSize="14" Foreground="Gray"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</PivotItem>
<PivotItem Header="popular">
<ListView x:Name="PopularListView" ItemClick="TrendsListView_ItemClick">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0">
<Button Background="Transparent" BorderBrush="Transparent" Padding="0" Click="ImageButton_Click">
<Grid>
<Image Source="{Binding ThumbnailUrl}" Width="120" Height="90" Margin="0,0,10,0" Stretch="UniformToFill"/>
<Border Background="Black" Opacity="0.8" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Padding="0">
<TextBlock Text="{Binding LengthFormatted}" Foreground="White" FontSize="14" FontWeight="Bold"/>
</Border>
</Grid>
</Button>
<StackPanel>
<TextBlock Text="{Binding Title}" FontSize="20" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="{Binding Author}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding ViewCountText}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding PublishedText}" FontSize="14" Foreground="Gray"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</PivotItem>
<PivotItem Header="gaming">
<ListView x:Name="GamingListView" ItemClick="TrendsListView_ItemClick">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0">
<Button Background="Transparent" BorderBrush="Transparent" Padding="0" Click="ImageButton_Click">
<Grid>
<Image Source="{Binding ThumbnailUrl}" Width="120" Height="90" Margin="0,0,10,0" Stretch="UniformToFill"/>
<Border Background="Black" Opacity="0.8" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Padding="0">
<TextBlock Text="{Binding LengthFormatted}" Foreground="White" FontSize="14" FontWeight="Bold"/>
</Border>
</Grid>
</Button>
<StackPanel>
<TextBlock Text="{Binding Title}" FontSize="20" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="{Binding Author}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding ViewCountText}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding PublishedText}" FontSize="14" Foreground="Gray"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</PivotItem>
<PivotItem Header="music">
<ListView x:Name="MusicListView" ItemClick="TrendsListView_ItemClick">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0">
<Button Background="Transparent" BorderBrush="Transparent" Padding="0" Click="ImageButton_Click">
<Grid>
<Image Source="{Binding ThumbnailUrl}" Width="120" Height="90" Margin="0,0,10,0" Stretch="UniformToFill"/>
<Border Background="Black" Opacity="0.8" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Padding="0">
<TextBlock Text="{Binding LengthFormatted}" Foreground="White" FontSize="14" FontWeight="Bold"/>
</Border>
</Grid>
</Button>
<StackPanel>
<TextBlock Text="{Binding Title}" FontSize="20" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="{Binding Author}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding ViewCountText}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding PublishedText}" FontSize="14" Foreground="Gray"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</PivotItem>
<PivotItem Header="movies">
<ListView x:Name="MoviesListView" ItemClick="TrendsListView_ItemClick">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0">
<Button Background="Transparent" BorderBrush="Transparent" Padding="0" Click="ImageButton_Click">
<Grid>
<Image Source="{Binding ThumbnailUrl}" Width="120" Height="90" Margin="0,0,10,0" Stretch="UniformToFill"/>
<Border Background="Black" Opacity="0.8" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Padding="0">
<TextBlock Text="{Binding LengthFormatted}" Foreground="White" FontSize="14" FontWeight="Bold"/>
</Border>
</Grid>
</Button>
<StackPanel>
<TextBlock Text="{Binding Title}" FontSize="20" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="{Binding Author}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding ViewCountText}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding PublishedText}" FontSize="14" Foreground="Gray"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</PivotItem>
<PivotItem Header="history">
<ListView x:Name="HistoryListView">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0">
<Button Background="Transparent" BorderBrush="Transparent" Padding="0" Click="ImageButton_Click2">
<Grid>
<Image Source="{Binding ThumbnailUrl}" Width="120" Height="90" Margin="0,0,10,0" Stretch="UniformToFill"/>
<Border Background="Black" Opacity="0.8" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Padding="0">
<TextBlock Text="{Binding LengthFormatted}" Foreground="White" FontSize="14" FontWeight="Bold"/>
</Border>
</Grid>
</Button>
<StackPanel>
<TextBlock Text="{Binding Title}" FontSize="20" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="{Binding Author}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding ViewCountText}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding PublishedText}" FontSize="14" Foreground="Gray"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</PivotItem>
<PivotItem Header="subscriptions">
<ScrollViewer ViewChanged="ScrollViewer_ViewChanged">
<ListView x:Name="SubscriptionsListView" ItemClick="TrendsListView_ItemClick">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0">
<Button Background="Transparent" BorderBrush="Transparent" Padding="0" Click="ImageButton_Click2">
<Grid>
<Image Source="{Binding ThumbnailUrl}" Width="120" Height="90" Margin="0,0,10,0" Stretch="UniformToFill"/>
<Border Background="Black" Opacity="0.8" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Padding="0">
<TextBlock Text="{Binding LengthFormatted}" Foreground="White" FontSize="14" FontWeight="Bold"/>
</Border>
</Grid>
</Button>
<StackPanel>
<TextBlock Text="{Binding Title}" FontSize="20" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="{Binding Author}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding ViewCountText}" FontSize="14" Foreground="Gray"/>
<TextBlock Text="{Binding PublishedText}" FontSize="14" Foreground="Gray"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ScrollViewer>
</PivotItem>
<PivotItem Header="settings">
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
<StackPanel Margin="10">
<TextBlock Text="Settings" FontSize="24" FontWeight="Bold" Foreground="White" Margin="0,0,0,20"/>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,10,0,0">
<TextBlock Text="Video Quality" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<ComboBox x:Name="QualityComboBox"
SelectionChanged="QualityComboBox_SelectionChanged"
Margin="20,0,0,0"
Width="150">
<ComboBoxItem Content="144p" Tag="144"/>
<ComboBoxItem Content="240p" Tag="240"/>
<ComboBoxItem Content="360p Direct" Tag="360p-direct"/>
<ComboBoxItem Content="360p Format Stream" Tag="360p-format-stream"/>
<ComboBoxItem Content="360p" Tag="360"/>
<ComboBoxItem Content="480p" Tag="480"/>
<ComboBoxItem Content="720p" Tag="720"/>
<ComboBoxItem Content="1080p" Tag="1080"/>
<ComboBoxItem Content="144p Innertube" Tag="144-innertube"/>
<ComboBoxItem Content="240p Innertube" Tag="240-innertube"/>
<ComboBoxItem Content="360p Innertube" Tag="360-innertube"/>
<ComboBoxItem Content="480p Innertube" Tag="480-innertube"/>
<ComboBoxItem Content="720p Innertube" Tag="720-innertube"/>
<ComboBoxItem Content="1080p Innertube" Tag="1080-innertube"/>
</ComboBox>
</StackPanel>
<TextBlock Text="Select the preferred video quality. The player will attempt to use the selected quality."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<!-- Autoplay Toggle -->
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,10,0,0">
<TextBlock Text="Autoplay Next Video" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<ToggleSwitch x:Name="AutoplayToggleSwitch"
Toggled="AutoplayToggleSwitch_Toggled"
Margin="20,0,0,0"/>
</StackPanel>
<TextBlock Text="Enable this option to automatically play the next video when the current one finishes."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,10,0,0">
<TextBlock Text="Screen Time Off" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<ToggleSwitch x:Name="TimeoffToggleSwitch"
Toggled="TimeoffToggleSwitch_Toggled"
Margin="20,0,0,0"/>
</StackPanel>
<TextBlock Text="Enable this option to have the display auto turn off after a little bit (depends on your system settings). You will need to close and relaunch the app to take effect."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,10,0,0">
<TextBlock Text="Sponserblock" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<ToggleSwitch x:Name="SponserblockSwitch"
Toggled="Sponserblock_Toggled"
Margin="20,0,0,0"/>
</StackPanel>
<TextBlock Text="This enables sponsorblock integration."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,10,0,0">
<TextBlock Text="Show Sponser Skip Message" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<ToggleSwitch x:Name="ShowSponserSkipSwitch"
Toggled="ShowSponserSkip_Toggled"
Margin="20,0,0,0"/>
</StackPanel>
<TextBlock Text="This enables sponser skip messages, so whenever a sponser segement is skipped it shows a message."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,10,0,0">
<TextBlock Text="Doubletap To Skip" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<ToggleSwitch x:Name="DoulbeTapToSkipkSwitchUggh"
Toggled="DoulbeTapToSkip_Toggled"
Margin="20,0,0,0"/>
</StackPanel>
<TextBlock Text="When you double tap the player you skip to the next video."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,10,0,0">
<TextBlock Text="Alt Video Download " FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<ToggleSwitch x:Name="UseFormatScreenToDownloadVideos"
Toggled="UseFormatScreenToDownloadVideos_Toggled"
Margin="20,0,0,0"/>
</StackPanel>
<TextBlock Text="This changes how we download your videos, by deafult we will use a direct link however some instances block it so if you choose this option we will get the video url using adaptiveFormats in the JSON. Sadly this like with direct only offers 360p."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="How Many Videos To Get Per Subed Channel" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="SubbedVideosTextBox"
Width="100"
Margin="0,10,0,0" />
<Button Content="Set" Click="SetSubbedVideos_Click" Width="100" Margin="0,0,0,0" />
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="How Many Recommended Videos" FontSize="20" Foreground="White" VerticalAlignment="Center" Margin="0,20,0,0"/>
<TextBox x:Name="RecommendedVideosTextBox"
Width="100"
Margin="0,10,0,0" />
<Button Content="Set" Click="SetRecommendedVideos_Click" Width="100" Margin="0,0,0,0" />
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<Button x:Name="ImportSubscriptionsButton"
Content="Import Subscriptions"
FontSize="20"
Margin="0,10,0,0"
Click="ImportSubscriptionsButton_Click"/>
<TextBlock Text="Click this button to import subscriptions from a CSV file. This will add new subscriptions based on the CSV file's content."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="Invidious Instance URL" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="InvidiousInstanceTextBox"
Text="{Binding Path=InvidiousInstance}"
Margin="0,5,0,0"
Width="300"/>
<Button Content="Set Invidious Instance"
Click="SetInvidiousInstanceButton_Click"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="Invidious Instance Comments URL" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="InvidiousInstanceCommentsTextBox"
Text="{Binding Path=InvidiousInstanceComments}"
Margin="0,5,0,0"
Width="300"/>
<Button Content="Set Invidious Instance Comments"
Click="SetInvidiousInstanceCommentsButton_Click"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="Return Dislikes API Instance" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="ReturnDislikesTextBox"
Text="{Binding Path=ReturnDislikeInstance}"
Margin="0,5,0,0"
Width="300"/>
<Button Content="Set Return Dislikes API Instance"
Click="SetReturnDislikesTextBoxButton_Click"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="Sponserblock Instance" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="SponserblockTextBox"
Text="{Binding Path=SponserBlockInstance}"
Margin="0,5,0,0"
Width="300"/>
<Button Content="Set Sponserblock Instance"
Click="SetSponserblockTextBoxButton_Click"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="Access Token" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="AccessToken"
Text="{Binding Path=AccessToken}"
Margin="0,5,0,0"
Width="300"/>
<Button Content="Set Access Token"
Click="SetAccessToken_Click"
Margin="0,5,0,0"/>
<TextBlock Text="You shouldn't really need to set this; it should auto-fill when you sign in for the first time."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="ClientId" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="ClientId"
Text="{Binding Path=ClientId}"
Margin="0,5,0,0"
Width="300"/>
<Button Content="Set ClientId"
Click="SetClientId_Click"
Margin="0,5,0,0"/>
<TextBlock Text="Set your ClientId from the client_secret json file you got when setting up the OAuth API stuff in the google cloud panel!"
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="ClientSecret" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="ClientSecret"
Text="{Binding Path=ClientSecret}"
Margin="0,5,0,0"
Width="300"/>
<Button Content="Set ClientSecret"
Click="SetClientSecret_Click"
Margin="0,5,0,0"/>
<TextBlock Text="Set your ClientSecret from the client_secret json file you got when setting up the OAuth API stuff in the google cloud panel!"
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="Scope" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="Scope"
Text="{Binding Path=Scope}"
Margin="0,5,0,0"
Width="300"/>
<Button Content="Set Scope"
Click="SetScope_Click"
Margin="0,5,0,0"/>
<TextBlock Text="You can probbaly leave this be, since we need to use the YouTube Scope!"
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="RedirectUri" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="RedirectUri"
Text="{Binding Path=Scope}"
Margin="0,5,0,0"
Width="300"/>
<Button Content="Set RedirectUri"
Click="SetRedirectUri_Click"
Margin="0,5,0,0"/>
<TextBlock Text="You can probbaly leave this be, use whatever you have set in your cleint_secret but the default is localhost iirc.!"
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="YouTube API Key" FontSize="20" Foreground="White" VerticalAlignment="Center"/>
<TextBox x:Name="YouTubeAPIKey"
Text="{Binding Path=YouTubeAPIKey}"
Margin="0,5,0,0"
Width="300"/>
<Button Content="Set YouTube API Key"
Click="SetYouTubeAPIKey_Click"
Margin="0,5,0,0"/>
<TextBlock Text="The YouTube api key used for commenting (and at some point other features), DO NOT share this with anyone! Google YouTube API v3 or something"
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<Button x:Name="ClearSubcriptions"
Content="Clear Subscriptions"
FontSize="20"
Margin="0,10,0,0"
Click="ClearSubcriptions_Click"/>
<TextBlock Text="Click this button to clear subscriptions."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<Button x:Name="ClearVideoHistory"
Content="Clear History"
FontSize="20"
Margin="0,10,0,0"
Click="ClearHistory_Click"/>
<TextBlock Text="Click this button to clear history."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<Button x:Name="ClearSavedSettings"
Content="Clear Saved Settings"
FontSize="20"
Margin="0,10,0,0"
Click="ClearSavedSettings_Click"/>
<TextBlock Text="Click this button to clear saved settings (requires restart of the app!)."
FontSize="16"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<Button Content="About" Click="AboutButton_Click" Width="100" Margin="0,20,0,0"/>
</StackPanel>
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="0,20,0,0">
<TextBlock Text="Erie Valley Software, Copyright 2022-2024"
FontSize="20"
Foreground="LightGray"
TextWrapping="Wrap"
Margin="0,5,0,0"/>
</StackPanel>
</StackPanel>
</ScrollViewer>
</PivotItem>
</Pivot>
<TextBlock x:Name="StatusMessageTextBlock"
Text=""
Foreground="White"
FontSize="24"
VerticalAlignment="Top"
HorizontalAlignment="Center"
Margin="0,125,0,0"
Visibility="Collapsed"/>
</Grid>
<Page.BottomAppBar>
<CommandBar IsSticky="True">
<AppBarButton Icon="Find" Label="Search" Click="SearchButtonToPage_Click"/>
</CommandBar>
</Page.BottomAppBar>
</Page>