Full Code of MahdiGhiasi/XpoMusic for AI

master a28f30186223 cached
231 files
771.4 KB
169.3k tokens
646 symbols
1 requests
Download .txt
Showing preview only (835K chars total). Download the full file or copy to clipboard to get everything.
Repository: MahdiGhiasi/XpoMusic
Branch: master
Commit: a28f30186223
Files: 231
Total size: 771.4 KB

Directory structure:
gitextract__tqfcrvl/

├── .gitattributes
├── .gitignore
├── LICENSE.md
├── Preview.md
├── README.md
├── XpoMusic/
│   ├── App.xaml
│   ├── App.xaml.cs
│   ├── Assets/
│   │   ├── ReauthorizeForV2.html
│   │   └── TileTemplates/
│   │       ├── LiveTileAlbumAndArtistArt.xml
│   │       ├── LiveTileAlbumArtOnly.xml
│   │       └── LiveTileArtistArtOnly.xml
│   ├── Classes/
│   │   ├── AppConstants.cs
│   │   ├── Cache/
│   │   │   ├── AlbumStore.cs
│   │   │   ├── ArtistStore.cs
│   │   │   ├── CacheStore.cs
│   │   │   ├── GlobalCache.cs
│   │   │   ├── PlaylistStore.cs
│   │   │   └── SongExtraInfoStore.cs
│   │   ├── Converters/
│   │   │   ├── BooleanToVisibilityConverter.cs
│   │   │   ├── LanguageToStringConverter.cs
│   │   │   ├── LiveTileDesignToStringConverter.cs
│   │   │   ├── MillisecondsToMinSecConverter.cs
│   │   │   └── ThemeToStringConverter.cs
│   │   ├── LocalConfiguration.cs
│   │   ├── Model/
│   │   │   ├── AutoPlayAction.cs
│   │   │   ├── Language.cs
│   │   │   ├── LocalStoragePlayback.cs
│   │   │   ├── LyricsViewer/
│   │   │   │   └── CurrentPlayingSongInfo.cs
│   │   │   ├── SongExtraInfo.cs
│   │   │   ├── Theme.cs
│   │   │   └── WebResourceModifications/
│   │   │       ├── WebResourceModificationRule.cs
│   │   │       ├── WebResourceModificationRuleType.cs
│   │   │       └── WebResourceStringModificationRule.cs
│   │   ├── PlayStatusTracker.cs
│   │   ├── SemaphoreQueue.cs
│   │   └── WebViewController.cs
│   ├── Controls/
│   │   ├── FlyoutContainer.xaml
│   │   ├── FlyoutContainer.xaml.cs
│   │   ├── NowPlayingView.xaml
│   │   ├── NowPlayingView.xaml.cs
│   │   ├── ProxyConfiguration.xaml
│   │   ├── ProxyConfiguration.xaml.cs
│   │   ├── SliderExtended.cs
│   │   ├── SplashScreen.xaml
│   │   ├── SplashScreen.xaml.cs
│   │   ├── TopBar.xaml
│   │   ├── TopBar.xaml.cs
│   │   ├── XpoMusicWebApp.xaml
│   │   └── XpoMusicWebApp.xaml.cs
│   ├── Flyouts/
│   │   ├── DeveloperMessageFlyout.xaml
│   │   ├── DeveloperMessageFlyout.xaml.cs
│   │   ├── IFlyout.cs
│   │   ├── SettingsFlyout.xaml
│   │   ├── SettingsFlyout.xaml.cs
│   │   ├── WhatsNewFlyout.xaml
│   │   └── WhatsNewFlyout.xaml.cs
│   ├── Helpers/
│   │   ├── AnalyticsHelper.cs
│   │   ├── AssetManager.cs
│   │   ├── ClipboardHelper.cs
│   │   ├── CropBitmap.cs
│   │   ├── DeveloperMessageHelper.cs
│   │   ├── DeviceInfoHelper.cs
│   │   ├── ImageSaveHelper.cs
│   │   ├── Integration/
│   │   │   └── LyricsViewerIntegrationHelper.cs
│   │   ├── JumpListHelper.cs
│   │   ├── KeyboardShortcutHelper.cs
│   │   ├── LanguageHelper.cs
│   │   ├── LiveTileHelper.cs
│   │   ├── MediaControlsHelper.cs
│   │   ├── PackageHelper.cs
│   │   ├── PlaybackActionHelper.cs
│   │   ├── ProxyHelper.cs
│   │   ├── SongImageProvider.cs
│   │   ├── SpotifyShareUriHelper.cs
│   │   ├── StoryboardExtensions.cs
│   │   ├── StuckResolveHelper.cs
│   │   ├── ThemeHelper.cs
│   │   ├── TileHelper.cs
│   │   ├── ToastHelper.cs
│   │   ├── UnauthorizedHelper.cs
│   │   ├── WebResourceModificationHelper.cs
│   │   └── WhatsNewHelper.cs
│   ├── InjectedAssets/
│   │   ├── clearPlaybackLocalStorage.js
│   │   ├── clickOnFacebookLogin.js
│   │   ├── gridTest.html
│   │   └── isLoggedInCheck.js
│   ├── NLog.config
│   ├── Package.appxmanifest
│   ├── Package.debug.appxmanifest
│   ├── Pages/
│   │   ├── AboutPage.xaml
│   │   ├── AboutPage.xaml.cs
│   │   ├── DonatePage.xaml
│   │   ├── DonatePage.xaml.cs
│   │   ├── HelpPage.xaml
│   │   ├── HelpPage.xaml.cs
│   │   ├── MainPage.xaml
│   │   ├── MainPage.xaml.cs
│   │   ├── SettingsPage.xaml
│   │   └── SettingsPage.xaml.cs
│   ├── Properties/
│   │   ├── AssemblyInfo.cs
│   │   └── Default.rd.xml
│   ├── Scripts/
│   │   ├── Common/
│   │   │   ├── action.ts
│   │   │   ├── browserHistory.ts
│   │   │   ├── color.ts
│   │   │   ├── dragDrop.ts
│   │   │   ├── indeterminateProgressBarHandler.ts
│   │   │   ├── initScript-common.ts
│   │   │   ├── keyboardShortcutListener.ts
│   │   │   ├── mouseWheelListener.ts
│   │   │   ├── pageTitleFinder.ts
│   │   │   ├── playbackStuckHelper.ts
│   │   │   ├── requestIntercepter.ts
│   │   │   ├── resize.ts
│   │   │   ├── startupAnimation.ts
│   │   │   ├── statusReport.ts
│   │   │   ├── themedScrollbar.ts
│   │   │   ├── tracklistExtended.ts
│   │   │   ├── uiElementModifier.ts
│   │   │   ├── uiInjector.ts
│   │   │   ├── uriHelper.ts
│   │   │   └── web-player-backup.ts
│   │   ├── DarkTheme/
│   │   │   ├── initScript-dark.ts
│   │   │   └── tsconfig.json
│   │   ├── Lib/
│   │   │   ├── focus-visible.ts
│   │   │   └── vibrant.ts
│   │   ├── LightTheme/
│   │   │   ├── initScript-light.ts
│   │   │   ├── pageOverlay.ts
│   │   │   └── tsconfig.json
│   │   └── SpotifyApi/
│   │       ├── apiBase.ts
│   │       ├── library.ts
│   │       └── player.ts
│   ├── SpotifyApi/
│   │   ├── Album.cs
│   │   ├── ApiBase.cs
│   │   ├── Artist.cs
│   │   ├── Authorization.cs
│   │   ├── Library.cs
│   │   ├── Model/
│   │   │   ├── AlbumSimplified.cs
│   │   │   ├── Artist.cs
│   │   │   ├── ArtistSimplified.cs
│   │   │   ├── CurrentlyPlayingContext.cs
│   │   │   ├── Device.cs
│   │   │   ├── Devices.cs
│   │   │   ├── FollowedArtistsResponse.cs
│   │   │   ├── Image.cs
│   │   │   ├── Paging.cs
│   │   │   ├── Playlist.cs
│   │   │   ├── SavedAlbum.cs
│   │   │   └── Track.cs
│   │   ├── Player.cs
│   │   ├── Playlist.cs
│   │   └── TokenHelper.cs
│   ├── Styles/
│   │   ├── CircleButtonStyle.xaml
│   │   ├── MinimalButtonStyle.xaml
│   │   ├── TopBarDarkButtonStyle.xaml
│   │   └── TopBarLightButtonStyle.xaml
│   ├── Stylesheets/
│   │   ├── Common/
│   │   │   ├── Animation/
│   │   │   │   ├── artistPage.scss
│   │   │   │   ├── navbarStartup.scss
│   │   │   │   ├── nowPlayingStartup.scss
│   │   │   │   ├── pageEntrance.scss
│   │   │   │   ├── pivotEntrance.scss
│   │   │   │   ├── searchPage.scss
│   │   │   │   └── tracklistEntrance.scss
│   │   │   ├── adsContainer.scss
│   │   │   ├── artistPage.scss
│   │   │   ├── backButton.scss
│   │   │   ├── common.scss
│   │   │   ├── contextMenu.scss
│   │   │   ├── fontStyle.scss
│   │   │   ├── general.scss
│   │   │   ├── navBar.scss
│   │   │   ├── nowPlayingBar.scss
│   │   │   ├── pivotTabStyle.scss
│   │   │   ├── searchPage.scss
│   │   │   ├── smallWidthWindow.scss
│   │   │   ├── themedScrollbar.scss
│   │   │   ├── trackList.scss
│   │   │   └── windowTitle.scss
│   │   ├── DarkTheme/
│   │   │   └── dark.scss
│   │   └── LightTheme/
│   │       ├── artistPage.scss
│   │       ├── contextMenu.scss
│   │       ├── general.scss
│   │       ├── light.scss
│   │       ├── navBar.scss
│   │       ├── nowPlayingBar.scss
│   │       ├── pivotTabStyle.scss
│   │       ├── podcastEpisodeDetails.scss
│   │       ├── progressBar.scss
│   │       ├── searchPage.scss
│   │       ├── trackList.scss
│   │       └── windowTitle.scss
│   ├── Themes/
│   │   └── Generic.xaml
│   ├── ViewModels/
│   │   ├── MainPageViewModel.cs
│   │   ├── NowPlayingViewModel.cs
│   │   ├── ProxyConfigurationViewModel.cs
│   │   ├── SettingsViewModel.cs
│   │   ├── TopBarViewModel.cs
│   │   └── ViewModelBase.cs
│   ├── XpoMusic.csproj
│   ├── XpotifyApi/
│   │   ├── AppConstantsApi.cs
│   │   ├── AssetUpdatesApi.cs
│   │   ├── DeveloperMessageApi.cs
│   │   └── Model/
│   │       ├── AssetPackage.cs
│   │       ├── AssetPackageInfo.cs
│   │       ├── DeveloperMessage.cs
│   │       └── DeveloperMessageCollection.cs
│   ├── compilerconfig.json
│   └── compilerconfig.json.defaults
├── XpoMusic.sln
├── XpoMusicInstaller/
│   ├── App.config
│   ├── App.xaml
│   ├── App.xaml.cs
│   ├── MainWindow.xaml
│   ├── MainWindow.xaml.cs
│   ├── Properties/
│   │   ├── AssemblyInfo.cs
│   │   ├── Resources.Designer.cs
│   │   ├── Resources.resx
│   │   ├── Settings.Designer.cs
│   │   └── Settings.settings
│   ├── Resources/
│   │   └── XpoMusic.cer
│   ├── XpoMusicInstaller.csproj
│   └── app.manifest
└── XpoMusicWebAgent/
    ├── Model/
    │   ├── ActionRequestedEventArgs.cs
    │   ├── InitFailedEventArgs.cs
    │   ├── LogMessageReceivedEventArgs.cs
    │   ├── NowPlayingData.cs
    │   ├── ProgressBarCommandEventArgs.cs
    │   ├── StatusReportReceivedEventArgs.cs
    │   └── WebAppStatus.cs
    ├── Properties/
    │   └── AssemblyInfo.cs
    ├── WebAgent.cs
    └── XpoMusicWebAgent.csproj

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitattributes
================================================
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs     diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following 
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln       merge=binary
#*.csproj    merge=binary
#*.vbproj    merge=binary
#*.vcxproj   merge=binary
#*.vcproj    merge=binary
#*.dbproj    merge=binary
#*.fsproj    merge=binary
#*.lsproj    merge=binary
#*.wixproj   merge=binary
#*.modelproj merge=binary
#*.sqlproj   merge=binary
#*.wwaproj   merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg   binary
#*.png   binary
#*.gif   binary

###############################################################################
# diff behavior for common document formats
# 
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the 
# entries below.
###############################################################################
#*.doc   diff=astextplain
#*.DOC   diff=astextplain
#*.docx  diff=astextplain
#*.DOCX  diff=astextplain
#*.dot   diff=astextplain
#*.DOT   diff=astextplain
#*.pdf   diff=astextplain
#*.PDF   diff=astextplain
#*.rtf   diff=astextplain
#*.RTF   diff=astextplain


================================================
FILE: .gitignore
================================================
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

# DNX
project.lock.json
project.fragment.lock.json
artifacts/

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
#*.pubxml
*.publishproj

# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

# Microsoft Azure Build Output
csx/
*.build.csdef

# Microsoft Azure Emulator
ecf/
rcf/

# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# GhostDoc plugin setting file
*.GhostDoc.xml

# Node.js Tools for Visual Studio
.ntvs_analysis.dat

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe
paket-files/

# FAKE - F# Make
.fake/

# JetBrains Rider
.idea/
*.sln.iml

# CodeRush
.cr/

# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc



Secrets.cs

# Generated css files
XpoMusic/InjectedAssets/style-dark.css
XpoMusic/InjectedAssets/style-dark.min.css
XpoMusic/InjectedAssets/style-light.css
XpoMusic/InjectedAssets/style-light.min.css

#Generated js files
XpoMusic/InjectedAssets/init-dark.js
XpoMusic/InjectedAssets/init-dark.js.map
XpoMusic/InjectedAssets/init-light.js
XpoMusic/InjectedAssets/init-light.js.map


================================================
FILE: LICENSE.md
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.


================================================
FILE: Preview.md
================================================
# Xpo Music Preview

Xpo Music v3 is currently in development. It utilizes [WinUI 3](https://docs.microsoft.com/en-us/windows/apps/winui/winui3/) and brings numerous improvements, notably a new rendering engine (Edge Chromium) which will result in a lot of performance and reliability improvements.


### When will this get released?

Xpo Music v3.0 will replace the current version when WinUI 3 is stable enough. Currently WinUI 3 itself is in preview, and is not stable enough for production usage. The goal is to make Xpo Music v3 ready before WinUI 3 launch.

### How can I get Xpo Music 3 Preview?

Here are the steps to get the Xpo Music Preview:

1. Make sure you have installed new Edge browser (Beta, Dev or Canary version) on your PC.

2. Install test certificate [from here](https://xpomusic.com/vNext/get/XpoMusic_3.0.1.0_Debug_Test/XpoMusic_3.0.1.0_x86_Debug.cer); make sure to install it on Local Machine, inside Trusted Root Certificate Authorities.

3. Get the app by clicking on "Get the app" button on [this page](https://xpomusic.com/vNext/get/).

### Is the preview stable enough for daily use?

The core playback functionality is working and is already more performant than v2, but some crashes are to be expected.

Also, certain Windows integration features like Live Tiles and Pin To Start are not yet available in v3 Preview.

### How can I send feedback for the preview version?

Simply open an issue in this repository, make sure to mention you're talking about the preview version, and not the release version.

### Can I contribute?

Of course! read [here](https://github.com/MahdiGhiasi/XpoMusic#contributing) for more information.


================================================
FILE: README.md
================================================
# Xpo Music (formerly Xpotify)
A modern Spotify experience for Windows 10

**Get it from [XpoMusic.com](https://xpomusic.com/)**

## Building from source

#### Requirements

You need to have these components installed in order to build Xpo Music:

* Visual Studio 2019 (or 2017)
* Windows 10 SDK 18362
* TypeScript
* [Web Compiler extension for Visual Studio](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebCompiler)

#### Configuration

Create a file named `Secrets.cs` in the `XpoMusic/` directory, and put the following content into it:

    namespace XpoMusic
    {
        internal static class Secrets
        {
            internal static readonly string SpotifyClientId = "";
            internal static readonly string SpotifyClientSecret = "";
            internal static readonly string GoogleAnalyticsTrackerId = "";
            internal static readonly string AppCenterId = "";
        }
    }

Sign up on [Spotify Developer website](https://developer.spotify.com/) and get an API key for yourself. Put Id and Secret that you get from Spotify into the `SpotifyClientId` and `SpotifyClientSecret` fields. You can leave the `GoogleAnalyticsTrackerId` empty.

Also, you will need to add `https://xpomusic.ghiasi.net/login/redirect` as the redirect URI on Spotify developer dashboard for the app entry you created. Alternatively, you can choose a different redirect URI and then modify [this line of code](https://github.com/MahdiGhiasi/Xpotify/blob/7e003b9879104a5b8b771f48475feca92155de8a/Xpotify/SpotifyApi/Authorization.cs#L18) accordingly.

## Contributing

If you want to work on a bug or an enhancement that is already present and approved in the Issues, please leave a comment under that issue stating that you're going to work on it (so we can avoid doing duplicate work).

Also, if you want to work on a new feature you have in mind for Xpo Music, please create an issue first so we can discuss it.

## License

Xpo Music is available under [GNU General Public License v3.0](https://github.com/MahdiGhiasi/Xpotify/blob/master/LICENSE.md).


================================================
FILE: XpoMusic/App.xaml
================================================
<Application
    x:Class="XpoMusic.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:XpoMusic"
    xmlns:converters="using:XpoMusic.Classes.Converters">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls"/>
                <ResourceDictionary Source="Styles/TopBarDarkButtonStyle.xaml" />
                <ResourceDictionary Source="Styles/TopBarLightButtonStyle.xaml" />
                <ResourceDictionary Source="Styles/CircleButtonStyle.xaml" />
                <ResourceDictionary Source="Styles/MinimalButtonStyle.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
        </ResourceDictionary>
    </Application.Resources>

</Application>


================================================
FILE: XpoMusic/App.xaml.cs
================================================
using XpoMusic.Helpers;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Popups;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Animation;
using Windows.UI.Xaml.Navigation;
using XpoMusic.Pages;
using Microsoft.AppCenter;
using Microsoft.AppCenter.Crashes;
using Microsoft.AppCenter.Analytics;

namespace XpoMusic
{
    /// <summary>
    /// Provides application-specific behavior to supplement the default Application class.
    /// </summary>
    sealed partial class App : Application
    {
        private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();

        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += OnSuspending;
            this.UnhandledException += App_UnhandledException;

            if (!string.IsNullOrWhiteSpace(Secrets.AppCenterId))
            {
                AppCenter.LogLevel = LogLevel.Debug;
                AppCenter.Start(Secrets.AppCenterId, typeof(Analytics), typeof(Crashes));
            }
        }

        private async void App_UnhandledException(object sender, Windows.UI.Xaml.UnhandledExceptionEventArgs e)
        {
            e.Handled = true;

            AnalyticsHelper.Log("unhandledException", e.Message, e.Exception.ToString());
            await new MessageDialog(e.Message + "\r\n---\r\n" + e.Exception.ToString(), "An exception has been occured in Xpo Music.").ShowAsync();
            logger.Error("Unhandled exception: \r\n" + e.Message + "\r\n---\r\n" + e.Exception.ToString());
        }

        /// <summary>
        /// Invoked when the application is launched normally by the end user.  Other entry points
        /// will be used such as when the application is launched to open a specific file.
        /// </summary>
        /// <param name="e">Details about the launch request and process.</param>
        protected override void OnLaunched(LaunchActivatedEventArgs e)
        {
            Frame rootFrame = InitRootFrame(e.PreviousExecutionState);

            if (e.PrelaunchActivated == false)
            {
                if (rootFrame.Content == null)
                {
                    // When the navigation stack isn't restored navigate to the first page,
                    // configuring the new page by passing required information as a navigation
                    // parameter
                    rootFrame.Navigate(typeof(MainPage), e.Arguments);
                }
                else if (!string.IsNullOrEmpty(e.Arguments))
                {
                    // If app is already opened but a secondary tile is clicked,

                    var currentMainPage = (rootFrame.Content as MainPage);
                    if (currentMainPage == null)
                    {
                        // if MainPage is not opened, navigate to MainPage with the necessary argument

                        rootFrame.Navigate(typeof(MainPage), e.Arguments);
                    }
                    else
                    {
                        // if MainPage is opened already, send a signal to it so it can navigate to the new url.

                        currentMainPage.NavigateToSecondaryTile(e.Arguments);
                    }
                }

                // Ensure the current window is active
                Window.Current.Activate();
            }
        }

        protected override void OnActivated(IActivatedEventArgs e)
        {
            Frame rootFrame = InitRootFrame(e.PreviousExecutionState);

            // Handle toast activation
            if (e.Kind == ActivationKind.ToastNotification)
            {
                var toastActivationArgs = e as ToastNotificationActivatedEventArgs;

                logger.Info($"ToastActivation with argument '{toastActivationArgs.Argument}'.");

                // Parse the query string (using QueryString.NET)
                var args = new WwwFormUrlDecoder(toastActivationArgs.Argument);

                // See what action is being requested 
                switch (args.GetFirstValueByName("action"))
                {
                    // Open the image
                    case "reopenApp":
                        if (rootFrame.Content == null)
                        {
                            rootFrame.Navigate(typeof(MainPage), null, new SuppressNavigationTransitionInfo());
                        }
                        break;
                }
            }
            else if (e.Kind == ActivationKind.Protocol)
            {
                var args = e as ProtocolActivatedEventArgs;
                var uri = args.Uri.ToString();
                var currentMainPage = (rootFrame.Content as MainPage);

                logger.Info($"ProtocolActivation with uri '{uri}'.");

                var targetPwaUri = SpotifyShareUriHelper.GetPwaUri(uri);

                if (string.IsNullOrWhiteSpace(targetPwaUri))
                {
                    // Invalid uri, will launch default page

                    if (currentMainPage == null)
                    {
                        // if MainPage is not opened, navigate to MainPage with the necessary argument
                        rootFrame.Navigate(typeof(MainPage), null, new SuppressNavigationTransitionInfo());
                    }
                }
                else
                {
                    var argument = "pageUrl=" + WebUtility.UrlEncode(targetPwaUri);

                    if (uri.ToLower().StartsWith("spotify:nl:"))
                    {
                        var autoplay = targetPwaUri.ToLower().Contains("/track/") ? "track" : "playlist";
                        argument += "&autoplay=" + autoplay;
                        argument += "&source=cortana";
                    }

                    if (currentMainPage == null)
                    {
                        // if MainPage is not opened, navigate to MainPage with the necessary argument
                        rootFrame.Navigate(typeof(MainPage), argument);
                    }
                    else
                    {
                        // if MainPage is opened already, send a signal to it so it can navigate to the new url.
                        currentMainPage.NavigateWithConfig(argument);
                    }
                }
            }

            // TODO: Handle other types of activation

            // Ensure the current window is active
            Window.Current.Activate();
        }

        private Frame InitRootFrame(ApplicationExecutionState previousExecutionState)
        {
            // Get the root frame
            Frame rootFrame = Window.Current.Content as Frame;

            // Do not repeat app initialization when the Window already has content,
            // just ensure that the window is active
            if (rootFrame == null)
            {
                // Create a Frame to act as the navigation context and navigate to the first page
                rootFrame = new Frame();

                rootFrame.NavigationFailed += OnNavigationFailed;

                if (previousExecutionState == ApplicationExecutionState.Terminated)
                {
                    //TODO: Load state from previously suspended application
                }

                // Place the frame in the current Window
                Window.Current.Content = rootFrame;
            }

            return rootFrame;
        }

        /// <summary>
        /// Invoked when Navigation to a certain page fails
        /// </summary>
        /// <param name="sender">The Frame which failed navigation</param>
        /// <param name="e">Details about the navigation failure</param>
        void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
        {
            throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
        }

        /// <summary>
        /// Invoked when application execution is being suspended.  Application state is saved
        /// without knowing whether the application will be terminated or resumed with the contents
        /// of memory still intact.
        /// </summary>
        /// <param name="sender">The source of the suspend request.</param>
        /// <param name="e">Details about the suspend request.</param>
        private void OnSuspending(object sender, SuspendingEventArgs e)
        {
            var deferral = e.SuspendingOperation.GetDeferral();
            //TODO: Save application state and stop any background activity
            deferral.Complete();
        }
    }
}


================================================
FILE: XpoMusic/Assets/ReauthorizeForV2.html
================================================
<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <style>
        html {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            -webkit-user-select: none;
        }

        body.dark {
            background: #201B1B;
            color: white;
        }

        body.light {
            background: #D1D3D3;
            color: black;
        }

        .container {
            max-width: 700px;
            padding-left: 32px;
            padding-right: 32px;
            padding-top: 72px;
            margin-left: auto;
            margin-right: auto;
        }

        h1 {
            font-size: 48px;
            font-weight: 100;
        }

            h1 img {
                height: 60px;
                width: auto;
                vertical-align: middle;
                margin-right: 8px;
                margin-top: 4px;
            }

            h1 span {
                vertical-align: middle;
            }


        h2 {
            font-weight: 400;
            margin-left: 88px;
        }

        h3 {
            font-weight: 400;
            margin-left: 88px;
        }

        .button {
            background-color: #0099ab;
            border: none;
            color: white;
            padding: 8px 34px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 20px;
            cursor: pointer;
        }

        .buttonContainer {
            margin-left: 88px;
            margin-top: 36px;
        }

        .lastParagraph {
            font-weight: 600;
            padding-top: 30px;
        }

        a:hover, a:visited, a:link, a:active {
            text-decoration: none;
        }

        body.dark a {
            color: lightskyblue;
        }

        body.light a {
            color: deepskyblue;
        }

        a {
            font-weight: 600;
        }

        .buttonContainer a {
            color: white !important;
        }

        @media (max-width: 660px) {
            h1 {
                font-size: 32px;
            }

                h1 img {
                    height: 44px;
                }

            h3 {
                margin-left: 60px;
            }

            .buttonContainer {
                margin-left: 60px;
            }
        }
    </style>
    <script>
        function load() {
            var urlParams = new URLSearchParams(window.location.search);
            var redirectUri = urlParams.get('redirectUri');
            var theme = urlParams.get('theme');

            document.getElementById("authorizeButton").setAttribute("href", redirectUri);

            if (theme !== null)
                document.body.className = theme;
        }
    </script>
</head>
<body onload="load()" class="dark">
    <div class="container">
        <h1>
            <img src="xpotify.png" />
            <span>Welcome to Xpo Music v2.0</span>
        </h1>
        <h2 style="font-weight: 600; opacity: 0.85; font-size: 22px">
            Xpotify has been renamed to Xpo Music!
        </h2>
        <h3 style="opacity: 0.7">
            This update also contains many new features and improvements:
            <ul>
                <li>Now Playing page</li>
                <li>Keyboard shortcuts <i><a href="https://xpomusic.com/keyboardShortcuts" target="_blank">read more</a></i></li>
                <li>Add or remove songs to your Liked Songs quickly on album and playlist pages</li>
                <li>Mini view redesign</li>
                <li>Change volume by mouse wheel over volume bar</li>
                <li>Appropriate device and app name in Spotify Connect</li>
                <li>Animation improvements</li>
                <li>Playback improvements</li>
                <li>Many more under the hood improvements</li>
            </ul>
        </h3>
        <h3 class="lastParagraph">
            Xpo Music requires you to authorize it again with your Spotify account, so you can have the best experience possible.
        </h3>
        <div class="buttonContainer">
            <a href="#" id="authorizeButton" class="button">Authorize Xpo Music</a>
        </div>
    </div>
</body>
</html>

================================================
FILE: XpoMusic/Assets/TileTemplates/LiveTileAlbumAndArtistArt.xml
================================================
<tile>
  <visual branding="nameAndLogo">

    <binding template='TileMedium' hint-textStacking='center'>
      <image src='{artistPhoto}' placement='background' hint-overlay='30'/>
      <group>
        <subgroup>
          <text hint-style='base' hint-align='center' hint-wrap='true'>{songName}</text>
          <text hint-style='caption' hint-align='center'>{artistName}</text>
        </subgroup>
      </group>
      <image src='{albumPhoto}' placement='peek'/>
    </binding>

    <binding template='TileWide' hint-textStacking='center' >
      <image src='{artistPhoto}' placement='background' hint-overlay='30'/>
      <group>
        <subgroup hint-textStacking='center' hint-weight='90'>
          <text hint-style='base' hint-align='center' hint-wrap='true'>{songName}</text>
          <text hint-style='caption' hint-align='center'>{artistName}</text>
          <text hint-style='captionSubtle' hint-align='center'>{albumName}</text>
        </subgroup>
      </group>
      <image src='{albumPhoto}' placement='peek'/>
    </binding>

    <binding template='TileLarge' hint-textStacking='center'>
      <image src='{artistPhoto}' placement='background' hint-overlay='30'/>
      <group>
        <subgroup hint-weight='2'/>
        <subgroup hint-weight='3'>
          <image src='{albumPhoto}' />
        </subgroup>
        <subgroup hint-weight='2'/>
      </group>
      <group>
        <subgroup hint-weight='15'/>
        <subgroup hint-weight='1'>
          <image src='ms-appx:///Assets/TransparentSquare.png' />
        </subgroup>
        <subgroup hint-weight='15'/>
      </group>
      <text hint-style='subtitle' hint-align='center' hint-wrap='true'>{songName}</text>
      <text hint-style='body' hint-align='center'>{artistName}</text>
      <text hint-style='captionSubtle' hint-align='center'>{albumName}</text>
    </binding>
    
  </visual>
</tile>

================================================
FILE: XpoMusic/Assets/TileTemplates/LiveTileAlbumArtOnly.xml
================================================
<tile>
  <visual branding="nameAndLogo">

    <binding template='TileMedium' hint-textStacking='center'>
      <group>
        <subgroup>
          <text hint-style='base' hint-align='center' hint-wrap='true'>{songName}</text>
          <text hint-style='caption' hint-align='center'>{artistName}</text>
        </subgroup>
      </group>
      <image src='{albumPhoto}' placement='peek'/>
    </binding>

    <binding template='TileWide' hint-textStacking='center' >
      <group>
        <subgroup hint-textStacking='center' hint-weight='90'>
          <text hint-style='base' hint-align='center' hint-wrap='true'>{songName}</text>
          <text hint-style='caption' hint-align='center'>{artistName}</text>
          <text hint-style='captionSubtle' hint-align='center'>{albumName}</text>
        </subgroup>
      </group>
      <image src='{albumPhoto}' placement='peek'/>
    </binding>

    <binding template='TileLarge' hint-textStacking='center'>
      <image src='{albumPhoto}' placement='background' hint-overlay='30'/>
      <text hint-style='subtitle' hint-align='center' hint-wrap='true'>{songName}</text>
      <group>
        <subgroup hint-weight='100'/>
        <subgroup hint-weight='1'>
          <image src='ms-appx:///Assets/TransparentSquare.png' />
        </subgroup>
        <subgroup hint-weight='100'/>
      </group>
      <text hint-style='body' hint-align='center'>{artistName}</text>
      <text hint-style='captionSubtle' hint-align='center'>{albumName}</text>
    </binding>

  </visual>
</tile>

================================================
FILE: XpoMusic/Assets/TileTemplates/LiveTileArtistArtOnly.xml
================================================
<tile>
  <visual branding="nameAndLogo">

    <binding template='TileMedium' hint-textStacking='center'>
      <image src='{artistPhoto}' placement='background' hint-overlay='30'/>
      <group>
        <subgroup>
          <text hint-style='base' hint-align='center' hint-wrap='true'>{songName}</text>
          <text hint-style='caption' hint-align='center'>{artistName}</text>
        </subgroup>
      </group>
    </binding>

    <binding template='TileWide' hint-textStacking='center' >
      <image src='{artistPhoto}' placement='background' hint-overlay='30'/>
      <group>
        <subgroup hint-textStacking='center' hint-weight='90'>
          <text hint-style='base' hint-align='center' hint-wrap='true'>{songName}</text>
          <text hint-style='caption' hint-align='center'>{artistName}</text>
          <text hint-style='captionSubtle' hint-align='center'>{albumName}</text>
        </subgroup>
      </group>
    </binding>

    <binding template='TileLarge' hint-textStacking='center'>
      <image src='{artistPhoto}' placement='background' hint-overlay='30'/>
      <text hint-style='subtitle' hint-align='center' hint-wrap='true'>{songName}</text>
      <group>
        <subgroup hint-weight='15'/>
        <subgroup hint-weight='1'>
          <image src='ms-appx:///Assets/TransparentSquare.png' />
        </subgroup>
        <subgroup hint-weight='15'/>
      </group>
      <text hint-style='body' hint-align='center'>{artistName}</text>
      <text hint-style='captionSubtle' hint-align='center'>{albumName}</text>
    </binding>

  </visual>
</tile>

================================================
FILE: XpoMusic/Classes/AppConstants.cs
================================================
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Windows.UI.ViewManagement;
using XpoMusic.Classes.Model.WebResourceModifications;
using XpoMusic.Helpers;
using XpoMusic.XpotifyApi;

namespace XpoMusic.Classes
{
    public class AppConstants
    {
        private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();

        private static AppConstants instance;
        public static AppConstants Instance
        {
            get
            {
                if (instance == null)
                    instance = new AppConstants();

                return instance;
            }
        }

        private AppConstants()
        {
#if DEBUG
            var initialStateJson = JsonConvert.SerializeObject(this, Formatting.Indented);
#endif

            var latestSavedAppConstantsString = LocalConfiguration.LatestAppConstants;
            try
            {
                if (!string.IsNullOrWhiteSpace(latestSavedAppConstantsString))
                {
                    JsonConvert.PopulateObject(latestSavedAppConstantsString, this);
                    this.ConstantsUpdated?.Invoke(this, new EventArgs());
                }
            }
            catch (Exception ex)
            {
                logger.Warn($"Updating AppConstants from latest saved app constants string failed. The content was: '{latestSavedAppConstantsString}'");
                logger.Error($"Updating AppConstants from latest saved app constants string failed: {ex}");
            }
        }

        public event EventHandler ConstantsUpdated;

        [JsonProperty]
        public int PlayStatePollIntervalMilliseconds { get; private set; } = 20000;

        [JsonProperty]
        public int PlayStatePollIntervalMillisecondsWithCompactOverlayOpen { get; private set; } = 15000;

        [JsonIgnore]
        public TimeSpan PlayStatePollInterval
        {
            get
            {
                if (ApplicationView.GetForCurrentView().ViewMode == ApplicationViewMode.CompactOverlay)
                    return TimeSpan.FromMilliseconds(PlayStatePollIntervalMillisecondsWithCompactOverlayOpen);

                return TimeSpan.FromMilliseconds(PlayStatePollIntervalMilliseconds);
            }
        }

        [JsonProperty]
        public bool HeartbeatEnabled { get; private set; } = true;

        [JsonProperty]
        public int HeartbeatIntervalSeconds { get; private set; } = 60 * 10;

        [JsonIgnore]
        public TimeSpan HeartbeatInterval => TimeSpan.FromSeconds(HeartbeatIntervalSeconds);

        [JsonProperty]
        public int StuckDetectSameElapsedCount { get; private set; } = 10;

        [JsonProperty]
        public int StuckDetectSameElapsedExtraCount { get; private set; } = 5;

        [JsonProperty]
        public int MaxStuckResolveTryCount { get; private set; } = 1;

        [JsonProperty]
        public WebResourceModificationRule[] ModificationRules { get; private set; } = new[]
            {
                new WebResourceModificationRule
                {
                    UriRegexMatch = @"web-player\.[a-zA-Z0-9]*\.js",
                    Type = WebResourceModificationRuleType.ModifyString,
                    StringModificationRules = new[]
                    {
                        new WebResourceStringModificationRule
                        {
                            RegexMatch = Regex.Escape(@"window.matchMedia(""(display-mode: standalone)"").addEventListener(""change"",function(t){e(t.matches)})"),
                            ReplaceTo = @"window.matchMedia(""(display-mode: standalone)"").addListener(""change"",function(t){e(t.matches)})",
                        },
                        new WebResourceStringModificationRule
                        {
                            RegexMatch = Regex.Escape(@"var t=window.matchMedia(""(display-mode: standalone)"");(t.addEventListener||t.addListener)(""change"",function(t){return e(t.matches)})"),
                            ReplaceTo = @"var t=window.matchMedia(""(display-mode: standalone)"");t.addListener(""change"",function(t){return e(t.matches)})",
                        },
                        new WebResourceStringModificationRule
                        {
                            RegexMatch = @"""Web Player \("".concat\([a-zA-Z]+.getBrowserName\(\),""\)""\)",
                            ReplaceTo = @"""Xpo Music""",
                        },
                        new WebResourceStringModificationRule
                        {
                            RegexMatch = @"\{\.\.\.r\._propagators,\.\.\.e\.propagators\}",
                            ReplaceTo = @"Object.assign({}, r._propagators, e.propagators)",
                        },
                        new WebResourceStringModificationRule
                        {
                            RegexMatch = @"\{\.\.\.p\}",
                            ReplaceTo = @"Object.assign({}, p)",
                        },
                        new WebResourceStringModificationRule
                        {
                            RegexMatch = @"\{\.\.\.f\}",
                            ReplaceTo = @"Object.assign({}, f)",
                        },
                        new WebResourceStringModificationRule
                        {
                            RegexMatch = @"globalThis",
                            ReplaceTo = @"window",
                        },
                    }
                },
                new WebResourceModificationRule
                {
                    UriRegexMatch = @"https\:\/\/accounts\.spotify\.com(\/[a-z]+)?\/status.*",
                    Type = WebResourceModificationRuleType.ModifyString,
                    StringModificationRules = new[]
                    {
                        new WebResourceStringModificationRule
                        {
                            RegexMatch = @"^(.*\s*)*$",
                            ReplaceTo = @"<script>window.location.href='https://open.spotify.com'</script><meta http-equiv='refresh' content='0;URL=https://open.spotify.com/'>",
                        },
                    }
                }
            };

        [JsonProperty]
        public bool WebPlayerBackupEnabled { get; private set; } = true;

        [JsonProperty]
        public bool XamlInvertFilterForLightThemeEnabled { get; private set; } = true;

        public static async void Update()
        {
            try
            {
                var updateString = await AppConstantsApi.GetAppConstantsString();

                if (string.IsNullOrWhiteSpace(updateString))
                {
                    logger.Info("No AppConstants update available.");
                    return;
                }

                JsonConvert.PopulateObject(updateString, Instance);
                Instance.ConstantsUpdated?.Invoke(Instance, new EventArgs());

                LocalConfiguration.LatestAppConstants = updateString;
            }
            catch (Exception ex)
            {
                logger.Warn("AppConstants.Update failed: " + ex.ToString());
                AnalyticsHelper.Log("constantsFetchException", ex.Message, ex.ToString());
            }
        }
    }
}


================================================
FILE: XpoMusic/Classes/Cache/AlbumStore.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Cache
{
    public class AlbumStore : CacheStore<SpotifyApi.Model.AlbumSimplified>
    {
        protected override Task<SpotifyApi.Model.AlbumSimplified> RetrieveItem(string key)
        {
            var album = new SpotifyApi.Album();
            return album.GetAlbum(key);
        }
    }
}


================================================
FILE: XpoMusic/Classes/Cache/ArtistStore.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Cache
{
    public class ArtistStore : CacheStore<SpotifyApi.Model.Artist>
    {
        protected override Task<SpotifyApi.Model.Artist> RetrieveItem(string key)
        {
            var artist = new SpotifyApi.Artist();
            return artist.GetArtist(key);
        }
    }
}


================================================
FILE: XpoMusic/Classes/Cache/CacheStore.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Cache
{
    public abstract class CacheStore<T>
    {
        private Dictionary<string, T> data = new Dictionary<string, T>();
        private SemaphoreQueue semaphore = new SemaphoreQueue(1, 1);

        public void Clear()
        {
            data.Clear();
        }

        protected abstract Task<T> RetrieveItem(string key);

        public async Task<T> GetItem(string key)
        {
            try
            {
                await semaphore.WaitAsync();
                if (!data.ContainsKey(key))
                {
                    data[key] = await RetrieveItem(key);
                }

                return data[key];
            }
            finally
            {
                semaphore.Release();
            }
        }
    }
}


================================================
FILE: XpoMusic/Classes/Cache/GlobalCache.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Cache
{
    public static class GlobalCache
    {
        public static ArtistStore Artist { get; } = new ArtistStore();
        public static AlbumStore Album { get; } = new AlbumStore();
        public static PlaylistStore Playlist { get; } = new PlaylistStore();
    }
}


================================================
FILE: XpoMusic/Classes/Cache/PlaylistStore.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Cache
{
    public class PlaylistStore : CacheStore<SpotifyApi.Model.Playlist>
    {
        protected override Task<SpotifyApi.Model.Playlist> RetrieveItem(string key)
        {
            var playlist = new SpotifyApi.Playlist();
            return playlist.GetPlaylist(key);
        }
    }
}


================================================
FILE: XpoMusic/Classes/Cache/SongExtraInfoStore.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XpoMusic.Classes.Model;
using XpoMusic.SpotifyApi;

namespace XpoMusic.Classes.Cache
{
    public class SongExtraInfoStore : CacheStore<SongExtraInfo>
    {
        protected override async Task<SongExtraInfo> RetrieveItem(string key)
        {
            var library = new Library();
            var info = new SongExtraInfo
            {
                SongId = key,
                IsSavedToLibrary = await library.IsTrackSaved(key),
            };
            return info;
        }
    }
}


================================================
FILE: XpoMusic/Classes/Converters/BooleanToVisibilityConverter.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;

namespace XpoMusic.Classes.Converters
{
    public class BooleanToVisibilityConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language) =>
            (bool)value ^ (parameter as string ?? string.Empty).Equals("Reverse") ?
                Visibility.Visible : Visibility.Collapsed;

        public object ConvertBack(object value, Type targetType, object parameter, string language) =>
            (Visibility)value == Visibility.Visible ^ (parameter as string ?? string.Empty).Equals("Reverse");

    }
}


================================================
FILE: XpoMusic/Classes/Converters/LanguageToStringConverter.cs
================================================
using XpoMusic.Classes.Model;
using XpoMusic.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;

namespace XpoMusic.Classes.Converters
{
    public class LanguageToStringConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            var lang = (Language)value;

            return LanguageHelper.GetLanguageName(lang);
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}


================================================
FILE: XpoMusic/Classes/Converters/LiveTileDesignToStringConverter.cs
================================================
using XpoMusic.Classes.Model;
using XpoMusic.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;
using static XpoMusic.Helpers.LiveTileHelper;

namespace XpoMusic.Classes.Converters
{
    public class LiveTileDesignToStringConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            var design = (LiveTileDesign)value;

            switch (design)
            {
                case LiveTileDesign.AlbumArtOnly:
                    return "Album art only";
                case LiveTileDesign.ArtistArtOnly:
                    return "Artist art only";
                case LiveTileDesign.Disabled:
                    return "Disabled";
                case LiveTileDesign.AlbumAndArtistArt:
                    return "Album art and artist art";
                default:
                    return "???";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}


================================================
FILE: XpoMusic/Classes/Converters/MillisecondsToMinSecConverter.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;

namespace XpoMusic.Classes.Converters
{
    public class MillisecondsToMinSecConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            var ms = (double)value;
            var t = TimeSpan.FromMilliseconds(ms);

            return $"{(int)Math.Floor(t.TotalMinutes)}:{t.Seconds.ToString("00")}";
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}


================================================
FILE: XpoMusic/Classes/Converters/ThemeToStringConverter.cs
================================================
using XpoMusic.Classes.Model;
using XpoMusic.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;

namespace XpoMusic.Classes.Converters
{
    public class ThemeToStringConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            var lang = (Theme)value;

            return ThemeHelper.GetThemeName(lang);
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}


================================================
FILE: XpoMusic/Classes/LocalConfiguration.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.Storage;
using XpoMusic.Classes.Model;
using XpoMusic.Helpers;
using static XpoMusic.Helpers.LiveTileHelper;
using static XpoMusic.Helpers.ProxyHelper;

namespace XpoMusic.Classes
{
    public static class LocalConfiguration
    {
        private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();

        private static readonly Size compactOverlayDefaultSize = new Size(300, 300);

        public static Size CompactOverlaySize
        {
            get
            {
                var config = GetConfiguration("CompactOverlaySize");

                if (string.IsNullOrEmpty(config))
                    return compactOverlayDefaultSize;

                try
                {
                    var configParts = config.Split(';');
                    return new Size(double.Parse(configParts[0]), double.Parse(configParts[1]));
                }
                catch
                {
                    return compactOverlayDefaultSize;
                }
            }

            set
            {
                SetConfiguration("CompactOverlaySize", $"{value.Width};{value.Height}");
            }
        }

        public static Size WindowMinSize => new Size(500, 500);

        public static bool IsLoggedInByFacebook
        {
            get
            {
                return GetConfiguration("IsLoggedInByFacebook") == "1";
            }
            set
            {
                SetConfiguration("IsLoggedInByFacebook", value ? "1" : "0");
            }
        }

        public static bool IsCustomProxyEnabled
        {
            get
            {
                return GetConfiguration("IsCustomProxyEnabled") == "1";
            }
            set
            {
                SetConfiguration("IsCustomProxyEnabled", value ? "1" : "0");
            }
        }

        public static string CustomProxyAddress
        {
            get
            {
                return GetConfiguration("CustomProxyAddress");
            }
            set
            {
                SetConfiguration("CustomProxyAddress", value);
            }
        }

        public static string CustomProxyPort
        {
            get
            {
                return GetConfiguration("CustomProxyPort");
            }
            set
            {
                SetConfiguration("CustomProxyPort", value);
            }
        }

        public static ProxyType CustomProxyType
        {
            get
            {
                if (!int.TryParse(GetConfiguration("CustomProxyType"), out int type))
                    type = (int)ProxyType.HttpHttps;

                return (ProxyType)type;
            }
            set
            {
                SetConfiguration("CustomProxyType", ((int)value).ToString());
            }
        }

        public static Language Language
        {
            get
            {
                if (!int.TryParse(GetConfiguration("Language"), out int type))
                    type = (int)Language.Default;

                return (Language)type;
            }
            set
            {
                SetConfiguration("Language", ((int)value).ToString());
            }
        }

        public static Theme Theme
        {
            get
            {
                if (!int.TryParse(GetConfiguration("Theme"), out int type))
                    type = (int)Theme.Dark;

                return (Theme)type;
            }
            set
            {
                SetConfiguration("Theme", ((int)value).ToString());
            }
        }

        public static LiveTileDesign LiveTileDesign
        {
            get
            {
                if (!int.TryParse(GetConfiguration("LiveTileDesign"), out int type))
                    type = (int)LiveTileDesign.AlbumAndArtistArt;

                return (LiveTileDesign)type;
            }
            set
            {
                SetConfiguration("LiveTileDesign", ((int)value).ToString());
            }
        }


        public static string[] DeveloperMessageShownIds
        {
            get
            {
                try
                {
                    var ids = GetConfiguration("DeveloperMessageShownIds");

                    if (string.IsNullOrEmpty(ids))
                        return new string[] { };

                    return ids.Split(';');
                }
                catch (Exception ex)
                {
                    logger.Warn("DeveloperMessageShownIds failed: " + ex.ToString());
                    AnalyticsHelper.Log("exception-DeveloperMessageShownIds", ex.Message, ex.ToString());
                    return new string[] { };
                }
            }
        }

        public static void AddIdToDeveloperMessageShownIds(string id)
        {
            var ids = DeveloperMessageShownIds.ToList();
            ids.Add(id);

            SetConfiguration("DeveloperMessageShownIds", string.Join(';', ids.ToArray()));
        }

        public static int LatestAssetUpdateVersion
        {
            get
            {
                if (int.TryParse(GetConfiguration("LatestAssetUpdateVersion"), out int latestVersion))
                    return latestVersion;

                return 0;
            }
            set
            {
                SetConfiguration("LatestAssetUpdateVersion", value.ToString());
            }
        }

        public static Version LatestAppVersionOnAssetUpdate
        {
            get
            {
                if (Version.TryParse(GetConfiguration("LatestAppVersionOnAssetUpdate"), out Version latestVersion))
                    return latestVersion;

                return PackageHelper.GetAppVersion();
            }
            set
            {
                SetConfiguration("LatestAppVersionOnAssetUpdate", value.ToString());
            }
        }

        public static bool OpenInMiniViewByCortana
        {
            get
            {
                var config = GetConfiguration("OpenInMiniViewByCortana");
                if (config == null)
                    return true;
                return config == "1";
            }
            set
            {
                SetConfiguration("OpenInMiniViewByCortana", value ? "1" : "0");
            }
        }

        public static bool NowPlayingShowArtistArt
        {
            get
            {
                var config = GetConfiguration("NowPlayingShowArtistArt");
                if (config == null)
                    return true;
                return config == "1";
            }
            set
            {
                SetConfiguration("NowPlayingShowArtistArt", value ? "1" : "0");
            }
        }

        public static bool MiniViewShowArtistArt
        {
            get
            {
                var config = GetConfiguration("MiniViewShowArtistArt");
                if (config == null)
                    return false;
                return config == "1";
            }
            set
            {
                SetConfiguration("MiniViewShowArtistArt", value ? "1" : "0");
            }
        }

        public static int ApiTokenVersion
        {
            get
            {
                var config = GetConfiguration("ApiTokenVersion");
                if (config == null)
                    return 1;
                if (!int.TryParse(config, out int apiTokenVersion))
                    return 1;
                return apiTokenVersion;
            }
            set
            {
                SetConfiguration("ApiTokenVersion", value.ToString());
            }
        }

        public static string LatestAppConstants
        {
            get
            {
                return GetConfiguration("LatestAppConstants");
            }
            set
            {
                SetConfiguration("LatestAppConstants", value.ToString());
            }
        }

        private static string GetConfiguration(string key)
        {
            var completeKey = "LocalConfiguration_" + key;
            if (!ApplicationData.Current.LocalSettings.Values.ContainsKey(completeKey))
                return null;

            return ApplicationData.Current.LocalSettings.Values[completeKey].ToString();
        }

        private static void SetConfiguration(string key, string value)
        {
            var completeKey = "LocalConfiguration_" + key;
            ApplicationData.Current.LocalSettings.Values[completeKey] = value;
        }
    }
}


================================================
FILE: XpoMusic/Classes/Model/AutoPlayAction.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Model
{
    public enum AutoPlayAction
    {
        None,
        Track,
        Playlist,
    }
}


================================================
FILE: XpoMusic/Classes/Model/Language.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Model
{
    public enum Language
    {
        Default = 0,
        English = 1,
        Arabic = 2,
        Hungarian = 4,
        Czech = 5,
        German = 6,
        Spanish = 7,
        Finnish = 8,
        French = 9,
        CanadianFrench = 10,
        Greek = 11,
        Indonesian = 12,
        Italian = 13,
        Japanese = 14,
        Malay = 15,
        Dutch = 16,
        Polish = 17,
        BrazillianPortuguese = 18,
        Swedish = 19,
        Thai = 20,
        Turkish = 21,
        Vietnamese = 22,
    }
}


================================================
FILE: XpoMusic/Classes/Model/LocalStoragePlayback.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Model
{
    public class LocalStoragePlayback
    {
        public double volume;
    }
}


================================================
FILE: XpoMusic/Classes/Model/LyricsViewer/CurrentPlayingSongInfo.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Model.LyricsViewer
{
    public class CurrentPlayingSongInfo
    {
        public string SongName { get; set; }
        public string ArtistName { get; set; }
        public string AlbumName { get; set; }
        public string AlbumArtUri { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is CurrentPlayingSongInfo cpsi)
            {
                return SongName == cpsi.SongName
                    && ArtistName == cpsi.ArtistName
                    && AlbumArtUri == cpsi.AlbumArtUri
                    && AlbumName == cpsi.AlbumName;
            }

            return false;
        }

        public override int GetHashCode()
        {
            var hashCode = 2090074316;
            hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(SongName);
            hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(ArtistName);
            hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(AlbumName);
            hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(AlbumArtUri);
            return hashCode;
        }
    }
}


================================================
FILE: XpoMusic/Classes/Model/SongExtraInfo.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Model
{
    public class SongExtraInfo
    {
        public string SongId { get; set; }
        public bool IsSavedToLibrary { get; set; }
    }
}


================================================
FILE: XpoMusic/Classes/Model/Theme.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Model
{
    public enum Theme
    {
        Dark,
        Light,
        System,
    }
}


================================================
FILE: XpoMusic/Classes/Model/WebResourceModifications/WebResourceModificationRule.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Model.WebResourceModifications
{
    public class WebResourceModificationRule
    {
        public string UriRegexMatch { get; set; }
        public WebResourceModificationRuleType Type { get; set; }
        public string AlternativeFileUri { get; set; }
        public WebResourceStringModificationRule[] StringModificationRules { get; set; }

        public bool Match(string requestUri) => Regex.IsMatch(requestUri, UriRegexMatch);
    }
}


================================================
FILE: XpoMusic/Classes/Model/WebResourceModifications/WebResourceModificationRuleType.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Model.WebResourceModifications
{
    public enum WebResourceModificationRuleType
    {
        ReplaceWholeFile = 1,
        ModifyString = 2,
    }
}


================================================
FILE: XpoMusic/Classes/Model/WebResourceModifications/WebResourceStringModificationRule.cs
================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace XpoMusic.Classes.Model.WebResourceModifications
{
    public class WebResourceStringModificationRule
    {
        public string RegexMatch { get; set; }
        public string ReplaceTo { get; set; }

        public string Apply(string responseString) => Regex.Replace(responseString, RegexMatch, ReplaceTo);
    }
}

================================================
FILE: XpoMusic/Classes/PlayStatusTracker.cs
================================================
using XpoMusic.Helpers;
using XpoMusic.SpotifyApi;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Media;
using Windows.Storage.Streams;
using Windows.UI.Xaml;
using Newtonsoft.Json;
using XpoMusic.Classes.Model;
using XpoMusic.Classes.Cache;
using XpoMusicWebAgent.Model;

namespace XpoMusic.Classes
{
    public static class PlayStatusTracker
    {
        private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();

        static DispatcherTimer timer;
        static DateTime lastStatusFetch = DateTime.MinValue;

        public static bool IsLocalStatusTrackingOperational { get; private set; } = false;

        public static class LastPlayStatus
        {
            public static string ArtistName { get; internal set; }
            public static string ArtistId { get; internal set; }
            public static string AlbumName { get; internal set; }
            public static string AlbumId { get; internal set; }
            public static string SongName { get; internal set; }
            public static string SongId { get; internal set; }
            public static int SongLengthMilliseconds { get; internal set; }
            public static bool IsPlaying { get; internal set; }
            public static double Volume { get; internal set; }
            public static bool IsNextTrackAvailable { get; internal set; }
            public static bool IsPrevTrackAvailable { get; internal set; }

            private static int progressedMilliseconds;
            private static DateTime progressedMillisecondsSetMoment;
            public static int ProgressedMilliseconds
            {
                get
                {
                    if (!IsPlaying)
                        return Math.Min(progressedMilliseconds, SongLengthMilliseconds);

                    return Math.Min(SongLengthMilliseconds, (int)(progressedMilliseconds 
                        + (DateTime.UtcNow - progressedMillisecondsSetMoment).TotalMilliseconds));
                }
                set
                {
                    progressedMilliseconds = value;
                    progressedMillisecondsSetMoment = DateTime.UtcNow;
                }
            }

            public static event EventHandler Updated;

            internal static void InvokeUpdated()
            {
                Updated?.Invoke(null, null);
            }
        }

        static PlayStatusTracker()
        {
            timer = new DispatcherTimer
            {
                Interval = TimeSpan.FromSeconds(1),
            };
            timer.Tick += Timer_Tick;
        }

        public static void SeekPlayback(double percentage)
        {
            LastPlayStatus.ProgressedMilliseconds = (int)(LastPlayStatus.SongLengthMilliseconds * percentage);
            LastPlayStatus.InvokeUpdated();
        }

        public static void SeekVolume(double percentage)
        {
            LastPlayStatus.Volume = percentage;
            LastPlayStatus.InvokeUpdated();
        }

        private static async void Timer_Tick(object sender, object e)
        {
            // Ignore if not logged in
            if (!TokenHelper.HasTokens())
                return;

            if ((DateTime.UtcNow - lastStatusFetch) > AppConstants.Instance.PlayStatePollInterval)
            {
                IsLocalStatusTrackingOperational = false;
                await RefreshPlayStatus();
            }
        }

        public static void StartRegularRefresh()
        {
            if (!timer.IsEnabled)
                timer.Start();
        }

        private static int timesFingerprintEmpty = 0;
        private static string lastLocalFingerprint = "";
        public static async void LocalPlaybackDataReceived(NowPlayingData data)
        {
            try
            {
                if (string.IsNullOrWhiteSpace(data.TrackFingerprint))
                {
                    if (timesFingerprintEmpty == 20)
                    {
                        logger.Warn($"LocalPlaybackDataError #{timesFingerprintEmpty}");
                        AnalyticsHelper.Log("localPlaybackDataError", "fingerprintInvalid", JsonConvert.SerializeObject(data));
                        timesFingerprintEmpty++;
                    }
                    else if (timesFingerprintEmpty < 20)
                    {
                        timesFingerprintEmpty++;
                        logger.Info($"LocalPlaybackDataError #{timesFingerprintEmpty}");
                    }
                }

                if (!data.Success
                    && !string.IsNullOrWhiteSpace(data.TrackFingerprint)
                    && data.TrackFingerprint != lastLocalFingerprint)
                {
                    logger.Info("LocalPlaybackDataReceived, success = false, fingerprint changed to " + data.TrackFingerprint);
                    await RefreshPlayStatus();
                    AnalyticsHelper.Log("localPlaybackDataError", "invalid", JsonConvert.SerializeObject(data));
                }
                else if (data.Success)
                {
                    bool changed = (LastPlayStatus.SongId != data.TrackId
                        || LastPlayStatus.Volume != data.Volume 
                        || LastPlayStatus.IsNextTrackAvailable != data.IsNextTrackAvailable
                        || LastPlayStatus.IsPrevTrackAvailable != data.IsPrevTrackAvailable);

                    LastPlayStatus.AlbumId = data.AlbumId;
                    LastPlayStatus.ArtistId = data.ArtistId;
                    LastPlayStatus.ArtistName = data.ArtistName;
                    LastPlayStatus.ProgressedMilliseconds = data.ElapsedTime;
                    LastPlayStatus.SongLengthMilliseconds = data.TotalTime;
                    LastPlayStatus.SongId = data.TrackId;
                    LastPlayStatus.SongName = data.TrackName;
                    LastPlayStatus.IsPlaying = data.IsPlaying;
                    LastPlayStatus.Volume = data.Volume;
                    LastPlayStatus.IsNextTrackAvailable = data.IsNextTrackAvailable;
                    LastPlayStatus.IsPrevTrackAvailable = data.IsPrevTrackAvailable;

                    try
                    {
                        var album = await GlobalCache.Album.GetItem(data.AlbumId);
                        LastPlayStatus.AlbumName = album.name;
                    }
                    catch (Exception ex)
                    {
                        logger.Info("LocalPlaybackDataReceived:GetAlbumInfo failed: " + ex.ToString());
                    }

                    if (changed)
                    {
                        LastPlayStatus.InvokeUpdated();
                        logger.Info("LocalPlaybackDataReceived and changed = true for " + data.TrackFingerprint);
                    }

                    lastStatusFetch = DateTime.UtcNow;
                    IsLocalStatusTrackingOperational = true;
                }

                lastLocalFingerprint = data.TrackFingerprint;
            }
            catch (Exception ex)
            {
                logger.Info("LocalPlaybackDataReceived failed: " + ex.ToString());
            }
        }

        public static async Task RefreshPlayStatus()
        {
            try
            {
                // Don't ask API if local status tracking is working correctly.
                if (IsLocalStatusTrackingOperational)
                    return;

                lastStatusFetch = DateTime.UtcNow;

                var player = new Player();
                var current = await player.GetCurrentlyPlaying();

                //if (current == null)
                //{
                //    LastPlayStatus.AlbumId = "";
                //    LastPlayStatus.AlbumName = "";
                //    LastPlayStatus.ArtistId = "";
                //    LastPlayStatus.ArtistName = "";
                //    LastPlayStatus.ProgressedMilliseconds = 0;
                //    LastPlayStatus.SongLengthMilliseconds = 0;
                //    LastPlayStatus.SongId = "";
                //    LastPlayStatus.SongName = "";
                //    LastPlayStatus.IsPlaying = false;
                //    LastPlayStatus.Volume = 0.0;
                //
                //    LastPlayStatus.InvokeUpdated();
                //}
                //else
                if (current != null)
                {
                    LastPlayStatus.AlbumId = current.item.album.id;
                    LastPlayStatus.AlbumName = current.item.album.name;
                    LastPlayStatus.ArtistId = current.item.artists.FirstOrDefault().id ?? "";
                    LastPlayStatus.ArtistName = current.item.artists.FirstOrDefault().name ?? "Unknown Artist";
                    LastPlayStatus.ProgressedMilliseconds = current.progress_ms;
                    LastPlayStatus.SongLengthMilliseconds = current.item.duration_ms;
                    LastPlayStatus.SongId = current.item.id;
                    LastPlayStatus.SongName = current.item.name;
                    LastPlayStatus.IsPlaying = current.is_playing;
                    LastPlayStatus.Volume = (current.device.volume_percent ?? 50) / 100.0;
                    LastPlayStatus.IsNextTrackAvailable = true;
                    LastPlayStatus.IsPrevTrackAvailable = true;

                    LastPlayStatus.InvokeUpdated();
                }
            }
            catch (Exception ex)
            {
                logger.Info("RefreshPlayStatus failed: " + ex.ToString());
            }
        }
    }
}


================================================
FILE: XpoMusic/Classes/SemaphoreQueue.cs
================================================
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace XpoMusic.Classes
{
    public class SemaphoreQueue
    {
        private SemaphoreSlim semaphore;
        private ConcurrentQueue<TaskCompletionSource<bool>> queue = new ConcurrentQueue<TaskCompletionSource<bool>>();

        public int WaitingCount => queue.Count;

        public SemaphoreQueue(int initialCount)
        {
            semaphore = new SemaphoreSlim(initialCount);
        }

        public SemaphoreQueue(int initialCount, int maxCount)
        {
            semaphore = new SemaphoreSlim(initialCount, maxCount);
        }

        public void Wait()
        {
            WaitAsync().Wait();
        }

        public Task WaitAsync()
        {
            var tcs = new TaskCompletionSource<bool>();
            queue.Enqueue(tcs);
            semaphore.WaitAsync().ContinueWith(t =>
            {
                TaskCompletionSource<bool> popped;
                if (queue.TryDequeue(out popped))
                    popped.SetResult(true);
            });
            return tcs.Task;
        }

        public void Release()
        {
            semaphore.Release();
        }
    }

}


================================================
FILE: XpoMusic/Classes/WebViewController.cs
================================================
using XpoMusic.Classes;
using XpoMusic.Classes.Model;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Controls;
using Windows.Web.Http;
using Windows.Web.Http.Filters;
using Newtonsoft.Json;
using Windows.UI.Popups;
using XpoMusic.SpotifyApi;
using Windows.Networking.Connectivity;

namespace XpoMusic.Helpers
{
    public class WebViewController
    {
        private NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();

        public const string SpotifyPwaUrlBeginsWith = "https://open.spotify.com";

        public string LastInitErrors { get; internal set; } = "";

        private WebView mainWebView;

        public WebViewController(WebView webView)
        {
            mainWebView = webView;
        }

        public void Navigate(Uri targetUri)
        {
            Navigate(targetUri, LocalConfiguration.Language); 
        }

        private void Navigate(Uri targetUri, Language language)
        {
            var request = new HttpRequestMessage(HttpMethod.Get, targetUri);

            var languageString = LanguageHelper.GetHeaderLanguageString(language);
            if (!string.IsNullOrWhiteSpace(languageString))
                request.Headers.Add("Accept-Language", languageString);

            mainWebView.NavigateWithHttpRequestMessage(request);
        }

        /// <returns>true if just injected the script, false if it was already injected.</returns>
        public async Task<bool> InjectInitScript(bool lightTheme)
        {
            var checkIfInjected = "((document.getElementsByTagName('body')[0].getAttribute('data-scriptinjection') == null) ? '0' : '1');";
            var injected = await mainWebView.InvokeScriptAsync("eval", new string[] { checkIfInjected });

            if (injected != "1")
            {
                var script = await AssetManager.LoadAssetString(lightTheme ? "init-light.js" : "init-dark.js");
                var styleCss = await AssetManager.LoadAssetString(lightTheme ? "style-light.min.css" : "style-dark.min.css");

                var tokens = TokenHelper.GetTokens();

                script = script
                    .Replace("{{XPOTIFYCSSBASE64CONTENT}}", Convert.ToBase64String(Encoding.UTF8.GetBytes(styleCss)))
                    .Replace("{{XPOTIFYISPROVERSION}}", PackageHelper.IsProVersion ? "1" : "0")
                    .Replace("{{SPOTIFYACCESSTOKEN}}", tokens.AccessToken)
                    .Replace("{{DEVICENAME}}", DeviceInfoHelper.GetDeviceName());

                try
                {
                    await mainWebView.InvokeScriptAsync("eval", new string[] { script });
                }
                catch (Exception ex)
                {
                    logger.Warn("InjectInitScript failed: " + ex.ToString());
                    AnalyticsHelper.Log("injectException", ex.Message, $"{LastInitErrors}\n{ex}");

                    if (ex.ToString().Contains("80020101"))
                    {
                        MessageDialog md = new MessageDialog(
                            content: $"Error details:\r\n\r\n{LastInitErrors}\r\n{ex}", 
                            title: "There was a problem while initializing Xpo Music. Some features might not work properly.");
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
                        md.ShowAsync();
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
                    }
                    else
                    {
                        MessageDialog md = new MessageDialog(
                            content: ex.ToString(),
                            title: "Xpo Music initialization failed. Some features might not work properly.");
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
                        md.ShowAsync();
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
                    }
                }

                return true;
            }

            return false;
        }

        public async Task<bool> CheckLoggedIn()
        {
            var script = await AssetManager.LoadAssetString("isLoggedInCheck.js");
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });

            return (result != "0");
        }

        public async Task<bool> TryPushingFacebookLoginButton()
        {
            var script = await AssetManager.LoadAssetString("clickOnFacebookLogin.js");
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });

            return (result == "1");
        }

        public async Task EnableNowPlaying()
        {
            var script = "window.XpoMusicScript.Common.Action.enableNowPlaying();";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });
        }

        public async Task<bool> GoBackIfPossible()
        {
            var script = "window.XpoMusicScript.Common.Action.goBackIfPossible();";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });

            return (result == "1");
        }

        public void ClearCookies()
        {
            // WebView.ClearTemporaryWebDataAsync() causes cookies (that will be added later) to not 
            // be saved upon app exit during current session. It seems to be a bug. 
            // So we can't use that to clear cookies.

            ClearCookies(new Uri("https://www.spotify.com"));
            ClearCookies(new Uri("https://spotify.com"));
            ClearCookies(new Uri("https://accounts.spotify.com"));
            ClearCookies(new Uri("https://open.spotify.com"));
            ClearCookies(new Uri("https://facebook.com"));
            ClearCookies(new Uri("https://www.facebook.com"));
        }

        private void ClearCookies(Uri uri)
        {
            HttpBaseProtocolFilter baseFilter = new HttpBaseProtocolFilter();
            foreach (var cookie in baseFilter.CookieManager.GetCookies(uri))
            {
                baseFilter.CookieManager.DeleteCookie(cookie);
            }
        }

        public async Task<string> GetPageUrl()
        {
            return await mainWebView.InvokeScriptAsync("eval", new string[] { "window.location.href" });
        }

        public async Task<string> GetPageTitle()
        {
            var findPageTitleScript = "window.XpoMusicScript.Common.PageTitleFinder.getTitle();";
            var pageTitle = await mainWebView.InvokeScriptAsync("eval", new string[] { findPageTitleScript });

            return pageTitle;
        }

        public async Task NavigateToSpotifyUrl(string url)
        {
            var currentUrl = await mainWebView.InvokeScriptAsync("eval", new String[] { "document.location.href;" });

            if (currentUrl.ToLower().StartsWith(SpotifyPwaUrlBeginsWith.ToLower()))
            {
                var script = $"window.XpoMusicScript.Common.Action.navigateToPage('{url.Replace("'", "\\'")}');";
                await mainWebView.InvokeScriptAsync("eval", new string[] { script });
            }
            else
            {
                Navigate(new Uri(url));
            }
        }

        internal async Task AutoPlay(AutoPlayAction action)
        {
            string script;
            if (action == AutoPlayAction.Track)
                script = "window.XpoMusicScript.Common.Action.autoPlayTrack();";
            else
                script = "window.XpoMusicScript.Common.Action.autoPlayPlaylist();";
            
            var currentPlaying = await mainWebView.InvokeScriptAsync("eval", new string[] { script });
        }

        public async Task<string> ClearPlaybackLocalStorage()
        {
            var script = await AssetManager.LoadAssetString("clearPlaybackLocalStorage.js");
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });

            return result;
        }

        public async Task<bool> PlayPause()
        {
            var script = "window.XpoMusicScript.Common.Action.playPause();";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });

            return (result == "1");
        }

        public async Task<bool> Play()
        {
            var script = "window.XpoMusicScript.Common.Action.play();";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });

            return (result == "1");
        }

        public async Task<bool> Pause()
        {
            var script = "window.XpoMusicScript.Common.Action.pause();";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });

            return (result == "1");
        }

        public async Task<bool> NextTrack()
        {
            var script = "window.XpoMusicScript.Common.Action.nextTrack();";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });

            return (result == "1");
        }

        public async Task<bool> PreviousTrack(bool canGoToBeginningOfCurrentSong = true)
        {
            string script;
            if (canGoToBeginningOfCurrentSong)
                script = "window.XpoMusicScript.Common.Action.prevTrack();";
            else
                script = "window.XpoMusicScript.Common.Action.prevTrackForce();";

            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });

            return (result == "1");
        }

        internal async Task<bool> IsPlayingOnThisApp()
        {
            var script = "window.XpoMusicScript.Common.Action.isPlayingOnThisApp();";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });

            return (result == "1");
        }

        internal async Task SeekPlayback(double percentage)
        {
            var script = $"window.XpoMusicScript.Common.Action.seekPlayback({percentage});";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });
        }

        internal async Task SeekVolume(double percentage)
        {
            var script = $"window.XpoMusicScript.Common.Action.seekVolume({percentage});";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });
        }

        internal async Task<bool> OnKeyDown(int charCode, bool shiftPressed, bool ctrlPressed, bool altPressed)
        {
            var script = $"window.XpoMusicScript.Common.KeyboardShortcutListener.keyDownExternalCall" +
                $"({charCode}, {shiftPressed.ToString().ToLower()}, {ctrlPressed.ToString().ToLower()}, " +
                $"{altPressed.ToString().ToLower()});";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });
            logger.Info(result);
            return result == "1";
        }

        internal async Task TryResolvePlaybackStartStuck()
        {
            var script = $"window.XpoMusicScript.Common.PlaybackStuckHelper.tryResolveStart();";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });
        }

        internal async Task TryResolvePlaybackMiddleStuck()
        {
            var script = $"window.XpoMusicScript.Common.PlaybackStuckHelper.tryResolveMiddle();";
            var result = await mainWebView.InvokeScriptAsync("eval", new string[] { script });
        }
    }
}


================================================
FILE: XpoMusic/Controls/FlyoutContainer.xaml
================================================
<UserControl
    x:Class="XpoMusic.Controls.FlyoutContainer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:XpoMusic.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:flyouts="using:XpoMusic.Flyouts"
    xmlns:interactivity="using:Microsoft.Xaml.Interactivity"  
    xmlns:behaviors="using:Microsoft.Toolkit.Uwp.UI.Animations.Behaviors" 
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">

    <Grid x:Name="overlay" Background="#00FFFFFF" Visibility="Collapsed">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup>
                <VisualState x:Name="OverlayClosedVisualState">
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetName="overlay" 
                                 Storyboard.TargetProperty="(UIElement.Opacity)"
                                 Duration="0:0:0.25" From="1" To="0">
                            <DoubleAnimation.EasingFunction>
                                <ExponentialEase EasingMode="EaseOut" />
                            </DoubleAnimation.EasingFunction>
                        </DoubleAnimation>
                        <DoubleAnimation Storyboard.TargetName="flyoutContainer" 
                                 Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"
                                 Duration="0:0:0.25" From="0" To="-50">
                            <DoubleAnimation.EasingFunction>
                                <ExponentialEase EasingMode="EaseOut" />
                            </DoubleAnimation.EasingFunction>
                        </DoubleAnimation>

                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="overlay"
                                                       Storyboard.TargetProperty="Visibility">
                            <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="Collapsed" />
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="OverlayVisibleVisualState">
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetName="overlay" 
                                         Storyboard.TargetProperty="(UIElement.Opacity)"
                                         Duration="0:0:0.3" From="0" To="1">
                            <DoubleAnimation.EasingFunction>
                                <ExponentialEase EasingMode="EaseOut" />
                            </DoubleAnimation.EasingFunction>
                        </DoubleAnimation>
                        <DoubleAnimation Storyboard.TargetName="flyoutContainer" 
                                         Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"
                                         Duration="0:0:0.3" From="50" To="0">
                            <DoubleAnimation.EasingFunction>
                                <ExponentialEase EasingMode="EaseOut" />
                            </DoubleAnimation.EasingFunction>
                        </DoubleAnimation>

                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="overlay"
                                                       Storyboard.TargetProperty="Visibility">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        
        <Grid>
            <interactivity:Interaction.Behaviors>
                <behaviors:Blur x:Name="blurBehavior" 
                                Value="24" 
                                Duration="0" 
                                Delay="0" 
                                AutomaticallyStart="True"/>
            </interactivity:Interaction.Behaviors>
        </Grid>
        <Grid x:Name="flyoutContainer" Margin="0,40,0,40">
            <Grid.RenderTransform>
                <TranslateTransform />
            </Grid.RenderTransform>
            <flyouts:DeveloperMessageFlyout x:Name="developerMessageFlyout"
                                            Visibility="Collapsed"
                                            Width="400"
                                            MaxHeight="300"
                                            FlyoutCloseRequest="DeveloperMessageFlyout_FlyoutCloseRequest" />
            <flyouts:WhatsNewFlyout x:Name="whatsNewFlyout"
                                    Visibility="Collapsed"
                                    Width="400"
                                    MaxHeight="400"
                                    FlyoutCloseRequest="WhatsNewFlyout_FlyoutCloseRequest" />
            <flyouts:SettingsFlyout x:Name="settingsFlyout"
                                    Visibility="Collapsed"
                                    MaxHeight="470"
                                    FlyoutCloseRequest="SettingsFlyout_FlyoutCloseRequest" />
        </Grid>
    </Grid>
</UserControl>


================================================
FILE: XpoMusic/Controls/FlyoutContainer.xaml.cs
================================================
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using XpoMusic.Helpers;
using XpoMusic.XpotifyApi.Model;

namespace XpoMusic.Controls
{
    public sealed partial class FlyoutContainer : UserControl
    {
        public FlyoutContainer()
        {
            this.InitializeComponent();
        }

        public void OpenSettings()
        {
            OpenSettings(0);
        }

        public void OpenHelp()
        {
            OpenSettings(1);
        }

        public void OpenAbout()
        {
            OpenSettings(2);
        }

        public void OpenDonate()
        {
            OpenSettings(3);
        }

        private void OpenSettings(int tabId)
        {
            settingsFlyout.InitFlyout(tabId);
            settingsFlyout.Visibility = Visibility.Visible;
            VisualStateManager.GoToState(this, nameof(OverlayVisibleVisualState), false);
        }

        public async void OpenWhatsNew()
        {
            await Task.Delay(500);

            whatsNewFlyout.InitFlyout();
            whatsNewFlyout.Visibility = Visibility.Visible;
            VisualStateManager.GoToState(this, nameof(OverlayVisibleVisualState), false);

            AnalyticsHelper.Log("flyoutShow", "whatsNew", PackageHelper.GetAppVersionString());
        }

        public async void OpenDeveloperMessage(DeveloperMessage message)
        {
            await Task.Delay(700);

            while (whatsNewFlyout.Visibility == Visibility.Visible)
                await Task.Delay(500);

            developerMessageFlyout.InitFlyout(message);
            developerMessageFlyout.Visibility = Visibility.Visible;
            VisualStateManager.GoToState(this, nameof(OverlayVisibleVisualState), false);

            AnalyticsHelper.Log("flyoutShow", "developerMessage", message.id);
        }

        private void WhatsNewFlyout_FlyoutCloseRequest(object sender, EventArgs e)
        {
            CloseOverlays();
        }

        private void SettingsFlyout_FlyoutCloseRequest(object sender, EventArgs e)
        {
            CloseOverlays();
        }

        private void DeveloperMessageFlyout_FlyoutCloseRequest(object sender, EventArgs e)
        {
            CloseOverlays();
        }

        private async void CloseOverlays()
        {
            VisualStateManager.GoToState(this, nameof(OverlayClosedVisualState), false);

            await Task.Delay(300);

            developerMessageFlyout.Visibility = Visibility.Collapsed;
            whatsNewFlyout.Visibility = Visibility.Collapsed;
            settingsFlyout.Visibility = Visibility.Collapsed;
        }

    }
}


================================================
FILE: XpoMusic/Controls/NowPlayingView.xaml
================================================
<UserControl
    x:Class="XpoMusic.Controls.NowPlayingView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:XpoMusic"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
    xmlns:interactivity="using:Microsoft.Xaml.Interactivity" 
    xmlns:core="using:Microsoft.Xaml.Interactions.Core"
    xmlns:media="using:Microsoft.Xaml.Interactions.Media"
    xmlns:vm="using:XpoMusic.ViewModels"
    xmlns:converters="using:XpoMusic.Classes.Converters"
    xmlns:behaviors="using:Microsoft.Toolkit.Uwp.UI.Animations.Behaviors"
    xmlns:media1="using:Microsoft.Toolkit.Uwp.UI.Media"
    xmlns:xpotifycontrols="using:XpoMusic.Controls"
    mc:Ignorable="d"
    RequestedTheme="Dark"
    Loaded="UserControl_Loaded"
    SizeChanged="UserControl_SizeChanged"
    PointerPressed="UserControl_PointerPressed"
    PointerMoved="UserControl_PointerMoved"
    PointerReleased="UserControl_PointerReleased"
    PointerExited="UserControl_PointerExited"
    d:DesignHeight="400"
    d:DesignWidth="400">

    <UserControl.DataContext>
        <vm:NowPlayingViewModel x:Name="ViewModel" />
    </UserControl.DataContext>

    <UserControl.Resources>
        <ResourceDictionary>
            <converters:MillisecondsToMinSecConverter x:Name="MillisecondsToMinSecConverter" />
            <Storyboard x:Name="hideToLeftStoryboard">
                <DoubleAnimation Storyboard.TargetName="animatedPanel" 
                                 Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                                 Duration="0:0:0.4" 
                                 To="{x:Bind ViewModel.StoryboardOffsetNegative, Mode=OneWay}">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
                <DoubleAnimation Storyboard.TargetName="animatedPanel" 
                                 Storyboard.TargetProperty="Opacity"
                                 Duration="0:0:0.4" To="0">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
            </Storyboard>
            <Storyboard x:Name="hideToRightStoryboard">
                <DoubleAnimation Storyboard.TargetName="animatedPanel" 
                                 Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                                 Duration="0:0:0.4" 
                                 To="{x:Bind ViewModel.StoryboardOffset, Mode=OneWay}">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
                <DoubleAnimation Storyboard.TargetName="animatedPanel" 
                                 Storyboard.TargetProperty="Opacity"
                                 Duration="0:0:0.4" To="0">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
            </Storyboard>
            <Storyboard x:Name="hideQuickStoryboard">
                <DoubleAnimation Storyboard.TargetName="animatedPanel" 
                                 Storyboard.TargetProperty="Opacity"
                                 Duration="0:0:0" To="0">
                </DoubleAnimation>
            </Storyboard>
            <Storyboard x:Name="showFromLeftStoryboard">
                <DoubleAnimation Storyboard.TargetName="animatedPanel" 
                                 Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                                 Duration="0:0:0.4" 
                                 From="{x:Bind ViewModel.StoryboardOffsetNegative, Mode=OneWay}" 
                                 To="0">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
                <DoubleAnimation Storyboard.TargetName="animatedPanel" 
                                 Storyboard.TargetProperty="Opacity"
                                 Duration="0:0:0.4" From="0" To="1">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
                <DoubleAnimation Storyboard.TargetName="swipeTranslateTransform"
                                 Storyboard.TargetProperty="(TranslateTransform.X)"
                                 Duration="0:0:0"
                                 To="0" />
            </Storyboard>
            <Storyboard x:Name="showFromRightStoryboard">
                <DoubleAnimation Storyboard.TargetName="animatedPanel" 
                                 Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                                 Duration="0:0:0.4" 
                                 From="{x:Bind ViewModel.StoryboardOffset, Mode=OneWay}" 
                                 To="0">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
                <DoubleAnimation Storyboard.TargetName="animatedPanel" 
                                 Storyboard.TargetProperty="Opacity"
                                 Duration="0:0:0.4" From="0" To="1">
                    <DoubleAnimation.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </DoubleAnimation.EasingFunction>
                </DoubleAnimation>
                <DoubleAnimation Storyboard.TargetName="swipeTranslateTransform"
                                 Storyboard.TargetProperty="(TranslateTransform.X)"
                                 Duration="0:0:0"
                                 To="0" />
            </Storyboard>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid x:Name="mainGrid">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup>
                <VisualState>
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="800" MinWindowHeight="600" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="artistName.Visibility" Value="Visible" />
                        <Setter Target="albumArtContainer.Visibility" Value="Visible" />
                        <Setter Target="contentPanel.VerticalAlignment" Value="Bottom" />
                        <Setter Target="contentPanel.Margin" Value="0,0,0,60" />
                        <Setter Target="musicSliderContainer.Margin" Value="36,12,36,0" />
                        <Setter Target="largeButtonsContainer.Margin" Value="36,4,36,0" />
                        <Setter Target="progressBar.Visibility" Value="Collapsed" />
                        <Setter Target="smallButtonsContainer.Visibility" Value="Collapsed" />
                        <Setter Target="largeButtonsContainer.Visibility" Value="Visible" />
                        <Setter Target="musicSliderContainer.Visibility" Value="Visible" />
                        <Setter Target="songName.FontSize" Value="28" />
                        <Setter Target="songName.FontWeight" Value="Bold" />
                        <Setter Target="songName.(RelativePanel.RightOf)" Value="albumArtContainer" />
                        <Setter Target="songName.(RelativePanel.Above)" Value="artistName" />
                        <Setter Target="songName.(RelativePanel.AlignLeftWithPanel)" Value="False" />
                        <Setter Target="songName.(RelativePanel.AlignRightWithPanel)" Value="False" />
                        <Setter Target="songName.(RelativePanel.Below)" Value="" />
                        <Setter Target="albumArt.Width" Value="150" />
                        <Setter Target="albumArt.Height" Value="150" />
                        <Setter Target="albumName.FontSize" Value="22" />
                        <Setter Target="artistAndAlbumSeparator.FontSize" Value="22" />
                        <Setter Target="artistName.FontSize" Value="22" />
                        <Setter Target="artistName.Margin" Value="8,4,8,40" />
                        <Setter Target="artistName.(RelativePanel.RightOf)" Value="albumArtContainer" />
                        <Setter Target="artistName.(RelativePanel.AlignBottomWith)" Value="albumArtContainer" />
                        <Setter Target="artistName.(RelativePanel.AlignLeftWithPanel)" Value="False" />
                        <Setter Target="artistName.(RelativePanel.AlignRightWithPanel)" Value="False" />
                        <Setter Target="artistName.(RelativePanel.Below)" Value="" />
                        <Setter Target="albumArtContainer.(RelativePanel.AlignHorizontalCenterWithPanel)" Value="False" />
                        <Setter Target="albumArtContainer.Margin" Value="36,0,12,0" />
                        <Setter Target="smallOptionsButton.Visibility" Value="Collapsed" />
                        <Setter Target="xpotifyLogo.Margin" Value="6,0,0,6" />
                        <Setter Target="nextTrackLoadingProgressRing.Visibility" Value="Collapsed" />
                    </VisualState.Setters>
                </VisualState>
                <VisualState>
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="370" MinWindowHeight="290" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="artistName.Visibility" Value="Visible" />
                        <Setter Target="albumArtContainer.Visibility" Value="Visible" />
                        <Setter Target="contentPanel.VerticalAlignment" Value="Bottom" />
                        <Setter Target="contentPanel.Margin" Value="0,0,0,40" />
                        <Setter Target="progressBar.Visibility" Value="Collapsed" />
                        <Setter Target="smallButtonsContainer.Visibility" Value="Collapsed" />
                        <Setter Target="largeButtonsContainer.Visibility" Value="Visible" />
                        <Setter Target="musicSliderContainer.Visibility" Value="Visible" />
                        <Setter Target="songName.FontSize" Value="22" />
                        <Setter Target="songName.FontWeight" Value="Bold" />
                        <Setter Target="songName.(RelativePanel.RightOf)" Value="albumArtContainer" />
                        <Setter Target="songName.(RelativePanel.Above)" Value="artistName" />
                        <Setter Target="songName.(RelativePanel.AlignLeftWithPanel)" Value="False" />
                        <Setter Target="songName.(RelativePanel.AlignRightWithPanel)" Value="False" />
                        <Setter Target="songName.(RelativePanel.Below)" Value="" />
                        <Setter Target="artistName.FontSize" Value="18" />
                        <Setter Target="artistName.(RelativePanel.RightOf)" Value="albumArtContainer" />
                        <Setter Target="artistName.(RelativePanel.AlignBottomWith)" Value="albumArtContainer" />
                        <Setter Target="artistName.(RelativePanel.AlignLeftWithPanel)" Value="False" />
                        <Setter Target="artistName.(RelativePanel.AlignRightWithPanel)" Value="False" />
                        <Setter Target="artistName.(RelativePanel.Below)" Value="" />
                        <Setter Target="albumArtContainer.(RelativePanel.AlignHorizontalCenterWithPanel)" Value="False" />
                        <Setter Target="albumArtContainer.Margin" Value="24,0,12,0" />
                        <Setter Target="smallOptionsButton.Visibility" Value="Collapsed" />
                        <Setter Target="xpotifyLogo.Margin" Value="6,0,0,6" />
                        <Setter Target="nextTrackLoadingProgressRing.Visibility" Value="Collapsed" />
                    </VisualState.Setters>
                </VisualState>
                <VisualState>
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowHeight="180" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="songName.Visibility" Value="Visible" />
                        <Setter Target="songName.FontWeight" Value="Bold" />
                        <Setter Target="artistName.Visibility" Value="Visible" />
                        <Setter Target="smallButtonsContainer.Margin" Value="0,0,0,0" />
                        <Setter Target="nextTrackLoadingProgressRing.Margin" Value="0,0,0,60" />
                        <Setter Target="nextTrackLoadingProgressRing.Width" Value="28" />
                        <Setter Target="nextTrackLoadingProgressRing.Height" Value="28" />
                    </VisualState.Setters>
                </VisualState>
                <VisualState>
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowHeight="290" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="albumArtContainer.Visibility" Value="Visible" />
                        <Setter Target="songName.Visibility" Value="Visible" />
                        <Setter Target="songName.FontWeight" Value="Bold" />
                        <Setter Target="artistName.Visibility" Value="Visible" />
                        <Setter Target="smallButtonsContainer.Margin" Value="0,0,0,0" />
                        <Setter Target="nextTrackLoadingProgressRing.Margin" Value="0,0,0,60" />
                        <Setter Target="nextTrackLoadingProgressRing.Width" Value="32" />
                        <Setter Target="nextTrackLoadingProgressRing.Height" Value="32" />
                    </VisualState.Setters>
                </VisualState>
            </VisualStateGroup>
            <VisualStateGroup>
                <VisualState>
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="450" MinWindowHeight="290" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="artistAndAlbumSeparator.Visibility" Value="Visible" />
                        <Setter Target="albumName.Visibility" Value="Visible" />
                    </VisualState.Setters>
                </VisualState>
            </VisualStateGroup>
            <VisualStateGroup>
                <VisualState>
                    <VisualState.StateTriggers>
                        <StateTrigger IsActive="{x:Bind ViewModel.IsCompactOverlayViewMode, Mode=OneWay}" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="showNowPlayingListButton.Visibility" Value="Collapsed" />
                        <Setter Target="miniViewButton.Visibility" Value="Collapsed" />
                        <Setter Target="fullScreenButton.Visibility" Value="Collapsed" />
                    </VisualState.Setters>
                </VisualState>
                <VisualState>
                    <VisualState.StateTriggers>
                        <StateTrigger IsActive="{x:Bind ViewModel.IsNormalViewMode, Mode=OneWay}" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                    </VisualState.Setters>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>

        <Grid Background="#888888">
            <Grid x:Name="backgroundArtContainer">
                <Grid.Background>
                    <ImageBrush ImageSource="{x:Bind ViewModel.BackgroundArt, Mode=OneWay}" Stretch="UniformToFill">
                        <interactivity:Interaction.Behaviors>
                            <core:EventTriggerBehavior EventName="ImageOpened">
                                <media:ControlStoryboardAction ControlStoryboardOption="Play">
                                    <media:ControlStoryboardAction.Storyboard>
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                           Storyboard.TargetName="backgroundArtContainer">
                                                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </media:ControlStoryboardAction.Storyboard>
                                </media:ControlStoryboardAction>
                            </core:EventTriggerBehavior>
                        </interactivity:Interaction.Behaviors>
                    </ImageBrush>
                </Grid.Background>
            </Grid>
        </Grid>
        <Grid Background="#66000000" x:Name="mainBackgroundGrid">
        </Grid>
        <Grid x:Name="blurBackground" 
              Visibility="{x:Bind ViewModel.BlurEnabled, Mode=OneWay, ConverterParameter={StaticResource BooleanToVisibilityConverter}}">
            <Grid.Background>
                <media1:BackdropBlurBrush Amount="30" />
            </Grid.Background>
        </Grid>
        <Grid>
            <ProgressRing x:Name="nextTrackLoadingProgressRing" 
                          IsActive="{x:Bind ViewModel.ProgressRingActive, Mode=OneWay}"
                          Foreground="White"
                          IsHitTestVisible="False"
                          Margin="0,0,0,54"
                          Width="20"
                          Height="20" />

            <StackPanel x:Name="contentPanel" VerticalAlignment="Center" HorizontalAlignment="Stretch">
                <Grid x:Name="animatedPanelContainer">
                    <Grid.RenderTransform>
                        <TranslateTransform x:Name="swipeTranslateTransform" />
                    </Grid.RenderTransform>
                    <RelativePanel x:Name="animatedPanel">
                        <RelativePanel.RenderTransform>
                            <TranslateTransform />
                        </RelativePanel.RenderTransform>
                        <controls:DropShadowPanel x:Name="albumArtContainer" 
                                                  RelativePanel.AlignHorizontalCenterWithPanel="True"
                                                  BlurRadius="40.0" 
                                                  ShadowOpacity="1"
                                                  OffsetX="0.0" 
                                                  OffsetY="0.0" 
                                                  Color="#111"
                                                  Background="Transparent" 
                                                  Opacity="{x:Bind ViewModel.AlbumArtContainerOpacity, Mode=TwoWay}"
                                                  Visibility="Collapsed"
                                                  IsHitTestVisible="False">
                            <Grid x:Name="albumArt" 
                                  ToolTipService.ToolTip="{x:Bind ViewModel.AlbumName, Mode=OneWay}"
                                  Width="100" 
                                  Height="100">
                                <Grid.Background>
                                    <ImageBrush ImageSource="{x:Bind ViewModel.AlbumArt, Mode=OneWay}"
                                                Stretch="UniformToFill">
                                        <interactivity:Interaction.Behaviors>
                                            <core:EventTriggerBehavior EventName="ImageOpened">
                                                <media:ControlStoryboardAction ControlStoryboardOption="Play">
                                                    <media:ControlStoryboardAction.Storyboard>
                                                        <Storyboard>
                                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                                           Storyboard.TargetName="albumArtContainer">
                                                                <EasingDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
                                                                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
                                                            </DoubleAnimationUsingKeyFrames>
                                                        </Storyboard>
                                                    </media:ControlStoryboardAction.Storyboard>
                                                </media:ControlStoryboardAction>
                                            </core:EventTriggerBehavior>
                                        </interactivity:Interaction.Behaviors>
                                    </ImageBrush>
                                </Grid.Background>
                            </Grid>
                        </controls:DropShadowPanel>
                        <TextBlock x:Name="songName" 
                                   RelativePanel.AlignLeftWithPanel="True"
                                   RelativePanel.AlignRightWithPanel="True"
                                   RelativePanel.Below="albumArtContainer"
                                   Text="{x:Bind ViewModel.SongName, Mode=OneWay}"
                                   Margin="8,16,8,0"
                                   Visibility="Visible"
                                   IsHitTestVisible="False"
                                   TextAlignment="Center"
                                   FontWeight="SemiBold" />
                        <TextBlock x:Name="artistName"
                                   RelativePanel.AlignLeftWithPanel="True"
                                   RelativePanel.AlignRightWithPanel="True"
                                   RelativePanel.Below="songName"
                                   Text="{x:Bind ViewModel.ArtistName, Mode=OneWay}"
                                   Margin="8,4,8,20"
                                   Visibility="Collapsed"
                                   IsHitTestVisible="False"
                                   TextAlignment="Center"
                                   FontWeight="Normal" />
                        <TextBlock x:Name="artistAndAlbumSeparator" 
                                   Visibility="Collapsed"
                                   Text="&#x2022;"
                                   FontSize="18"
                                   Margin="0,4,0,0"
                                   RelativePanel.RightOf="artistName"
                                   RelativePanel.AlignTopWith="artistName"/>
                        <TextBlock x:Name="albumName" 
                                   Visibility="Collapsed"
                                   Text="{x:Bind ViewModel.AlbumName, Mode=OneWay}"
                                   Margin="8,4,4,0"
                                   FontSize="18"
                                   RelativePanel.RightOf="artistAndAlbumSeparator"
                                   RelativePanel.AlignTopWith="artistAndAlbumSeparator"/>
                    </RelativePanel>
                </Grid>
                <Grid x:Name="musicSliderContainer"
                      Height="40"
                      Visibility="Collapsed"
                      Margin="24,12,24,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" 
                               Text="{x:Bind ViewModel.ProgressBarValue, Mode=OneWay, Converter={StaticResource MillisecondsToMinSecConverter}}"
                               Visibility="{x:Bind ViewModel.ProgressRingActive, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter},ConverterParameter=Reverse}"
                               VerticalAlignment="Center" />
                    <xpotifycontrols:SliderExtended Grid.Column="1"
                                                    VerticalAlignment="Center"
                                                    KeyboardStepFrequency="10000"
                                                    ContinousUpdateWhileDragging="False"
                                                    ThumbToolTipValueConverter="{StaticResource MillisecondsToMinSecConverter}"
                                                    Value2="{x:Bind ViewModel.ProgressBarValue, Mode=OneWay}"
                                                    Maximum="{x:Bind ViewModel.ProgressBarMaximum, Mode=OneWay}"
                                                    Margin="12,4,12,0"
                                                    Visibility="{x:Bind ViewModel.ProgressRingActive, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter},ConverterParameter=Reverse}"
                                                    ValueChangedByUserManipulation="PlaybackSlider_ValueChangedByUserManipulation"/>
                    <ProgressBar Grid.Column="1" 
                                 VerticalAlignment="Center"
                                 Margin="12,4,12,0"
                                 IsIndeterminate="True"
                                 Foreground="White"
                                 Visibility="{x:Bind ViewModel.ProgressRingActive, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}}" />
                    <TextBlock Grid.Column="2" 
                               Text="{x:Bind ViewModel.ProgressBarMaximum, Mode=OneWay, Converter={StaticResource MillisecondsToMinSecConverter}}"
                               Visibility="{x:Bind ViewModel.ProgressRingActive, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter},ConverterParameter=Reverse}"
                               VerticalAlignment="Center" />
                </Grid>
                <Grid x:Name="largeButtonsContainer" 
                      Visibility="Collapsed"
                      Margin="24,4,24,0"
                      RelativePanel.AlignLeftWithPanel="True"
                      RelativePanel.AlignRightWithPanel="True"
                      RelativePanel.Below="musicSliderContainer">
                    <StackPanel Orientation="Horizontal"
                                Margin="0,0,0,0"
                                HorizontalAlignment="Left">
                        <Button Style="{StaticResource CircleButtonStyle}" 
                                IsEnabled="{x:Bind ViewModel.PrevButtonEnabled, Mode=OneWay}"
                                Width="40"
                                Height="40"
                                Margin="0,0,4,0"
                                Click="PrevTrackButton_Click"
                                Background="Transparent"
                                ToolTipService.ToolTip="Previous track">
                            <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xE100;" />
                        </Button>
                        <Button Style="{StaticResource CircleButtonStyle}" 
                                Visibility="{x:Bind ViewModel.PlayButtonVisibility, Mode=OneWay}"
                                IsEnabled="{x:Bind ViewModel.PlayPauseButtonEnabled, Mode=OneWay}"
                                Width="40"
                                Height="40"
                                Margin="4,0,4,0"
                                Click="PlayButton_Click"
                                Background="Transparent"
                                ToolTipService.ToolTip="Play">
                            <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xE102;" />
                        </Button>
                        <Button Style="{StaticResource CircleButtonStyle}" 
                                Visibility="{x:Bind ViewModel.PauseButtonVisibility, Mode=OneWay}"
                                IsEnabled="{x:Bind ViewModel.PlayPauseButtonEnabled, Mode=OneWay}"
                                Width="40"
                                Height="40"
                                Margin="4,0,4,0"
                                Click="PauseButton_Click"
                                Background="Transparent" 
                                ToolTipService.ToolTip="Pause">
                            <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xE103;" />
                        </Button>
                        <Button Style="{StaticResource CircleButtonStyle}" 
                                IsEnabled="{x:Bind ViewModel.NextButtonEnabled, Mode=OneWay}"
                                Width="40"
                                Height="40"
                                Margin="4,0,4,0"
                                Click="NextTrackButton_Click"
                                Background="Transparent" 
                                ToolTipService.ToolTip="Next track">
                            <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xE101;" />
                        </Button>
                        <Button Style="{StaticResource CircleButtonStyle}" 
                                Width="40"
                                Height="40"
                                Margin="4,0,4,0"
                                Background="Transparent" 
                                ToolTipService.ToolTip="Volume">
                            <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="{x:Bind ViewModel.VolumeIconGlyph, Mode=OneWay}" />
                            <Button.Flyout>
                                <Flyout>
                                    <Grid Width="140" Height="40">
                                        <xpotifycontrols:SliderExtended Grid.Column="2"
                                                                        KeyboardStepFrequency="10"
                                                                        VerticalAlignment="Center"
                                                                        ContinousUpdateWhileDragging="True"
                                                                        IsThumbToolTipEnabled="True"
                                                                        Value2="{x:Bind ViewModel.Volume, Mode=TwoWay}"
                                                                        Maximum="100"
                                                                        PointerWheelChanged="VolumeSlider_PointerWheelChanged"
                                                                        ValueChangedByUserManipulation="VolumeSlider_ValueChangedByUserManipulation"/>
                                    </Grid>
                                </Flyout>
                            </Button.Flyout>
                        </Button>
                        <Button Style="{StaticResource CircleButtonStyle}" 
                                Width="40"
                                Height="40"
                                Margin="4,0,4,0"
                                Click="SaveToYourLibrary_Click"
                                Background="Transparent" 
                                Visibility="{x:Bind ViewModel.IsSavedToLibrary, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Reverse}" 
                                ToolTipService.ToolTip="Save to your liked songs">
                            <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xEB51;" />
                        </Button>
                        <Button Style="{StaticResource CircleButtonStyle}" 
                                Width="40"
                                Height="40"
                                Margin="4,0,4,0"
                                Click="RemoveFromYourLibrary_Click"
                                Background="Transparent" 
                                Visibility="{x:Bind ViewModel.IsSavedToLibrary, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}}" 
                                ToolTipService.ToolTip="Remove from your liked songs">
                            <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xEB52;" Foreground="ForestGreen" />
                        </Button>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal"
                                Margin="0,0,0,0"
                                HorizontalAlignment="Right">
                        <Button x:Name="showNowPlayingListButton" 
                                Style="{StaticResource CircleButtonStyle}" 
                                Width="40"
                                Height="40"
                                Margin="0,0,4,0"
                                Click="ShowNowPlayingListButton_Click"
                                Background="Transparent"
                                ToolTipService.ToolTip="Show now playing list">
                            <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xE292;" />
                        </Button>
                        <Button x:Name="miniViewButton" 
                                Style="{StaticResource CircleButtonStyle}" 
                                Width="40"
                                Height="40"
                                Margin="4,0,4,0"
                                Click="MiniViewButton_Click"
                                Background="Transparent"
                                ToolTipService.ToolTip="Mini view">
                            <Grid Margin="2,3,2,-4">
                                <FontIcon FontFamily="Segoe MDL2 Assets" 
                                            VerticalAlignment="Top"
                                            HorizontalAlignment="Left"
                                            FontSize="20" 
                                            Glyph="&#xE7FB;" />
                                <FontIcon FontFamily="Segoe MDL2 Assets" 
                                            VerticalAlignment="Top"
                                            HorizontalAlignment="Left"
                                            FontSize="10" 
                                            Margin="6.5,1.5,0,0"
                                            Glyph="&#xEB9F;" />
                            </Grid>
                        </Button>
                        <Button x:Name="fullScreenButton" 
                                Style="{StaticResource CircleButtonStyle}" 
                                Width="40"
                                Height="40"
                                Margin="4,0,4,0"
                                Click="FullScreenButton_Click"
                                Background="Transparent" 
                                ToolTipService.ToolTip="Full screen">
                            <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xE740;" />
                        </Button>
                        <Button x:Name="optionsButton" 
                                Style="{StaticResource CircleButtonStyle}" 
                                Width="40"
                                Height="40"
                                Margin="4,0,0,0"
                                Background="Transparent">
                            <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xE10C;" />
                            <Button.Flyout>
                                <MenuFlyout>
                                    <ToggleMenuFlyoutItem Text="Show artist art" 
                                                          IsChecked="{x:Bind ViewModel.ShowArtistArt, Mode=TwoWay}"/>
                                </MenuFlyout>
                            </Button.Flyout>
                        </Button>
                    </StackPanel>
                </Grid>
                <StackPanel x:Name="smallButtonsContainer" 
                            Margin="0,8,0,0"
                            Orientation="Horizontal"
                            HorizontalAlignment="Center">
                    <Button Style="{StaticResource CircleButtonStyle}" 
                            IsEnabled="{x:Bind ViewModel.PrevButtonEnabled, Mode=OneWay}"
                            Width="40"
                            Height="40"
                            Click="PrevTrackButton_Click"
                            Background="Transparent"
                            ToolTipService.ToolTip="Previous track">
                        <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xE100;" />
                    </Button>
                    <Button Style="{StaticResource CircleButtonStyle}" 
                            Visibility="{x:Bind ViewModel.PlayButtonVisibility, Mode=OneWay}"
                            IsEnabled="{x:Bind ViewModel.PlayPauseButtonEnabled, Mode=OneWay}"
                            Width="54"
                            Height="54"
                            Margin="4,0,4,0"
                            Click="PlayButton_Click"
                            Background="Transparent"
                            ToolTipService.ToolTip="Play">
                        <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="36" Glyph="&#xE102;" />
                    </Button>
                    <Button Style="{StaticResource CircleButtonStyle}" 
                            Visibility="{x:Bind ViewModel.PauseButtonVisibility, Mode=OneWay}"
                            IsEnabled="{x:Bind ViewModel.PlayPauseButtonEnabled, Mode=OneWay}"
                            Width="54"
                            Height="54"
                            Margin="4,0,4,0"
                            Click="PauseButton_Click"
                            Background="Transparent" 
                            ToolTipService.ToolTip="Pause">
                        <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="36" Glyph="&#xE103;" />
                    </Button>
                    <Button Style="{StaticResource CircleButtonStyle}" 
                            IsEnabled="{x:Bind ViewModel.NextButtonEnabled, Mode=OneWay}"
                            Width="40"
                            Height="40"
                            Click="NextTrackButton_Click"
                            Background="Transparent" 
                            ToolTipService.ToolTip="Next track">
                        <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="24" Glyph="&#xE101;" />
                    </Button>
                </StackPanel>
            </StackPanel>
            <ProgressBar x:Name="progressBar" 
                         VerticalAlignment="Bottom"
                         IsIndeterminate="False"
                         Value="{x:Bind ViewModel.ProgressBarValue, Mode=OneWay}"
                         Maximum="{x:Bind ViewModel.ProgressBarMaximum, Mode=OneWay}"
                         Foreground="#77ffffff" />
            <Image x:Name="xpotifyLogo" 
                   Source="ms-appx-web:///Assets/xpotify-white.png"
                   Opacity="0.5"
                   IsHitTestVisible="False"
                   Width="20"
                   Height="20" 
                   Margin="4,0,0,8"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Bottom"/>
            <Grid x:Name="titleBarArea"
                  Background="#01000000"
                  Height="32"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Top" />
            <Button x:Name="backButton" 
                    Style="{StaticResource TopBarDarkButtonStyle}"
                    Width="46"
                    Height="32"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    Background="Transparent"
                    ToolTipService.ToolTip="Back"
                    Click="BackButton_Click">
                <FontIcon FontFamily="Segoe MDL2 Assets" 
                          VerticalAlignment="Top"
                          HorizontalAlignment="Left"
                          Foreground="#ddd"
                          FontSize="14" 
                          Glyph="&#xE0A6;" />
            </Button>
            <Button x:Name="smallOptionsButton" 
                    Style="{StaticResource MinimalButtonStyle}" 
                    Width="40"
                    Height="40"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Bottom"
                    Background="Transparent">
                <FontIcon FontFamily="Segoe MDL2 Assets" FontSize="18" Glyph="&#xE10C;" />
                <Button.Flyout>
                    <MenuFlyout>
                        <ToggleMenuFlyoutItem Text="Show artist art" 
                                              IsChecked="{x:Bind ViewModel.ShowArtistArt, Mode=TwoWay}"/>
                        <MenuFlyoutItem Text="Save to your liked songs"
                                        Visibility="{x:Bind ViewModel.IsSavedToLibrary, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Reverse}" 
                                        Click="SaveToYourLibrary_Click" />
                        <MenuFlyoutItem Text="Remove from your liked songs"
                                        Visibility="{x:Bind ViewModel.IsSavedToLibrary, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        Click="RemoveFromYourLibrary_Click" />
                    </MenuFlyout>
                </Button.Flyout>
            </Button>
        </Grid>
    </Grid>
</UserControl>


================================================
FILE: XpoMusic/Controls/NowPlayingView.xaml.cs
================================================
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
using XpoMusic.Classes;
using XpoMusic.Classes.Cache;
using XpoMusic.Classes.Model;
using XpoMusic.Helpers;
using XpoMusic.SpotifyApi;

namespace XpoMusic.Controls
{
    public sealed partial class NowPlayingView : UserControl
    {
        private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();

        #region Enums
        public enum NowPlayingViewMode
        {
            Normal,
            CompactOverlay,
        }

        public enum Action
        {
            Back,
            PlayQueue,
            SeekPlayback,
            SeekVolume,
        }

        private enum AnimationState
        {
            None,
            HiddenToRightSide,
            HiddenToLeftSide,
        }
        #endregion

        #region Custom Properties
        public static readonly DependencyProperty IsOpenProperty = DependencyProperty.Register(
            "IsOpen", typeof(bool), typeof(NowPlayingView), new PropertyMetadata(defaultValue: false,
                propertyChangedCallback: new PropertyChangedCallback(OnIsOpenPropertyChanged)));

        public bool IsOpen
        {
            get => (bool)GetValue(IsOpenProperty);
            set
            {
                if (IsOpen != value)
                    SetValue(IsOpenProperty, value);

                if (IsOpen && !timer.IsEnabled)
                {
                    songInfoCache.Clear();
                    HideNameAndAlbumArtQuick();
                    SetTopBar();
                    TryUpdate();
                    timer.Start();
                }
                else if (!IsOpen && timer.IsEnabled)
                {
                    OnViewClosed();
                    timer.Stop();
                }

                mainGrid.Visibility = value ? Visibility.Visible : Visibility.Collapsed;
            }
        }

        private static void OnIsOpenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            (d as NowPlayingView).IsOpen = (bool)e.NewValue;
        }

        public static readonly DependencyProperty ViewModeProperty = DependencyProperty.Register(
            "ViewMode", typeof(NowPlayingViewMode), typeof(NowPlayingView), new PropertyMetadata(defaultValue: NowPlayingViewMode.Normal,
                propertyChangedCallback: new PropertyChangedCallback(OnViewModePropertyChanged)));

        public NowPlayingViewMode ViewMode
        {
            get => (NowPlayingViewMode)GetValue(ViewModeProperty);
            set
            {
                if (ViewMode != value)
                    SetValue(ViewModeProperty, value);

                ViewModel.ViewMode = value;
            }
        }

        private static void OnViewModePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            (d as NowPlayingView).ViewMode = (NowPlayingViewMode)e.NewValue;
        }
        #endregion

        public event EventHandler<ActionRequestedEventArgs> ActionRequested;
        public FrameworkElement MainBackgroundControl => this.mainBackgroundGrid;

        /// <summary>
        /// If this variable is set, track change animation will run in reverse direction as a song change is detected.
        /// NOTE: DO NOT set this variable directly to true, use SetPrevTrackCommandIssued() method, which reverts the
        /// change automatically after 4 seconds.
        /// </summary>
        private bool prevTrackCommandIssued = false;

        private AnimationState animationState = AnimationState.None;

        private DateTime spinnerShowTime = DateTime.MaxValue;
        private readonly TimeSpan maximumSpinnerShowTime = TimeSpan.FromSeconds(7);

        private DispatcherTimer timer;
        private string currentSongId = "";
        private bool? currentShowArtistArtState = null;
        private bool isCompactOverlayFromNowPlaying = false;
        
        private SemaphoreQueue volumeSetSemaphore = new SemaphoreQueue(1, 1);

        private SongExtraInfoStore songInfoCache = new SongExtraInfoStore();

        public NowPlayingView()
        {
            this.InitializeComponent();

            ViewModel.PropertyChanged += ViewModel_PropertyChanged;

            timer = new DispatcherTimer
            {
                Interval = TimeSpan.FromSeconds(1),
            };
            timer.Tick += Timer_Tick;
            timer.Start();

            PlayStatusTracker.LastPlayStatus.Updated += LastPlayStatus_Updated;
        }

        private void ViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            if (e.PropertyName == "ShowArtistArt")
                TryUpdate();
        }

        public void ActivateProgressRing()
        {
            ViewModel.ProgressRingActive = true;
        }

        private void LastPlayStatus_Updated(object sender, EventArgs e)
        {
            TryUpdate();
        }

        private void Timer_Tick(object sender, object e)
        {
            TryUpdate();
        }

        private async void TryUpdate()
        {
            try
            {
                if (!IsOpen)
                    return;

                await Update();
            }
            catch (Exception ex)
            {
                logger.Warn("Update failed: " + ex.ToString());
            }
        }

        private async Task Update()
        {
            if (ViewModel.ProgressBarValue != ViewModel.ProgressBarMaximum && PlayStatusTracker.LastPlayStatus.ProgressedMilliseconds == ViewModel.ProgressBarMaximum)
            {
                // Song just reached the end. refresh status now.
                RefreshPlayStatus();
            }

            ViewModel.ProgressBarMaximum = PlayStatusTracker.LastPlayStatus.SongLengthMilliseconds;
            ViewModel.ProgressBarValue = PlayStatusTracker.LastPlayStatus.ProgressedMilliseconds;

            ViewModel.Volume = PlayStatusTracker.LastPlayStatus.Volume * 100;

            ViewModel.IsPlaying = PlayStatusTracker.LastPlayStatus.IsPlaying;

            ViewModel.PrevButtonEnabled = true;
            ViewModel.NextButtonEnabled = PlayStatusTracker.LastPlayStatus.IsNextTrackAvailable;

            if (currentSongId != PlayStatusTracker.LastPlayStatus.SongId
                || currentShowArtistArtState != ViewModel.ShowArtistArt)
            {
                currentSongId = PlayStatusTracker.LastPlayStatus.SongId;
                currentShowArtistArtState = ViewModel.ShowArtistArt;

                if (animationState == AnimationState.None)
                {
                    if (prevTrackCommandIssued)
                    {
                        prevTrackCommandIssued = false;

                        animationState = AnimationState.HiddenToRightSide;
                        await hideToRightStoryboard.RunAsync();
                    }
                    else
                    {
                        animationState = AnimationState.HiddenToLeftSide;
                        await hideToLeftStoryboard.RunAsync();
                    }
                }

                ViewModel.SongName = PlayStatusTracker.LastPlayStatus.SongName;
                ViewModel.AlbumName = PlayStatusTracker.LastPlayStatus.AlbumName;
                ViewModel.ArtistName = PlayStatusTracker.LastPlayStatus.ArtistName;

                var albumArtUrl = await SongImageProvider.GetAlbumArt(PlayStatusTracker.LastPlayStatus.AlbumId);
                if (!string.IsNullOrWhiteSpace(albumArtUrl))
                    ViewModel.AlbumArtUri = new Uri(albumArtUrl);

                if (ViewModel.ShowArtistArt)
                {
                    var artistArtUrl = await SongImageProvider.GetArtistArt(PlayStatusTracker.LastPlayStatus.ArtistId);
                    if (!string.IsNullOrWhiteSpace(artistArtUrl))
                    {
                        ViewModel.BackgroundArtUri = new Uri(artistArtUrl);
                        ViewModel.BlurEnabled = false;
                    }
                }
                else
                {
                    if (!string.IsNullOrWhiteSpace(albumArtUrl))
                    {
                        ViewModel.BackgroundArtUri = new Uri(albumArtUrl);
                        ViewModel.BlurEnabled = true;
                    }
                }

                await Task.Delay(200);

                if (animationState == AnimationState.HiddenToRightSide)
                    showFromLeftStoryboard.Begin();
                else // None or HiddenToLeftSide
                    showFromRightStoryboard.Begin();

                ViewModel.ProgressRingActive = false;
                animationState = AnimationState.None;
            }
            else if ((DateTime.UtcNow - spinnerShowTime) > maximumSpinnerShowTime
                && ViewModel.ProgressRingActive)
            {
                // Workaround for when prev track gets pushed when no prev track is there,
                // or in general when a command fails.
                // (progress ring should not be shown forever!)

                if (animationState == AnimationState.HiddenToRightSide)
                    showFromRightStoryboard.Begin();
                else // None or HiddenToLeftSide
                    showFromLeftStoryboard.Begin();

                ViewModel.ProgressRingActive = false;
                animationState = AnimationState.None;
            }

            try
            {
                var extraInfo = await songInfoCache.GetItem(currentSongId);
                ViewModel.IsSavedToLibrary = extraInfo.IsSavedToLibrary;
            }
            catch (Exception ex)
            {
                logger.Warn("GetSongExtraInfo failed: " + ex.ToString());
            }
        }

        private void SetTopBar()
        {
            Window.Current.SetTitleBar(titleBarArea);
        }

        private void OnViewClosed()
        {
            ViewModel.BackgroundArtUri = null;
            ViewModel.AlbumArtUri = null;
            HideNameAndAlbumArtQuick();
            currentSongId = "";
            currentShowArtistArtState = null;
        }

        private void HideNameAndAlbumArtQuick()
        {
            hideQuickStoryboard.Begin();
            animationState = AnimationState.HiddenToLeftSide;
        }

        private async void RefreshPlayStatus()
        {
            await Task.Delay(1000);
            await PlayStatusTracker.RefreshPlayStatus();
        }

        private async void BackButton_Click(object sender, RoutedEventArgs e)
        {
            var view = ApplicationView.GetForCurrentView();
            if (view.IsFullScreenMode)
            {
                AnalyticsHelper.PageView("NowPlaying");
                view.ExitFullScreenMode();
                return;
            }

            if (isCompactOverlayFromNowPlaying)
            {
                HideNameAndAlbumArtQuick();
                currentSongId = "";

                await ApplicationView.GetForCurrentView().TryEnterViewModeAsync(ApplicationViewMode.Default);

                isCompactOverlayFromNowPlaying = false;
                ViewMode = NowPlayingViewMode.Normal;

                AnalyticsHelper.PageView("NowPlaying");

                return;
            }

            ActionRequested?.Invoke(this, new ActionRequestedEventArgs
            {
                Action = Action.Back,
            });
        }

        private async void PauseButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ViewModel.IsPlaying = false;
                ViewModel.PlayPauseButtonEnabled = false;
                timer.Stop();

                // This delay is a workaround for PlayPauseButtonEnabled to
                // update the newly appeared UI. Otherwize it appears after
                // running PlaybackActionHelper.Play().
                await Task.Delay(100);

                if (await PlaybackActionHelper.Pause())
                {
                    RefreshPlayStatus();
                    ViewModel.PlayPauseButtonEnabled = true;
                }
                else
                {
                    ViewModel.IsPlaying = true;
                    ViewModel.PlayPauseButtonEnabled = true;

                    RefreshPlayStatus();
                }
            }
            catch (UnauthorizedAccessException)
            {
                UnauthorizedHelper.OnUnauthorizedError();
            }
            finally
            {
                ViewModel.PlayPauseButtonEnabled = true;
                if (!timer.IsEnabled)
                    timer.Start();
            }
        }

        private async void PlayButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ViewModel.IsPlaying = true;
                ViewModel.PlayPauseButtonEnabled = false;
                timer.Stop();

                // This delay is a workaround for PlayPauseButtonEnabled to
                // update the newly appeared UI. Otherwize it appears after
                // running PlaybackActionHelper.Play().
                await Task.Delay(100);

                if (await PlaybackActionHelper.Play())
                {
                    RefreshPlayStatus();
                    ViewModel.PlayPauseButtonEnabled = true;
                }
                else
                {
                    ViewModel.IsPlaying = false;
                    ViewModel.PlayPauseButtonEnabled = true;

                    RefreshPlayStatus();
                }
            }
            catch (UnauthorizedAccessException)
            {
                UnauthorizedHelper.OnUnauthorizedError();
            }
            finally
            {
                ViewModel.PlayPauseButtonEnabled = true;
                if (!timer.IsEnabled)
                    timer.Start();
            }
        }

        private async void PrevTrackButton_Click(object sender, RoutedEventArgs e)
        {
            if (PlayStatusTracker.LastPlayStatus.IsPrevTrackAvailable)
                await PrevTrack(canGoToBeginningOfCurrentSong: true);
            else
                ActionRequested?.Invoke(this, new ActionRequestedEventArgs
                {
                    Action = Action.SeekPlayback,
                    AdditionalData = 0.0,
                });
        }

        private async Task PrevTrack(bool canGoToBeginningOfCurrentSong)
        {
            try
            {
                if (!canGoToBeginningOfCurrentSong)
                    HideToRightAnimation();

                if (!(await PlaybackActionHelper.PreviousTrack(canGoToBeginningOfCurrentSong)))
                {
                    if (!canGoToBeginningOfCurrentSong)
                        showFromRightStoryboard.Begin();
                    animationState = AnimationState.None;
                    ViewModel.ProgressRingActive = false;
                    return;
                }

                SetPrevTrackCommandIssued();
                ViewModel.PrevButtonEnabled = false;
                RefreshPlayStatus();
                ViewModel.PrevButtonEnabled = true;
            }
            catch (UnauthorizedAccessException)
            {
                UnauthorizedHelper.OnUnauthorizedError();
            }
        }

        private async void NextTrackButton_Click(object sender, RoutedEventArgs e)
        {
            await NextTrack();
        }

        private async Task NextTrack()
        {
            try
            {
                HideToLeftAnimation();

                if (!(await PlaybackActionHelper.NextTrack()))
                {
                    showFromLeftStoryboard.Begin();
                    animationState = AnimationState.None;
                    ViewModel.ProgressRingActive = false;
                    return;
                }

                ViewModel.NextButtonEnabled = false;
                RefreshPlayStatus();
                ViewModel.NextButtonEnabled = PlayStatusTracker.LastPlayStatus.IsNextTrackAvailable;
            }
            catch (UnauthorizedAccessException)
            {
                UnauthorizedHelper.OnUnauthorizedError();
            }
        }

        private async void HideToRightAnimation()
        {
            animationState = AnimationState.HiddenToRightSide;
            spinnerShowTime = DateTime.UtcNow;

            ViewModel.ProgressRingActive = true;

            await hideToRightStoryboard.RunAsync();
        }

        private async void HideToLeftAnimation()
        {
            animationState = AnimationState.HiddenToLeftSide;
            spinnerShowTime = DateTime.UtcNow;

            ViewModel.ProgressRingActive = true;

            await hideToLeftStoryboard.RunAsync();
        }

        public void PlayChangeTrackAnimation(bool reverse)
        {
            if (reverse)
            {
                SetPrevTrackCommandIssued();
            }
            else
            {
                HideToLeftAnimation();
            }
        }

        private Guid lastPrevTrackCommandGuid = Guid.Empty;
        private async void SetPrevTrackCommandIssued()
        {
            var commandGuid = Guid.NewGuid();
            lastPrevTrackCommandGuid = commandGuid;

            // This is only valid if a change is detected in the next 4 seconds,
            // otherwise, its value is returned to false.
            prevTrackCommandIssued = true;
            await Task.Delay(TimeSpan.FromSeconds(4));

            if (lastPrevTrackCommandGuid != commandGuid)
                return; // A newer prev command has arrived during the last seconds, so we won't invalidate the prevTrackCommandIssued now.

            prevTrackCommandIssued = false;
        }

        #region Swipe Gesture
        const double _minimumDeltaXForSwipe = 20.0;
        Point? pressStartPoint = null, lastPoint = null;
        private void UserControl_PointerPressed(object sender, PointerRoutedEventArgs e)
        {
            pressStartPoint = e.GetCurrentPoint(null).Position;
        }

        private void UserControl_PointerMoved(object sender, PointerRoutedEventArgs e)
        {
            if (!pressStartPoint.HasValue)
                return;

            lastPoint = e.GetCurrentPoint(null).Position;
            var movement = lastPoint.Value.X - pressStartPoint.Value.X;

            if ((!PlayStatusTracker.LastPlayStatus.IsPrevTrackAvailable && movement > 0) ||
                (!PlayStatusTracker.LastPlayStatus.IsNextTrackAvailable && movement < 0))
            {
                movement = 0;
                pressStartPoint = lastPoint;
            }

            swipeTranslateTransform.X = movement;
        }

        private void UserControl_PointerReleased(object sender, PointerRoutedEventArgs e)
        {
            if (!pressStartPoint.HasValue)
                return;

            SwipeFinished(e.GetCurrentPoint(null).Position.X);
        }

        private async void SwipeFinished(double finalX)
        {
            var deltaX = finalX - pressStartPoint.Value.X;
            pressStartPoint = null;

            if (Math.Abs(deltaX) > _minimumDeltaXForSwipe)
            {
                if (deltaX > 0)
                    await PrevTrack(canGoToBeginningOfCurrentSong: false);
                else
                    await NextTrack();
            }
            else
            {
                swipeTranslateTransform.X = 0;
            }
        }

        private void UserControl_PointerExited(object sender, PointerRoutedEventArgs e)
        {
            if (!pressStartPoint.HasValue)
                return;
            if (!lastPoint.HasValue)
                return;

            SwipeFinished(lastPoint.Value.X);
        }
        #endregion

        private async void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                await Update();
                RefreshPlayStatus();
            }
            catch (Exception ex)
            {
                logger.Warn("Loaded event failed: " + ex.ToString());
            }
        }

        private void FullScreenButton_Click(object sender, RoutedEventArgs e)
        {
            ToggleFullscreen();
        }

        public void ToggleFullscreen()
        {
            var view = ApplicationView.GetForCurrentView();
            if (view.IsFullScreenMode)
            {
                AnalyticsHelper.PageView("NowPlaying");
                view.ExitFullScreenMode();
            }
            else
            {
                AnalyticsHelper.PageView("NowPlayingFullScreen");
                view.TryEnterFullScreenMode();
            }
        }

        private async void MiniViewButton_Click(object sender, RoutedEventArgs e)
        {
            await SwitchToMiniView();
        }

        public async Task SwitchToMiniView()
        {
            if (ViewMode == NowPlayingViewMode.CompactOverlay)
                return;

            var viewMode = ViewModePreferences.CreateDefault(ApplicationViewMode.CompactOverlay);
            viewMode.ViewSizePreference = ViewSizePreference.Custom;
            viewMode.CustomSize = LocalConfiguration.CompactOverlaySize;

            var modeSwitched = await ApplicationView.GetForCurrentView().TryEnterViewModeAsync(ApplicationViewMode.CompactOverlay, viewMode);

            if (modeSwitched)
            {
                HideNameAndAlbumArtQuick();
                currentSongId = "";
                ViewMode = NowPlayingViewMode.CompactOverlay;
                isCompactOverlayFromNowPlaying = true;
                AnalyticsHelper.PageView("CompactOverlay");
            }
        }

        private void ShowNowPlayingListButton_Click(object sender, RoutedEventArgs e)
        {
            ActionRequested?.Invoke(this, new ActionRequestedEventArgs
            {
                Action = Action.PlayQueue,
            });
        }

        private void UserControl_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            ViewModel.StoryboardOffset = e.NewSize.Width;
        }

        private void PlaybackSlider_ValueChangedByUserManipulation(object sender, SliderExtendedValueChangedEventArgs e)
        {
            ActionRequested?.Invoke(this, new ActionRequestedEventArgs
            {
                Action = Action.SeekPlayback,
                AdditionalData = (e.NewValue / ViewModel.ProgressBarMaximum),
            });
        }

        private async void VolumeSlider_ValueChangedByUserManipulation(object sender, SliderExtendedValueChangedEventArgs e)
        {
            try
            {
                await volumeSetSemaphore.WaitAsync();

                // There are new shiny requests waiting, so I'm not needed anymore :(
                if (volumeSetSemaphore.WaitingCount > 0)
                    return;

                ActionRequested?.Invoke(this, new ActionRequestedEventArgs
                {
                    Action = Action.SeekVolume,
                    AdditionalData = e.NewValue / 100.0,
                });

                // Don't overload the SeekVolume request.
                await Task.Delay(200);
            }
            finally
            {
                volumeSetSemaphore.Release();
            }
        }

        private async void SaveToYourLibrary_Click(object sender, RoutedEventArgs e)
        {
            var extraInfo = await songInfoCache.GetItem(currentSongId);
            extraInfo.IsSavedToLibrary = true;
            ViewModel.IsSavedToLibrary = true;

            var library = new Library();
            var result = await library.SaveTrackToLibrary(currentSongId);

            extraInfo.IsSavedToLibrary = result;
            ViewModel.IsSavedToLibrary = result;
        }

        private async void RemoveFromYourLibrary_Click(object sender, RoutedEventArgs e)
        {
            var extraInfo = await songInfoCache.GetItem(currentSongId);
            extraInfo.IsSavedToLibrary = false;
            ViewModel.IsSavedToLibrary = false;

            var library = new Library();
            var result = await library.RemoveTrackFromLibrary(currentSongId);

            extraInfo.IsSavedToLibrary = !result;
            ViewModel.IsSavedToLibrary = !result;
        }

        private async void VolumeSlider_PointerWheelChanged(object sender, PointerRoutedEventArgs e)
        {
            SliderExtended sliderExtended = (SliderExtended)sender;
            int delta = e.GetCurrentPoint(null).Properties.MouseWheelDelta;

            try
            {
                await volumeSetSemaphore.WaitAsync();

                // There are new shiny requests waiting, so I'm not needed anymore :(
                if (volumeSetSemaphore.WaitingCount > 0)
                    return;

                double newValue = Math.Max(0.0, Math.Min(sliderExtended.Value + ((double)delta / 20.0), 100.0));
                ActionRequested?.Invoke(this, new ActionRequestedEventArgs
                {
                    Action = Action.SeekVolume,
                    AdditionalData = newValue / 100.0,
                });

                // Don't overload the SeekVolume request.
                await Task.Delay(50);
            }
            finally
            {
                volumeSetSemaphore.Release();
            }
        }
    }

    public class ActionRequestedEventArgs
    {
        public NowPlayingView.Action Action { get; set; }
        public object AdditionalData { get; set; }
    }
}


================================================
FILE: XpoMusic/Controls/ProxyConfiguration.xaml
================================================
<UserControl
    x:Class="XpoMusic.Controls.ProxyConfiguration"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:XpoMusic.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vm="using:XpoMusic.ViewModels"
    mc:Ignorable="d"
    d:DesignHeight="420"
    d:DesignWidth="300">

    <UserControl.DataContext>
        <vm:ProxyConfigurationViewModel x:Name="ViewModel" />
    </UserControl.DataContext>
    
    <Grid x:Name="mainGrid">
        <StackPane
Download .txt
gitextract__tqfcrvl/

├── .gitattributes
├── .gitignore
├── LICENSE.md
├── Preview.md
├── README.md
├── XpoMusic/
│   ├── App.xaml
│   ├── App.xaml.cs
│   ├── Assets/
│   │   ├── ReauthorizeForV2.html
│   │   └── TileTemplates/
│   │       ├── LiveTileAlbumAndArtistArt.xml
│   │       ├── LiveTileAlbumArtOnly.xml
│   │       └── LiveTileArtistArtOnly.xml
│   ├── Classes/
│   │   ├── AppConstants.cs
│   │   ├── Cache/
│   │   │   ├── AlbumStore.cs
│   │   │   ├── ArtistStore.cs
│   │   │   ├── CacheStore.cs
│   │   │   ├── GlobalCache.cs
│   │   │   ├── PlaylistStore.cs
│   │   │   └── SongExtraInfoStore.cs
│   │   ├── Converters/
│   │   │   ├── BooleanToVisibilityConverter.cs
│   │   │   ├── LanguageToStringConverter.cs
│   │   │   ├── LiveTileDesignToStringConverter.cs
│   │   │   ├── MillisecondsToMinSecConverter.cs
│   │   │   └── ThemeToStringConverter.cs
│   │   ├── LocalConfiguration.cs
│   │   ├── Model/
│   │   │   ├── AutoPlayAction.cs
│   │   │   ├── Language.cs
│   │   │   ├── LocalStoragePlayback.cs
│   │   │   ├── LyricsViewer/
│   │   │   │   └── CurrentPlayingSongInfo.cs
│   │   │   ├── SongExtraInfo.cs
│   │   │   ├── Theme.cs
│   │   │   └── WebResourceModifications/
│   │   │       ├── WebResourceModificationRule.cs
│   │   │       ├── WebResourceModificationRuleType.cs
│   │   │       └── WebResourceStringModificationRule.cs
│   │   ├── PlayStatusTracker.cs
│   │   ├── SemaphoreQueue.cs
│   │   └── WebViewController.cs
│   ├── Controls/
│   │   ├── FlyoutContainer.xaml
│   │   ├── FlyoutContainer.xaml.cs
│   │   ├── NowPlayingView.xaml
│   │   ├── NowPlayingView.xaml.cs
│   │   ├── ProxyConfiguration.xaml
│   │   ├── ProxyConfiguration.xaml.cs
│   │   ├── SliderExtended.cs
│   │   ├── SplashScreen.xaml
│   │   ├── SplashScreen.xaml.cs
│   │   ├── TopBar.xaml
│   │   ├── TopBar.xaml.cs
│   │   ├── XpoMusicWebApp.xaml
│   │   └── XpoMusicWebApp.xaml.cs
│   ├── Flyouts/
│   │   ├── DeveloperMessageFlyout.xaml
│   │   ├── DeveloperMessageFlyout.xaml.cs
│   │   ├── IFlyout.cs
│   │   ├── SettingsFlyout.xaml
│   │   ├── SettingsFlyout.xaml.cs
│   │   ├── WhatsNewFlyout.xaml
│   │   └── WhatsNewFlyout.xaml.cs
│   ├── Helpers/
│   │   ├── AnalyticsHelper.cs
│   │   ├── AssetManager.cs
│   │   ├── ClipboardHelper.cs
│   │   ├── CropBitmap.cs
│   │   ├── DeveloperMessageHelper.cs
│   │   ├── DeviceInfoHelper.cs
│   │   ├── ImageSaveHelper.cs
│   │   ├── Integration/
│   │   │   └── LyricsViewerIntegrationHelper.cs
│   │   ├── JumpListHelper.cs
│   │   ├── KeyboardShortcutHelper.cs
│   │   ├── LanguageHelper.cs
│   │   ├── LiveTileHelper.cs
│   │   ├── MediaControlsHelper.cs
│   │   ├── PackageHelper.cs
│   │   ├── PlaybackActionHelper.cs
│   │   ├── ProxyHelper.cs
│   │   ├── SongImageProvider.cs
│   │   ├── SpotifyShareUriHelper.cs
│   │   ├── StoryboardExtensions.cs
│   │   ├── StuckResolveHelper.cs
│   │   ├── ThemeHelper.cs
│   │   ├── TileHelper.cs
│   │   ├── ToastHelper.cs
│   │   ├── UnauthorizedHelper.cs
│   │   ├── WebResourceModificationHelper.cs
│   │   └── WhatsNewHelper.cs
│   ├── InjectedAssets/
│   │   ├── clearPlaybackLocalStorage.js
│   │   ├── clickOnFacebookLogin.js
│   │   ├── gridTest.html
│   │   └── isLoggedInCheck.js
│   ├── NLog.config
│   ├── Package.appxmanifest
│   ├── Package.debug.appxmanifest
│   ├── Pages/
│   │   ├── AboutPage.xaml
│   │   ├── AboutPage.xaml.cs
│   │   ├── DonatePage.xaml
│   │   ├── DonatePage.xaml.cs
│   │   ├── HelpPage.xaml
│   │   ├── HelpPage.xaml.cs
│   │   ├── MainPage.xaml
│   │   ├── MainPage.xaml.cs
│   │   ├── SettingsPage.xaml
│   │   └── SettingsPage.xaml.cs
│   ├── Properties/
│   │   ├── AssemblyInfo.cs
│   │   └── Default.rd.xml
│   ├── Scripts/
│   │   ├── Common/
│   │   │   ├── action.ts
│   │   │   ├── browserHistory.ts
│   │   │   ├── color.ts
│   │   │   ├── dragDrop.ts
│   │   │   ├── indeterminateProgressBarHandler.ts
│   │   │   ├── initScript-common.ts
│   │   │   ├── keyboardShortcutListener.ts
│   │   │   ├── mouseWheelListener.ts
│   │   │   ├── pageTitleFinder.ts
│   │   │   ├── playbackStuckHelper.ts
│   │   │   ├── requestIntercepter.ts
│   │   │   ├── resize.ts
│   │   │   ├── startupAnimation.ts
│   │   │   ├── statusReport.ts
│   │   │   ├── themedScrollbar.ts
│   │   │   ├── tracklistExtended.ts
│   │   │   ├── uiElementModifier.ts
│   │   │   ├── uiInjector.ts
│   │   │   ├── uriHelper.ts
│   │   │   └── web-player-backup.ts
│   │   ├── DarkTheme/
│   │   │   ├── initScript-dark.ts
│   │   │   └── tsconfig.json
│   │   ├── Lib/
│   │   │   ├── focus-visible.ts
│   │   │   └── vibrant.ts
│   │   ├── LightTheme/
│   │   │   ├── initScript-light.ts
│   │   │   ├── pageOverlay.ts
│   │   │   └── tsconfig.json
│   │   └── SpotifyApi/
│   │       ├── apiBase.ts
│   │       ├── library.ts
│   │       └── player.ts
│   ├── SpotifyApi/
│   │   ├── Album.cs
│   │   ├── ApiBase.cs
│   │   ├── Artist.cs
│   │   ├── Authorization.cs
│   │   ├── Library.cs
│   │   ├── Model/
│   │   │   ├── AlbumSimplified.cs
│   │   │   ├── Artist.cs
│   │   │   ├── ArtistSimplified.cs
│   │   │   ├── CurrentlyPlayingContext.cs
│   │   │   ├── Device.cs
│   │   │   ├── Devices.cs
│   │   │   ├── FollowedArtistsResponse.cs
│   │   │   ├── Image.cs
│   │   │   ├── Paging.cs
│   │   │   ├── Playlist.cs
│   │   │   ├── SavedAlbum.cs
│   │   │   └── Track.cs
│   │   ├── Player.cs
│   │   ├── Playlist.cs
│   │   └── TokenHelper.cs
│   ├── Styles/
│   │   ├── CircleButtonStyle.xaml
│   │   ├── MinimalButtonStyle.xaml
│   │   ├── TopBarDarkButtonStyle.xaml
│   │   └── TopBarLightButtonStyle.xaml
│   ├── Stylesheets/
│   │   ├── Common/
│   │   │   ├── Animation/
│   │   │   │   ├── artistPage.scss
│   │   │   │   ├── navbarStartup.scss
│   │   │   │   ├── nowPlayingStartup.scss
│   │   │   │   ├── pageEntrance.scss
│   │   │   │   ├── pivotEntrance.scss
│   │   │   │   ├── searchPage.scss
│   │   │   │   └── tracklistEntrance.scss
│   │   │   ├── adsContainer.scss
│   │   │   ├── artistPage.scss
│   │   │   ├── backButton.scss
│   │   │   ├── common.scss
│   │   │   ├── contextMenu.scss
│   │   │   ├── fontStyle.scss
│   │   │   ├── general.scss
│   │   │   ├── navBar.scss
│   │   │   ├── nowPlayingBar.scss
│   │   │   ├── pivotTabStyle.scss
│   │   │   ├── searchPage.scss
│   │   │   ├── smallWidthWindow.scss
│   │   │   ├── themedScrollbar.scss
│   │   │   ├── trackList.scss
│   │   │   └── windowTitle.scss
│   │   ├── DarkTheme/
│   │   │   └── dark.scss
│   │   └── LightTheme/
│   │       ├── artistPage.scss
│   │       ├── contextMenu.scss
│   │       ├── general.scss
│   │       ├── light.scss
│   │       ├── navBar.scss
│   │       ├── nowPlayingBar.scss
│   │       ├── pivotTabStyle.scss
│   │       ├── podcastEpisodeDetails.scss
│   │       ├── progressBar.scss
│   │       ├── searchPage.scss
│   │       ├── trackList.scss
│   │       └── windowTitle.scss
│   ├── Themes/
│   │   └── Generic.xaml
│   ├── ViewModels/
│   │   ├── MainPageViewModel.cs
│   │   ├── NowPlayingViewModel.cs
│   │   ├── ProxyConfigurationViewModel.cs
│   │   ├── SettingsViewModel.cs
│   │   ├── TopBarViewModel.cs
│   │   └── ViewModelBase.cs
│   ├── XpoMusic.csproj
│   ├── XpotifyApi/
│   │   ├── AppConstantsApi.cs
│   │   ├── AssetUpdatesApi.cs
│   │   ├── DeveloperMessageApi.cs
│   │   └── Model/
│   │       ├── AssetPackage.cs
│   │       ├── AssetPackageInfo.cs
│   │       ├── DeveloperMessage.cs
│   │       └── DeveloperMessageCollection.cs
│   ├── compilerconfig.json
│   └── compilerconfig.json.defaults
├── XpoMusic.sln
├── XpoMusicInstaller/
│   ├── App.config
│   ├── App.xaml
│   ├── App.xaml.cs
│   ├── MainWindow.xaml
│   ├── MainWindow.xaml.cs
│   ├── Properties/
│   │   ├── AssemblyInfo.cs
│   │   ├── Resources.Designer.cs
│   │   ├── Resources.resx
│   │   ├── Settings.Designer.cs
│   │   └── Settings.settings
│   ├── Resources/
│   │   └── XpoMusic.cer
│   ├── XpoMusicInstaller.csproj
│   └── app.manifest
└── XpoMusicWebAgent/
    ├── Model/
    │   ├── ActionRequestedEventArgs.cs
    │   ├── InitFailedEventArgs.cs
    │   ├── LogMessageReceivedEventArgs.cs
    │   ├── NowPlayingData.cs
    │   ├── ProgressBarCommandEventArgs.cs
    │   ├── StatusReportReceivedEventArgs.cs
    │   └── WebAppStatus.cs
    ├── Properties/
    │   └── AssemblyInfo.cs
    ├── WebAgent.cs
    └── XpoMusicWebAgent.csproj
Download .txt
SYMBOL INDEX (646 symbols across 141 files)

FILE: XpoMusic/App.xaml.cs
  class App (line 32) | sealed partial class App : Application
    method App (line 40) | public App()
    method App_UnhandledException (line 53) | private async void App_UnhandledException(object sender, Windows.UI.Xa...
    method OnLaunched (line 67) | protected override void OnLaunched(LaunchActivatedEventArgs e)
    method OnActivated (line 104) | protected override void OnActivated(IActivatedEventArgs e)
    method InitRootFrame (line 180) | private Frame InitRootFrame(ApplicationExecutionState previousExecutio...
    method OnNavigationFailed (line 211) | void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
    method OnSuspending (line 223) | private void OnSuspending(object sender, SuspendingEventArgs e)

FILE: XpoMusic/Classes/AppConstants.cs
  class AppConstants (line 16) | public class AppConstants
    method AppConstants (line 32) | private AppConstants()
    method Update (line 159) | public static async void Update()

FILE: XpoMusic/Classes/Cache/AlbumStore.cs
  class AlbumStore (line 9) | public class AlbumStore : CacheStore<SpotifyApi.Model.AlbumSimplified>
    method RetrieveItem (line 11) | protected override Task<SpotifyApi.Model.AlbumSimplified> RetrieveItem...

FILE: XpoMusic/Classes/Cache/ArtistStore.cs
  class ArtistStore (line 9) | public class ArtistStore : CacheStore<SpotifyApi.Model.Artist>
    method RetrieveItem (line 11) | protected override Task<SpotifyApi.Model.Artist> RetrieveItem(string key)

FILE: XpoMusic/Classes/Cache/CacheStore.cs
  class CacheStore (line 9) | public abstract class CacheStore<T>
    method Clear (line 14) | public void Clear()
    method RetrieveItem (line 19) | protected abstract Task<T> RetrieveItem(string key);
    method GetItem (line 21) | public async Task<T> GetItem(string key)

FILE: XpoMusic/Classes/Cache/GlobalCache.cs
  class GlobalCache (line 9) | public static class GlobalCache

FILE: XpoMusic/Classes/Cache/PlaylistStore.cs
  class PlaylistStore (line 9) | public class PlaylistStore : CacheStore<SpotifyApi.Model.Playlist>
    method RetrieveItem (line 11) | protected override Task<SpotifyApi.Model.Playlist> RetrieveItem(string...

FILE: XpoMusic/Classes/Cache/SongExtraInfoStore.cs
  class SongExtraInfoStore (line 11) | public class SongExtraInfoStore : CacheStore<SongExtraInfo>
    method RetrieveItem (line 13) | protected override async Task<SongExtraInfo> RetrieveItem(string key)

FILE: XpoMusic/Classes/Converters/BooleanToVisibilityConverter.cs
  class BooleanToVisibilityConverter (line 11) | public class BooleanToVisibilityConverter : IValueConverter
    method Convert (line 13) | public object Convert(object value, Type targetType, object parameter,...
    method ConvertBack (line 17) | public object ConvertBack(object value, Type targetType, object parame...

FILE: XpoMusic/Classes/Converters/LanguageToStringConverter.cs
  class LanguageToStringConverter (line 12) | public class LanguageToStringConverter : IValueConverter
    method Convert (line 14) | public object Convert(object value, Type targetType, object parameter,...
    method ConvertBack (line 21) | public object ConvertBack(object value, Type targetType, object parame...

FILE: XpoMusic/Classes/Converters/LiveTileDesignToStringConverter.cs
  class LiveTileDesignToStringConverter (line 13) | public class LiveTileDesignToStringConverter : IValueConverter
    method Convert (line 15) | public object Convert(object value, Type targetType, object parameter,...
    method ConvertBack (line 34) | public object ConvertBack(object value, Type targetType, object parame...

FILE: XpoMusic/Classes/Converters/MillisecondsToMinSecConverter.cs
  class MillisecondsToMinSecConverter (line 10) | public class MillisecondsToMinSecConverter : IValueConverter
    method Convert (line 12) | public object Convert(object value, Type targetType, object parameter,...
    method ConvertBack (line 20) | public object ConvertBack(object value, Type targetType, object parame...

FILE: XpoMusic/Classes/Converters/ThemeToStringConverter.cs
  class ThemeToStringConverter (line 12) | public class ThemeToStringConverter : IValueConverter
    method Convert (line 14) | public object Convert(object value, Type targetType, object parameter,...
    method ConvertBack (line 21) | public object ConvertBack(object value, Type targetType, object parame...

FILE: XpoMusic/Classes/LocalConfiguration.cs
  class LocalConfiguration (line 15) | public static class LocalConfiguration
    method AddIdToDeveloperMessageShownIds (line 180) | public static void AddIdToDeveloperMessageShownIds(string id)
    method GetConfiguration (line 292) | private static string GetConfiguration(string key)
    method SetConfiguration (line 301) | private static void SetConfiguration(string key, string value)

FILE: XpoMusic/Classes/Model/AutoPlayAction.cs
  type AutoPlayAction (line 9) | public enum AutoPlayAction

FILE: XpoMusic/Classes/Model/Language.cs
  type Language (line 9) | public enum Language

FILE: XpoMusic/Classes/Model/LocalStoragePlayback.cs
  class LocalStoragePlayback (line 9) | public class LocalStoragePlayback

FILE: XpoMusic/Classes/Model/LyricsViewer/CurrentPlayingSongInfo.cs
  class CurrentPlayingSongInfo (line 9) | public class CurrentPlayingSongInfo
    method Equals (line 16) | public override bool Equals(object obj)
    method GetHashCode (line 29) | public override int GetHashCode()

FILE: XpoMusic/Classes/Model/SongExtraInfo.cs
  class SongExtraInfo (line 9) | public class SongExtraInfo

FILE: XpoMusic/Classes/Model/Theme.cs
  type Theme (line 9) | public enum Theme

FILE: XpoMusic/Classes/Model/WebResourceModifications/WebResourceModificationRule.cs
  class WebResourceModificationRule (line 10) | public class WebResourceModificationRule
    method Match (line 17) | public bool Match(string requestUri) => Regex.IsMatch(requestUri, UriR...

FILE: XpoMusic/Classes/Model/WebResourceModifications/WebResourceModificationRuleType.cs
  type WebResourceModificationRuleType (line 9) | public enum WebResourceModificationRuleType

FILE: XpoMusic/Classes/Model/WebResourceModifications/WebResourceStringModificationRule.cs
  class WebResourceStringModificationRule (line 10) | public class WebResourceStringModificationRule
    method Apply (line 15) | public string Apply(string responseString) => Regex.Replace(responseSt...

FILE: XpoMusic/Classes/PlayStatusTracker.cs
  class PlayStatusTracker (line 19) | public static class PlayStatusTracker
    class LastPlayStatus (line 28) | public static class LastPlayStatus
      method InvokeUpdated (line 63) | internal static void InvokeUpdated()
    method PlayStatusTracker (line 69) | static PlayStatusTracker()
    method SeekPlayback (line 78) | public static void SeekPlayback(double percentage)
    method SeekVolume (line 84) | public static void SeekVolume(double percentage)
    method Timer_Tick (line 90) | private static async void Timer_Tick(object sender, object e)
    method StartRegularRefresh (line 103) | public static void StartRegularRefresh()
    method LocalPlaybackDataReceived (line 111) | public static async void LocalPlaybackDataReceived(NowPlayingData data)
    method RefreshPlayStatus (line 185) | public static async Task RefreshPlayStatus()

FILE: XpoMusic/Classes/SemaphoreQueue.cs
  class SemaphoreQueue (line 11) | public class SemaphoreQueue
    method SemaphoreQueue (line 18) | public SemaphoreQueue(int initialCount)
    method SemaphoreQueue (line 23) | public SemaphoreQueue(int initialCount, int maxCount)
    method Wait (line 28) | public void Wait()
    method WaitAsync (line 33) | public Task WaitAsync()
    method Release (line 46) | public void Release()

FILE: XpoMusic/Classes/WebViewController.cs
  class WebViewController (line 19) | public class WebViewController
    method WebViewController (line 29) | public WebViewController(WebView webView)
    method Navigate (line 34) | public void Navigate(Uri targetUri)
    method Navigate (line 39) | private void Navigate(Uri targetUri, Language language)
    method InjectInitScript (line 51) | public async Task<bool> InjectInitScript(bool lightTheme)
    method CheckLoggedIn (line 104) | public async Task<bool> CheckLoggedIn()
    method TryPushingFacebookLoginButton (line 112) | public async Task<bool> TryPushingFacebookLoginButton()
    method EnableNowPlaying (line 120) | public async Task EnableNowPlaying()
    method GoBackIfPossible (line 126) | public async Task<bool> GoBackIfPossible()
    method ClearCookies (line 134) | public void ClearCookies()
    method ClearCookies (line 148) | private void ClearCookies(Uri uri)
    method GetPageUrl (line 157) | public async Task<string> GetPageUrl()
    method GetPageTitle (line 162) | public async Task<string> GetPageTitle()
    method NavigateToSpotifyUrl (line 170) | public async Task NavigateToSpotifyUrl(string url)
    method AutoPlay (line 185) | internal async Task AutoPlay(AutoPlayAction action)
    method ClearPlaybackLocalStorage (line 196) | public async Task<string> ClearPlaybackLocalStorage()
    method PlayPause (line 204) | public async Task<bool> PlayPause()
    method Play (line 212) | public async Task<bool> Play()
    method Pause (line 220) | public async Task<bool> Pause()
    method NextTrack (line 228) | public async Task<bool> NextTrack()
    method PreviousTrack (line 236) | public async Task<bool> PreviousTrack(bool canGoToBeginningOfCurrentSo...
    method IsPlayingOnThisApp (line 249) | internal async Task<bool> IsPlayingOnThisApp()
    method SeekPlayback (line 257) | internal async Task SeekPlayback(double percentage)
    method SeekVolume (line 263) | internal async Task SeekVolume(double percentage)
    method OnKeyDown (line 269) | internal async Task<bool> OnKeyDown(int charCode, bool shiftPressed, b...
    method TryResolvePlaybackStartStuck (line 279) | internal async Task TryResolvePlaybackStartStuck()
    method TryResolvePlaybackMiddleStuck (line 285) | internal async Task TryResolvePlaybackMiddleStuck()

FILE: XpoMusic/Controls/FlyoutContainer.xaml.cs
  class FlyoutContainer (line 21) | public sealed partial class FlyoutContainer : UserControl
    method FlyoutContainer (line 23) | public FlyoutContainer()
    method OpenSettings (line 28) | public void OpenSettings()
    method OpenHelp (line 33) | public void OpenHelp()
    method OpenAbout (line 38) | public void OpenAbout()
    method OpenDonate (line 43) | public void OpenDonate()
    method OpenSettings (line 48) | private void OpenSettings(int tabId)
    method OpenWhatsNew (line 55) | public async void OpenWhatsNew()
    method OpenDeveloperMessage (line 66) | public async void OpenDeveloperMessage(DeveloperMessage message)
    method WhatsNewFlyout_FlyoutCloseRequest (line 80) | private void WhatsNewFlyout_FlyoutCloseRequest(object sender, EventArg...
    method SettingsFlyout_FlyoutCloseRequest (line 85) | private void SettingsFlyout_FlyoutCloseRequest(object sender, EventArg...
    method DeveloperMessageFlyout_FlyoutCloseRequest (line 90) | private void DeveloperMessageFlyout_FlyoutCloseRequest(object sender, ...
    method CloseOverlays (line 95) | private async void CloseOverlays()

FILE: XpoMusic/Controls/NowPlayingView.xaml.cs
  class NowPlayingView (line 17) | public sealed partial class NowPlayingView : UserControl
    type NowPlayingViewMode (line 22) | public enum NowPlayingViewMode
    type Action (line 28) | public enum Action
    type AnimationState (line 36) | private enum AnimationState
    method OnIsOpenPropertyChanged (line 75) | private static void OnIsOpenPropertyChanged(DependencyObject d, Depend...
    method OnViewModePropertyChanged (line 96) | private static void OnViewModePropertyChanged(DependencyObject d, Depe...
    method NowPlayingView (line 126) | public NowPlayingView()
    method ViewModel_PropertyChanged (line 142) | private void ViewModel_PropertyChanged(object sender, System.Component...
    method ActivateProgressRing (line 148) | public void ActivateProgressRing()
    method LastPlayStatus_Updated (line 153) | private void LastPlayStatus_Updated(object sender, EventArgs e)
    method Timer_Tick (line 158) | private void Timer_Tick(object sender, object e)
    method TryUpdate (line 163) | private async void TryUpdate()
    method Update (line 178) | private async Task Update()
    method SetTopBar (line 281) | private void SetTopBar()
    method OnViewClosed (line 286) | private void OnViewClosed()
    method HideNameAndAlbumArtQuick (line 295) | private void HideNameAndAlbumArtQuick()
    method RefreshPlayStatus (line 301) | private async void RefreshPlayStatus()
    method BackButton_Click (line 307) | private async void BackButton_Click(object sender, RoutedEventArgs e)
    method PauseButton_Click (line 338) | private async void PauseButton_Click(object sender, RoutedEventArgs e)
    method PlayButton_Click (line 376) | private async void PlayButton_Click(object sender, RoutedEventArgs e)
    method PrevTrackButton_Click (line 414) | private async void PrevTrackButton_Click(object sender, RoutedEventArg...
    method PrevTrack (line 426) | private async Task PrevTrack(bool canGoToBeginningOfCurrentSong)
    method NextTrackButton_Click (line 453) | private async void NextTrackButton_Click(object sender, RoutedEventArg...
    method NextTrack (line 458) | private async Task NextTrack()
    method HideToRightAnimation (line 482) | private async void HideToRightAnimation()
    method HideToLeftAnimation (line 492) | private async void HideToLeftAnimation()
    method PlayChangeTrackAnimation (line 502) | public void PlayChangeTrackAnimation(bool reverse)
    method SetPrevTrackCommandIssued (line 515) | private async void SetPrevTrackCommandIssued()
    method UserControl_PointerPressed (line 534) | private void UserControl_PointerPressed(object sender, PointerRoutedEv...
    method UserControl_PointerMoved (line 539) | private void UserControl_PointerMoved(object sender, PointerRoutedEven...
    method UserControl_PointerReleased (line 557) | private void UserControl_PointerReleased(object sender, PointerRoutedE...
    method SwipeFinished (line 565) | private async void SwipeFinished(double finalX)
    method UserControl_PointerExited (line 583) | private void UserControl_PointerExited(object sender, PointerRoutedEve...
    method UserControl_Loaded (line 594) | private async void UserControl_Loaded(object sender, RoutedEventArgs e)
    method FullScreenButton_Click (line 607) | private void FullScreenButton_Click(object sender, RoutedEventArgs e)
    method ToggleFullscreen (line 612) | public void ToggleFullscreen()
    method MiniViewButton_Click (line 627) | private async void MiniViewButton_Click(object sender, RoutedEventArgs e)
    method SwitchToMiniView (line 632) | public async Task SwitchToMiniView()
    method ShowNowPlayingListButton_Click (line 653) | private void ShowNowPlayingListButton_Click(object sender, RoutedEvent...
    method UserControl_SizeChanged (line 661) | private void UserControl_SizeChanged(object sender, SizeChangedEventAr...
    method PlaybackSlider_ValueChangedByUserManipulation (line 666) | private void PlaybackSlider_ValueChangedByUserManipulation(object send...
    method VolumeSlider_ValueChangedByUserManipulation (line 675) | private async void VolumeSlider_ValueChangedByUserManipulation(object ...
    method SaveToYourLibrary_Click (line 700) | private async void SaveToYourLibrary_Click(object sender, RoutedEventA...
    method RemoveFromYourLibrary_Click (line 713) | private async void RemoveFromYourLibrary_Click(object sender, RoutedEv...
    method VolumeSlider_PointerWheelChanged (line 726) | private async void VolumeSlider_PointerWheelChanged(object sender, Poi...
  class ActionRequestedEventArgs (line 756) | public class ActionRequestedEventArgs

FILE: XpoMusic/Controls/ProxyConfiguration.xaml.cs
  class ProxyConfiguration (line 23) | public sealed partial class ProxyConfiguration : UserControl
    method ProxyConfiguration (line 27) | public ProxyConfiguration()
    method PortTextBox_BeforeTextChanging (line 32) | private void PortTextBox_BeforeTextChanging(TextBox sender, TextBoxBef...
    method Button_Click (line 37) | private async void Button_Click(object sender, RoutedEventArgs e)
    method RestartApp_Click (line 63) | private void RestartApp_Click(object sender, RoutedEventArgs e)
    method LocalProxyHelp_Click (line 68) | private async void LocalProxyHelp_Click(object sender, RoutedEventArgs e)

FILE: XpoMusic/Controls/SliderExtended.cs
  class SliderExtended (line 17) | public sealed class SliderExtended : Slider
    method SliderExtended (line 27) | public SliderExtended()
    method OnApplyTemplate (line 90) | protected override void OnApplyTemplate()
    method SliderExtended_ManipulationCompleted (line 107) | private void SliderExtended_ManipulationCompleted(object sender, Manip...
    method SliderExtended_ManipulationStarted (line 115) | private void SliderExtended_ManipulationStarted(object sender, Manipul...
    method Thumb_DragStarted (line 121) | private void Thumb_DragStarted(object sender, DragStartedEventArgs e)
    method Thumb_DragCompleted (line 127) | private void Thumb_DragCompleted(object sender, DragCompletedEventArgs e)
    method OnValueChanged (line 135) | protected override async void OnValueChanged(double oldValue, double n...
    method OnKeyDown (line 162) | protected override void OnKeyDown(KeyRoutedEventArgs e)
  class SliderExtendedValueChangedEventArgs (line 173) | public class SliderExtendedValueChangedEventArgs

FILE: XpoMusic/Controls/SplashScreen.xaml.cs
  class SplashScreen (line 20) | public sealed partial class SplashScreen : UserControl
    type SplashScreenShowState (line 22) | public enum SplashScreenShowState
    method OnSplashStatePropertyChanged (line 58) | private static void OnSplashStatePropertyChanged(DependencyObject d, D...
    method SplashScreen (line 64) | public SplashScreen()
    method UserControl_Loaded (line 69) | private void UserControl_Loaded(object sender, RoutedEventArgs e)

FILE: XpoMusic/Controls/TopBar.xaml.cs
  class TopBar (line 25) | public sealed partial class TopBar : UserControl
    method OnShowExtraButtonsPropertyChanged (line 52) | private static void OnShowExtraButtonsPropertyChanged(DependencyObject...
    method TopBar (line 60) | public TopBar()
    method UserControl_Loaded (line 73) | private void UserControl_Loaded(object sender, RoutedEventArgs e)
    method ClipboardCheckTimer_Tick (line 85) | private void ClipboardCheckTimer_Tick(object sender, object e)
    method OpenLinkFromClipboard_Click (line 94) | private async void OpenLinkFromClipboard_Click(object sender, RoutedEv...
    method Window_Activated (line 104) | private void Window_Activated(object sender, WindowActivatedEventArgs e)
    method CheckForSpotifyUriInClipboard (line 112) | private async void CheckForSpotifyUriInClipboard()
    method CoreTitleBar_IsVisibleChanged (line 134) | private void CoreTitleBar_IsVisibleChanged(CoreApplicationViewTitleBar...
    method CoreTitleBar_LayoutMetricsChanged (line 139) | private void CoreTitleBar_LayoutMetricsChanged(CoreApplicationViewTitl...
    method UpdateTitleBarSize (line 144) | private void UpdateTitleBarSize()
    method InitTitleBar (line 161) | public void InitTitleBar()
    method UpdateTitleBarColors (line 170) | public void UpdateTitleBarColors(Theme theme)

FILE: XpoMusic/Controls/XpoMusicWebApp.xaml.cs
  class XpoMusicWebApp (line 21) | public sealed partial class XpoMusicWebApp : UserControl
    type XpoMusicWebAppActionRequest (line 25) | public enum XpoMusicWebAppActionRequest
    method OnIsOpenPropertyChanged (line 65) | private static void OnIsOpenPropertyChanged(DependencyObject d, Depend...
    method XpoMusicWebApp (line 77) | public XpoMusicWebApp()
    method App_ConstantsUpdated (line 105) | private void App_ConstantsUpdated(object sender, EventArgs e)
    method SetInvertColorFilterVisibility (line 110) | private void SetInvertColorFilterVisibility()
    method XpotifyWebAgent_LogMessageReceived (line 115) | private void XpotifyWebAgent_LogMessageReceived(object sender, LogMess...
    method XpotifyWebAgent_NewAccessTokenRequested (line 120) | private async void XpotifyWebAgent_NewAccessTokenRequested(object send...
    method XpotifyWebAgent_InitializationFailed (line 126) | private void XpotifyWebAgent_InitializationFailed(object sender, InitF...
    method XpotifyWebAgent_ActionRequested (line 133) | private async void XpotifyWebAgent_ActionRequested(object sender, XpoM...
    method XpotifyWebAgent_StatusReportReceived (line 168) | private void XpotifyWebAgent_StatusReportReceived(object sender, Statu...
    method XpotifyWebAgent_ProgressBarCommandReceived (line 177) | private void XpotifyWebAgent_ProgressBarCommandReceived(object sender,...
    method OpenWebApp (line 191) | public void OpenWebApp()
    method OpenWebApp (line 199) | public void OpenWebApp(string targetUrl)
    method MainWebView_NavigationFailed (line 230) | private async void MainWebView_NavigationFailed(object sender, WebView...
    method MainWebView_LoadCompleted (line 253) | private async void MainWebView_LoadCompleted(object sender, Navigation...
    method InitialLoadPageCompleted (line 324) | private async Task InitialLoadPageCompleted(string url)
    method SetFocusToWebView (line 351) | public async void SetFocusToWebView()
    method AutoPlayOnStartup (line 356) | private async void AutoPlayOnStartup(AutoPlayAction autoPlayAction)
    method MainWebView_NavigationStarting (line 363) | private async void MainWebView_NavigationStarting(WebView sender, WebV...
    method PinPageToStart (line 393) | private async Task PinPageToStart()
    method RetryConnectButton_Click (line 406) | private void RetryConnectButton_Click(object sender, RoutedEventArgs e)
    method FinalizeAuthorization (line 412) | private async void FinalizeAuthorization(string url)
    method Authorize (line 434) | public void Authorize(string targetUrl, bool clearExisting)
    method LoadFailedProxySettingsLink_Click (line 447) | private void LoadFailedProxySettingsLink_Click(object sender, RoutedEv...
    method SetInitialPlaybackState (line 453) | private async void SetInitialPlaybackState()
    method MainWebView_WebResourceRequested (line 474) | private void MainWebView_WebResourceRequested(WebView sender, WebViewW...

FILE: XpoMusic/Flyouts/DeveloperMessageFlyout.xaml.cs
  class DeveloperMessageFlyout (line 21) | public sealed partial class DeveloperMessageFlyout : UserControl, IFlyou...
    method DeveloperMessageFlyout (line 25) | public DeveloperMessageFlyout()
    method NavigationView_BackRequested (line 37) | private void NavigationView_BackRequested(Microsoft.UI.Xaml.Controls.N...
    method InitFlyout (line 42) | public void InitFlyout(DeveloperMessage message)
    method TimeAgo (line 52) | public static string TimeAgo(DateTime dateTime)

FILE: XpoMusic/Flyouts/IFlyout.cs
  type IFlyout (line 9) | internal interface IFlyout<T>

FILE: XpoMusic/Flyouts/SettingsFlyout.xaml.cs
  class SettingsFlyout (line 27) | public sealed partial class SettingsFlyout : UserControl, IFlyout<EventA...
    method SettingsFlyout (line 31) | public SettingsFlyout()
    method InitFlyout (line 41) | public void InitFlyout(int tabId)
    method NavigationView_BackRequested (line 46) | private void NavigationView_BackRequested(Microsoft.UI.Xaml.Controls.N...
    method NavigationView_SelectionChanged (line 51) | private void NavigationView_SelectionChanged(Microsoft.UI.Xaml.Control...

FILE: XpoMusic/Flyouts/WhatsNewFlyout.xaml.cs
  class WhatsNewFlyout (line 21) | public sealed partial class WhatsNewFlyout : UserControl, IFlyout<EventA...
    method WhatsNewFlyout (line 25) | public WhatsNewFlyout()
    method NavigationView_BackRequested (line 49) | private void NavigationView_BackRequested(Microsoft.UI.Xaml.Controls.N...
    method InitFlyout (line 54) | public void InitFlyout()
    method GetXpotifyPro_Click (line 83) | private async void GetXpotifyPro_Click(object sender, RoutedEventArgs e)

FILE: XpoMusic/Helpers/AnalyticsHelper.cs
  class AnalyticsHelper (line 12) | public static class AnalyticsHelper
    method Log (line 47) | public static void Log(string eventName, string action)
    method Log (line 60) | public static void Log(string eventName, string action, string label)
    method PageView (line 74) | internal static void PageView(string pageName, bool setNewSession = fa...

FILE: XpoMusic/Helpers/AssetManager.cs
  class AssetManager (line 15) | public static class AssetManager
    method UpdateAssets (line 24) | public static async void UpdateAssets()
    method GetAssetUpdateFolder (line 59) | private static async Task<StorageFolder> GetAssetUpdateFolder(string n...
    method GetAssetUpdateParentFolder (line 70) | private static async Task<StorageFolder> GetAssetUpdateParentFolder()
    method LoadAssetFolders (line 79) | private static async Task LoadAssetFolders()
    method LoadAssetString (line 124) | public static async Task<string> LoadAssetString(string fileName)
    method ReadTextFile (line 141) | private static async Task<string> ReadTextFile(string fileName, Storag...

FILE: XpoMusic/Helpers/ClipboardHelper.cs
  class ClipboardHelper (line 10) | public static class ClipboardHelper
    method IsSpotifyUriPresent (line 14) | public static async Task<bool> IsSpotifyUriPresent()
    method GetSpotifyUri (line 35) | public static async Task<string> GetSpotifyUri()

FILE: XpoMusic/Helpers/CropBitmap.cs
  class CropBitmap (line 16) | public static class CropBitmap
    method GetCroppedBitmapAsync (line 33) | public static async Task<WriteableBitmap> GetCroppedBitmapAsync(Storag...
    method GetPixelData (line 86) | private static async Task<byte[]> GetPixelData(BitmapDecoder decoder, ...
    method GetPixelData (line 98) | private static async Task<byte[]> GetPixelData(BitmapDecoder decoder, ...

FILE: XpoMusic/Helpers/DeveloperMessageHelper.cs
  class DeveloperMessageHelper (line 12) | public static class DeveloperMessageHelper
    method GetNextDeveloperMessage (line 16) | public static async Task<DeveloperMessage> GetNextDeveloperMessage()

FILE: XpoMusic/Helpers/DeviceInfoHelper.cs
  class DeviceInfoHelper (line 10) | public class DeviceInfoHelper
    method GetDeviceName (line 14) | public static string GetDeviceName()

FILE: XpoMusic/Helpers/ImageSaveHelper.cs
  class ImageSaveHelper (line 16) | public static class ImageSaveHelper
    method GetAndSaveTileOriginalImage (line 20) | public static async Task<Uri> GetAndSaveTileOriginalImage(string remot...
    method CreateTileCacheFolder (line 40) | private static async Task<StorageFolder> CreateTileCacheFolder()
    method SaveWritableBitmapToTileImageCache (line 45) | public static async Task<Uri> SaveWritableBitmapToTileImageCache(Write...

FILE: XpoMusic/Helpers/Integration/LyricsViewerIntegrationHelper.cs
  class LyricsViewerIntegrationHelper (line 14) | public static class LyricsViewerIntegrationHelper
    method SendPlaybackToLyricsViewer (line 25) | private static async Task SendPlaybackToLyricsViewer(CurrentPlayingSon...
    method Connection_ServiceClosed (line 67) | private static void Connection_ServiceClosed(AppServiceConnection send...
    method SendPlaybackToLyricsViewer (line 72) | internal static async void SendPlaybackToLyricsViewer()
    method InitIntegration (line 95) | internal static void InitIntegration()

FILE: XpoMusic/Helpers/JumpListHelper.cs
  class JumpListHelper (line 10) | public static class JumpListHelper
    method DeleteRecentJumplistEntries (line 18) | public static async void DeleteRecentJumplistEntries()

FILE: XpoMusic/Helpers/KeyboardShortcutHelper.cs
  class KeyboardShortcutHelper (line 11) | public static class KeyboardShortcutHelper
    type KeyDownProcessResult (line 13) | public enum KeyDownProcessResult
    method KeyDown (line 20) | public static async Task<KeyDownProcessResult> KeyDown(VirtualKey key,...

FILE: XpoMusic/Helpers/LanguageHelper.cs
  class LanguageHelper (line 10) | public static class LanguageHelper
    method GetLanguages (line 12) | public static List<Language> GetLanguages()
    method GetLanguageName (line 30) | public static string GetLanguageName(Language language)
    method GetHeaderLanguageString (line 82) | public static string GetHeaderLanguageString(Language language)

FILE: XpoMusic/Helpers/LiveTileHelper.cs
  class LiveTileHelper (line 18) | public static class LiveTileHelper
    type LiveTileDesign (line 20) | public enum LiveTileDesign
    method GetLiveTileDesigns (line 28) | internal static LiveTileDesign[] GetLiveTileDesigns()
    method InitLiveTileUpdates (line 43) | public static void InitLiveTileUpdates()
    method Current_Suspending (line 53) | private static void Current_Suspending(object sender, Windows.Applicat...
    method LastPlayStatus_Updated (line 59) | private static void LastPlayStatus_Updated(object sender, EventArgs e)
    method UpdateLiveTile (line 77) | public static async void UpdateLiveTile()
    method GetLiveTileTemplate (line 107) | private static string GetLiveTileTemplate(LiveTileDesign design)
    method UpdateTileWithTemplate (line 112) | private static void UpdateTileWithTemplate(string template)
    method ClearLiveTile (line 126) | public static void ClearLiveTile()
    method IsPinnedToStart (line 132) | internal static async Task<bool> IsPinnedToStart()
    method CanPinToStart (line 140) | internal static async Task<bool> CanPinToStart()
    method PinToStart (line 148) | internal static async Task PinToStart()

FILE: XpoMusic/Helpers/MediaControlsHelper.cs
  class MediaControlsHelper (line 15) | public static class MediaControlsHelper
    method Init (line 26) | public static async void Init(CoreDispatcher dispatcher)
    method LastPlayStatus_Updated (line 46) | private static async void LastPlayStatus_Updated(object sender, EventA...
    method UpdateMediaControls (line 58) | private static async Task UpdateMediaControls()
    method SystemControls_ButtonPressed (line 91) | private static async void SystemControls_ButtonPressed(SystemMediaTran...
    class TrackChangedEventArgs (line 147) | public class TrackChangedEventArgs
      type TrackChangeDirection (line 151) | public enum TrackChangeDirection

FILE: XpoMusic/Helpers/PackageHelper.cs
  class PackageHelper (line 12) | public static class PackageHelper
    method GetAppVersionString (line 19) | public static string GetAppVersionString()
    method GetAppNameString (line 28) | public static string GetAppNameString()
    method GetAppVersion (line 33) | public static Version GetAppVersion()
    method RestartApp (line 38) | public static void RestartApp()

FILE: XpoMusic/Helpers/PlaybackActionHelper.cs
  class PlaybackActionHelper (line 11) | public static class PlaybackActionHelper
    method SetController (line 15) | public static void SetController(WebViewController controller)
    method Play (line 20) | public static async Task<bool> Play()
    method Pause (line 31) | public static async Task<bool> Pause()
    method NextTrack (line 42) | public static async Task<bool> NextTrack()
    method PreviousTrack (line 57) | public static async Task<bool> PreviousTrack(bool canGoToBeginningOfCu...

FILE: XpoMusic/Helpers/ProxyHelper.cs
  class ProxyHelper (line 11) | public static class ProxyHelper
    type ProxyType (line 13) | public enum ProxyType
    method SetSocksProxyInProcess (line 23) | internal static void SetSocksProxyInProcess(string address, string port)
    method SetHttpHttpsProxyInProcess (line 28) | internal static void SetHttpHttpsProxyInProcess(string address, string...
    method SetProxyInProcess (line 33) | public static void SetProxyInProcess(string proxy, string proxyBypass)
    method ApplyProxySettings (line 53) | internal static void ApplyProxySettings()
    type INTERNET_OPTION (line 69) | internal enum INTERNET_OPTION
    class INTERNET_PROXY_INFO (line 77) | [StructLayout(LayoutKind.Sequential)]
    type INTERNET_OPEN_TYPE (line 90) | internal enum INTERNET_OPEN_TYPE
    method UrlMkSetSessionOption (line 98) | [DllImport("urlmon.dll", CharSet = CharSet.Auto, SetLastError = true)]

FILE: XpoMusic/Helpers/SongImageProvider.cs
  class SongImageProvider (line 12) | public static class SongImageProvider
    method GetArtistArt (line 20) | public static async Task<string> GetArtistArt(string artistId)
    method GetAlbumArt (line 39) | public static async Task<string> GetAlbumArt(string albumId)
    method GetPlaylistArt (line 58) | public static async Task<string> GetPlaylistArt(string playlistId)

FILE: XpoMusic/Helpers/SpotifyShareUriHelper.cs
  class SpotifyShareUriHelper (line 10) | public static class SpotifyShareUriHelper
    method GetPwaUri (line 12) | public static string GetPwaUri(string uri)
    method ParseNlUri (line 63) | private static string ParseNlUri(string base64Code)

FILE: XpoMusic/Helpers/StoryboardExtensions.cs
  class StoryboardExtensions (line 10) | public static class StoryboardExtensions
    method RunAsync (line 12) | public static async Task RunAsync(this Storyboard storyboard)

FILE: XpoMusic/Helpers/StuckResolveHelper.cs
  class StuckResolveHelper (line 12) | public static class StuckResolveHelper
    method StatusReportReceived (line 20) | public static async void StatusReportReceived(NowPlayingData data, Web...
    method PlayMiddleStuckResolve (line 78) | private static async Task PlayMiddleStuckResolve(WebViewController con...
    method PlayStartStuckResolve (line 84) | private static async Task PlayStartStuckResolve(WebViewController cont...
    method LogPlaybackStuck (line 103) | private static void LogPlaybackStuck(string code)

FILE: XpoMusic/Helpers/ThemeHelper.cs
  class ThemeHelper (line 12) | public static class ThemeHelper
    method GetThemes (line 14) | public static List<Theme> GetThemes()
    method GetThemeName (line 29) | public static string GetThemeName(Theme theme)
    method GetCurrentTheme (line 44) | internal static Theme GetCurrentTheme()

FILE: XpoMusic/Helpers/TileHelper.cs
  class TileHelper (line 17) | public static class TileHelper
    method PinPageToStart (line 21) | public static async Task<bool> PinPageToStart(string pageUrl, string t...
    method GetTileImages (line 61) | public static async Task<TileImageCollection> GetTileImages(string pag...
    method CreateTileImages (line 113) | private static async Task<TileImageCollection> CreateTileImages(Uri im...
    method GetCropDetails (line 136) | public static (Point, Size) GetCropDetails(BitmapDecoder decoder, doub...
  class TileImageCollection (line 159) | public class TileImageCollection

FILE: XpoMusic/Helpers/ToastHelper.cs
  class ToastHelper (line 10) | public static class ToastHelper
    method SendDebugToast (line 12) | public static void SendDebugToast(string title, string text)
    method SendReopenAppToast (line 38) | public static void SendReopenAppToast()

FILE: XpoMusic/Helpers/UnauthorizedHelper.cs
  class UnauthorizedHelper (line 11) | public static class UnauthorizedHelper
    method OnUnauthorizedError (line 17) | public static async void OnUnauthorizedError()

FILE: XpoMusic/Helpers/WebResourceModificationHelper.cs
  class WebResourceModificationHelper (line 14) | public static class WebResourceModificationHelper
    method WebResourceRequested (line 18) | public static async Task<HttpResponseMessage> WebResourceRequested(Htt...
    method DownloadFile (line 64) | private static async Task<HttpResponseMessage> DownloadFile(HttpReques...

FILE: XpoMusic/Helpers/WhatsNewHelper.cs
  class WhatsNewHelper (line 10) | public static class WhatsNewHelper
    method ShouldShowWhatsNew (line 15) | public static bool ShouldShowWhatsNew()
    method GetWhatsNewContentIdAndMarkAsRead (line 40) | public static List<string> GetWhatsNewContentIdAndMarkAsRead()
    method GetWhatsNewContentId (line 52) | private static List<string> GetWhatsNewContentId()
    method MarkThisWhatsNewAsRead (line 80) | private static void MarkThisWhatsNewAsRead()

FILE: XpoMusic/InjectedAssets/clearPlaybackLocalStorage.js
  function clearPlaybackLocalStorage (line 6) | function clearPlaybackLocalStorage() {

FILE: XpoMusic/InjectedAssets/clickOnFacebookLogin.js
  function pushFacebookButton (line 2) | function pushFacebookButton() {

FILE: XpoMusic/Pages/AboutPage.xaml.cs
  class AboutPage (line 24) | public sealed partial class AboutPage : Page
    method AboutPage (line 30) | public AboutPage()
    method RateAndReviewButton_Click (line 59) | private async void RateAndReviewButton_Click(object sender, RoutedEven...
    method PrivacyPolicyButton_Click (line 65) | private async void PrivacyPolicyButton_Click(object sender, RoutedEven...
    method TwitterButton_Click (line 71) | private async void TwitterButton_Click(object sender, RoutedEventArgs e)
    method GitHubButton_Click (line 77) | private async void GitHubButton_Click(object sender, RoutedEventArgs e)

FILE: XpoMusic/Pages/DonatePage.xaml.cs
  class DonatePage (line 22) | public sealed partial class DonatePage : Page
    method DonatePage (line 27) | public DonatePage()
    method CopyBitcoinAddressToClipboard_Click (line 37) | private async void CopyBitcoinAddressToClipboard_Click(object sender, ...
    method CopyEthereumAddressToClipboard_Click (line 47) | private async void CopyEthereumAddressToClipboard_Click(object sender,...
    method CopyTextToClipboard (line 57) | private void CopyTextToClipboard(string text)

FILE: XpoMusic/Pages/HelpPage.xaml.cs
  class HelpPage (line 29) | public sealed partial class HelpPage : Page
    method HelpPage (line 37) | public HelpPage()
    method Contact_Click (line 42) | private async void Contact_Click(Hyperlink sender, HyperlinkClickEvent...
    method GitHubIssue_Click (line 80) | private async void GitHubIssue_Click(Hyperlink sender, HyperlinkClickE...
    method LocalProxy_Click (line 86) | private async void LocalProxy_Click(Hyperlink sender, HyperlinkClickEv...
    method KeyboardShortcuts_Click (line 92) | private async void KeyboardShortcuts_Click(Hyperlink sender, Hyperlink...
    method DiscordGroup_Click (line 98) | private async void DiscordGroup_Click(Hyperlink sender, HyperlinkClick...

FILE: XpoMusic/Pages/MainPage.xaml.cs
  class MainPage (line 27) | public sealed partial class MainPage : Page
    method MainPage (line 40) | public MainPage()
    method Instance_ConstantsUpdated (line 66) | private void Instance_ConstantsUpdated(object sender, EventArgs e)
    method AnalyticsHeartbeatTimer_Tick (line 71) | private void AnalyticsHeartbeatTimer_Tick(object sender, object e)
    method OnNavigatedTo (line 80) | protected override void OnNavigatedTo(NavigationEventArgs e)
    method GetTileLaunchTargetUrl (line 90) | private string GetTileLaunchTargetUrl(string parameter)
    method OpenCompactOverlayForAutoPlay (line 127) | private async void OpenCompactOverlayForAutoPlay()
    method NavigateToSecondaryTile (line 133) | public void NavigateToSecondaryTile(string parameter)
    method NavigateWithConfig (line 142) | public async void NavigateWithConfig(string parameter)
    method Page_Loaded (line 167) | private async void Page_Loaded(object sender, RoutedEventArgs e)
    method Dispatcher_AcceleratorKeyActivated (line 217) | private async void Dispatcher_AcceleratorKeyActivated(CoreDispatcher s...
    method OnNavigatingFrom (line 272) | protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
    method App_BackRequested (line 279) | private async void App_BackRequested(object sender, BackRequestedEvent...
    method GoToNowPlayingMode (line 298) | private void GoToNowPlayingMode()
    method GoToCompactOverlayMode (line 307) | private async Task GoToCompactOverlayMode()
    method NowPlaying_ActionRequested (line 333) | private async void NowPlaying_ActionRequested(object sender, ActionReq...
    method SeekPlayback (line 372) | private async void SeekPlayback(double percentage)
    method SeekVolume (line 385) | private async void SeekVolume(double percentage)
    method CloseCompactOverlay (line 398) | private async void CloseCompactOverlay()
    method CloseNowPlaying (line 410) | private async void CloseNowPlaying()
    method GetBackFocusToWebView (line 424) | private async void GetBackFocusToWebView()
    method XpoWebView_PageLoaded (line 430) | private void XpoWebView_PageLoaded(object sender, EventArgs e)
    method XpoWebView_WebAppLoaded (line 440) | private void XpoWebView_WebAppLoaded(object sender, EventArgs e)
    method OnWebViewLoadCompleted (line 453) | private void OnWebViewLoadCompleted()
    method EnableNowPlayingWhenReady (line 468) | private async void EnableNowPlayingWhenReady()
    method LastPlayStatus_Updated (line 486) | private async void LastPlayStatus_Updated(object sender, EventArgs e)
    method EnableNowPlayingIfReady (line 500) | private async Task<bool> EnableNowPlayingIfReady()
    method XpoWebView_ActionRequested (line 516) | private async void XpoWebView_ActionRequested(object sender, XpoMusicW...
    method TopBar_OpenSpotifyUriRequested (line 545) | private async void TopBar_OpenSpotifyUriRequested(object sender, strin...
    method Page_SizeChanged (line 550) | private void Page_SizeChanged(object sender, SizeChangedEventArgs e)

FILE: XpoMusic/Pages/SettingsPage.xaml.cs
  class SettingsPage (line 19) | public sealed partial class SettingsPage : Page
    method SettingsPage (line 21) | public SettingsPage()
    method RestartApp_Click (line 26) | private void RestartApp_Click(object sender, RoutedEventArgs e)
    method PinTileToStart_Click (line 31) | private async void PinTileToStart_Click(object sender, RoutedEventArgs e)

FILE: XpoMusic/Scripts/Common/action.ts
  function nextTrack (line 3) | function nextTrack() {
  function pause (line 14) | function pause() {
  function play (line 25) | function play() {
  function playPause (line 36) | function playPause() {
  function prevTrack (line 43) | function prevTrack() {
  function prevTrackForce (line 54) | function prevTrackForce() {
  function tryAutoPlayTrack (line 79) | function tryAutoPlayTrack(remainingCount) {
  function autoPlayTrack (line 94) | function autoPlayTrack() {
  function tryAutoPlayPlaylist (line 98) | function tryAutoPlayPlaylist(remainingCount) {
  function autoPlayPlaylist (line 117) | function autoPlayPlaylist() {
  function enableNowPlaying (line 121) | function enableNowPlaying() {
  function goBackIfPossible (line 139) | function goBackIfPossible() {
  function goForwardIfPossible (line 147) | function goForwardIfPossible() {
  function isPlayingOnThisApp (line 151) | function isPlayingOnThisApp() {
  function navigateToPage (line 155) | function navigateToPage(url) {
  function seekPlayback (line 161) | function seekPlayback(percentage) {
  function seekVolume (line 185) | function seekVolume(percentage) {
  function newPlaylist (line 209) | function newPlaylist() {

FILE: XpoMusic/Scripts/Common/browserHistory.ts
  function canGoBack (line 2) | function canGoBack() {
  function goBack (line 6) | function goBack() {

FILE: XpoMusic/Scripts/Common/color.ts
  function setNowPlayingBarColor (line 4) | function setNowPlayingBarColor(url, lightTheme) {
  function addXpotifyClassToBackground (line 49) | function addXpotifyClassToBackground(retryCount) {
  function addXpotifyClassToSectionBackground (line 63) | function addXpotifyClassToSectionBackground(retryCount) {

FILE: XpoMusic/Scripts/Common/dragDrop.ts
  function allowDrop (line 5) | function allowDrop(event) {
  function drop (line 9) | function drop(event) {

FILE: XpoMusic/Scripts/Common/indeterminateProgressBarHandler.ts
  function trackLoadCheck (line 5) | function trackLoadCheck(initialProgress) {
  function onTrackLoadBegin (line 34) | function onTrackLoadBegin() {

FILE: XpoMusic/Scripts/Common/initScript-common.ts
  function isProVersion (line 23) | function isProVersion(): boolean {
  function getDeviceName (line 28) | function getDeviceName(): string {
  function getAppName (line 32) | function getAppName(): string {
  function isLightTheme (line 36) | function isLightTheme(): boolean {
  function sleep (line 40) | function sleep(ms) {
  function getCurrentZoomLevel (line 44) | function getCurrentZoomLevel(): number {
  function init (line 49) | function init() {
  function initThemedScrollbars (line 112) | function initThemedScrollbars() {
  function removeTopUpgradeButton (line 139) | function removeTopUpgradeButton() {
  function markPageAsInjected (line 157) | function markPageAsInjected() {
  function initDragDrop (line 162) | function initDragDrop() {
  function injectCss (line 168) | function injectCss() {
  function injectCustomCssContent (line 173) | function injectCustomCssContent(content) {
  function initNowPlayingBarCheck (line 186) | function initNowPlayingBarCheck() {
  function setInitialPageHash (line 212) | function setInitialPageHash() {
  function initOnResizeCheck (line 232) | function initOnResizeCheck() {
  function InjectTopBarCustomStyles (line 268) | function InjectTopBarCustomStyles() {
  function expandPivotInTopBar (line 279) | function expandPivotInTopBar() {
  function periodicPageCheck (line 317) | function periodicPageCheck() {
  function initPeriodicPageCheck (line 374) | function initPeriodicPageCheck() {

FILE: XpoMusic/Scripts/Common/keyboardShortcutListener.ts
  function copyToClipboard (line 8) | function copyToClipboard(str) {
  function getKeyboardFocusableElements (line 30) | function getKeyboardFocusableElements() {
  function getElementsPreferredForInitialFocus (line 34) | function getElementsPreferredForInitialFocus() {
  function getScrollParent (line 38) | function getScrollParent(element, includeHidden) {
  function scrollIntoViewEx (line 62) | function scrollIntoViewEx(element: HTMLElement) {
  function keyboardSelect (line 83) | function keyboardSelect(offset: number) {
  function keyDownExternalCall (line 117) | function keyDownExternalCall(charCode, shiftPressed, ctrlPressed, altPre...
  function processKeyDown (line 127) | function processKeyDown(e: KeyboardEvent): boolean {
  function onKeyDown (line 257) | function onKeyDown(e: KeyboardEvent) {
  function init (line 266) | function init() {

FILE: XpoMusic/Scripts/Common/mouseWheelListener.ts
  function volumeMouseWheelHandler (line 6) | function volumeMouseWheelHandler(e) {
  function setVolumeBarListener (line 14) | function setVolumeBarListener() {
  function init (line 26) | function init() {

FILE: XpoMusic/Scripts/Common/pageTitleFinder.ts
  function titleCase (line 3) | function titleCase(str) {
  function searchForNavBarSelectedItem (line 14) | function searchForNavBarSelectedItem() {
  function searchForHTag (line 40) | function searchForHTag(selector) {
  function getTitle (line 51) | function getTitle() {

FILE: XpoMusic/Scripts/Common/playbackStuckHelper.ts
  function resolveStart (line 3) | async function resolveStart() {
  function tryResolveStart (line 27) | async function tryResolveStart() {
  function tryResolveMiddle (line 49) | async function tryResolveMiddle() {

FILE: XpoMusic/Scripts/Common/requestIntercepter.ts
  function startInterceptingFetch (line 5) | function startInterceptingFetch() {

FILE: XpoMusic/Scripts/Common/resize.ts
  function onResize (line 2) | function onResize() {

FILE: XpoMusic/Scripts/Common/startupAnimation.ts
  function init (line 2) | function init() {

FILE: XpoMusic/Scripts/Common/statusReport.ts
  function getTextContent (line 7) | function getTextContent(element, index) {
  function getTrackFingerprint (line 17) | function getTrackFingerprint() {
  function getTrackName (line 21) | function getTrackName() {
  function getTrackArtist (line 25) | function getTrackArtist() {
  function getTrackAlbumId (line 29) | function getTrackAlbumId() {
  function getTrackArtistId (line 34) | function getTrackArtistId() {
  function timeStringToMilliseconds (line 39) | function timeStringToMilliseconds(time) {
  function getElapsedTime (line 48) | function getElapsedTime() {
  function getTotalTime (line 53) | function getTotalTime() {
  function getIsSavedToLibrary (line 58) | function getIsSavedToLibrary() {
  function getIsPlaying (line 65) | function getIsPlaying() {
  function getIsPrevTrackAvailable (line 79) | function getIsPrevTrackAvailable() {
  function getIsNextTrackAvailable (line 90) | function getIsNextTrackAvailable() {
  function getTrackIdViaApi (line 101) | async function getTrackIdViaApi() {
  function getTrackId (line 133) | async function getTrackId() {
  function getVolume (line 200) | function getVolume() {
  function getNowPlaying (line 211) | async function getNowPlaying() {
  function isBackPossible (line 318) | function isBackPossible() {
  function sendStatusReport (line 330) | async function sendStatusReport() {
  function initRegularStatusReport (line 339) | function initRegularStatusReport() {

FILE: XpoMusic/Scripts/Common/themedScrollbar.ts
  function getRandomId (line 5) | function getRandomId() {
  function scrollContainerMainScroll (line 9) | function scrollContainerMainScroll(event) {
  function scrollContainerOverlayScroll (line 25) | function scrollContainerOverlayScroll(event) {
  function insertAfter (line 41) | function insertAfter(newNode, referenceNode) {
  function initScrollbar (line 45) | function initScrollbar(elementsSelector, updateInterval, positionEvaluat...

FILE: XpoMusic/Scripts/Common/tracklistExtended.ts
  function injectTrackIdsToTrackList (line 5) | function injectTrackIdsToTrackList() {
  function setAddRemoveButtons (line 71) | async function setAddRemoveButtons() {
  function initTracklistMod (line 110) | async function initTracklistMod() {

FILE: XpoMusic/Scripts/Common/uiElementModifier.ts
  function createBackButton (line 10) | function createBackButton(): string {
  function createNavBarButtons (line 28) | function createNavBarButtons(): string {
  function createCompactOverlayButton (line 100) | function createCompactOverlayButton(): string {
  function addNowPlayingButton (line 125) | function addNowPlayingButton() {
  function addBackgroundClass (line 148) | function addBackgroundClass() {
  function createTrackListAddRemoveButtons (line 170) | function createTrackListAddRemoveButtons(): boolean {

FILE: XpoMusic/Scripts/Common/uiInjector.ts
  function injectNavbarDownButton (line 2) | function injectNavbarDownButton(button) {
  function injectNowPlayingRightButton (line 16) | function injectNowPlayingRightButton(button) {
  function injectNowPlayingNavBarButton (line 27) | function injectNowPlayingNavBarButton(button) {

FILE: XpoMusic/Scripts/Common/uriHelper.ts
  function getPwaUri (line 3) | function getPwaUri(uri) {

FILE: XpoMusic/Scripts/Common/web-player-backup.ts
  function runWebPlayerBackup (line 5) | function runWebPlayerBackup() {

FILE: XpoMusic/Scripts/Lib/focus-visible.ts
  function init (line 4) | function init() {

FILE: XpoMusic/Scripts/Lib/vibrant.ts
  function init (line 4) | function init() {

FILE: XpoMusic/Scripts/LightTheme/pageOverlay.ts
  function createPageOverlay (line 3) | function createPageOverlay() {

FILE: XpoMusic/Scripts/SpotifyApi/apiBase.ts
  method sendJsonRequestWithToken (line 8) | protected async sendJsonRequestWithToken(uri, method, body = undefined):...
  method sendJsonRequestWithTokenInternal (line 16) | private async sendJsonRequestWithTokenInternal(uri, method, body, allowR...

FILE: XpoMusic/Scripts/SpotifyApi/library.ts
  class Library (line 4) | class Library extends ApiBase {
    method isTrackSaved (line 5) | public async isTrackSaved(trackId: string): Promise<boolean> {
    method isTracksSaved (line 9) | public async isTracksSaved(trackIds: string[]): Promise<boolean[]> {
    method isTracksSavedInternal (line 18) | private async isTracksSavedInternal(trackIds: string[]): Promise<boole...
    method saveTrack (line 26) | public async saveTrack(trackId: string): Promise<boolean> {
    method removeTrack (line 33) | public async removeTrack(trackId: string): Promise<boolean> {

FILE: XpoMusic/Scripts/SpotifyApi/player.ts
  class Player (line 4) | class Player extends ApiBase {
    method getCurrentlyPlaying (line 5) | public async getCurrentlyPlaying(): Promise<any> {

FILE: XpoMusic/SpotifyApi/Album.cs
  class Album (line 12) | public class Album : ApiBase
    method GetAlbum (line 14) | public async Task<Model.AlbumSimplified> GetAlbum(string albumId)

FILE: XpoMusic/SpotifyApi/ApiBase.cs
  class ApiBase (line 13) | public class ApiBase
    method SendRequestWithTokenAsync (line 17) | public Task<HttpResponseMessage> SendRequestWithTokenAsync(string url,...
    method SendRequestWithTokenAsync (line 22) | public Task<HttpResponseMessage> SendRequestWithTokenAsync(string url,...
    method SendRequestWithTokenAsync (line 27) | private async Task<HttpResponseMessage> SendRequestWithTokenAsync(stri...
    method SendJsonRequestWithTokenAsync (line 60) | public Task<HttpResponseMessage> SendJsonRequestWithTokenAsync(string ...
    method SendJsonRequestWithTokenAsync (line 65) | private async Task<HttpResponseMessage> SendJsonRequestWithTokenAsync(...
    method GetNextPage (line 99) | public async Task<Paging<T>> GetNextPage<T>(Paging<T> page)
    method GetPrevPage (line 112) | public async Task<Paging<T>> GetPrevPage<T>(Paging<T> page)
    method GetNextPage (line 125) | public async Task<Paging<Model.Artist>> GetNextPage(Paging<Model.Artis...
    method GetPrevPage (line 138) | public async Task<Paging<Model.Artist>> GetPrevPage(Paging<Model.Artis...

FILE: XpoMusic/SpotifyApi/Artist.cs
  class Artist (line 12) | public class Artist : ApiBase
    method GetArtist (line 14) | public async Task<Model.Artist> GetArtist(string artistId)

FILE: XpoMusic/SpotifyApi/Authorization.cs
  class Authorization (line 14) | public static class Authorization
    method GetAuthorizationUrl (line 22) | public static string GetAuthorizationUrl(string state)
    method RetrieveAndSaveTokensFromAuthCode (line 33) | public static async Task RetrieveAndSaveTokensFromAuthCode(string code)

FILE: XpoMusic/SpotifyApi/Library.cs
  class Library (line 12) | public class Library : ApiBase
    method IsTrackSaved (line 14) | public async Task<bool> IsTrackSaved(string trackId)
    method IsTrackSaved (line 19) | public async Task<bool[]> IsTrackSaved(string[] trackIds)
    method IsTrackSavedInternal (line 32) | private async Task<bool[]> IsTrackSavedInternal(string[] trackIds)
    method SaveTrackToLibrary (line 48) | public async Task<bool> SaveTrackToLibrary(string trackId)
    method RemoveTrackFromLibrary (line 57) | public async Task<bool> RemoveTrackFromLibrary(string trackId)
    method GetAlbums (line 67) | public async Task<Paging<SavedAlbum>> GetAlbums(int offset, int limit ...
    method GetPlaylists (line 77) | public async Task<Paging<Model.Playlist>> GetPlaylists(int offset, int...
    method GetArtists (line 87) | public async Task<Paging<Model.Artist>> GetArtists(int offset, int lim...

FILE: XpoMusic/SpotifyApi/Model/AlbumSimplified.cs
  class AlbumSimplified (line 3) | public class AlbumSimplified

FILE: XpoMusic/SpotifyApi/Model/Artist.cs
  class Artist (line 3) | public class Artist

FILE: XpoMusic/SpotifyApi/Model/ArtistSimplified.cs
  class ArtistSimplified (line 3) | public class ArtistSimplified

FILE: XpoMusic/SpotifyApi/Model/CurrentlyPlayingContext.cs
  class CurrentlyPlayingContext (line 9) | public class CurrentlyPlayingContext

FILE: XpoMusic/SpotifyApi/Model/Device.cs
  class Device (line 9) | public class Device

FILE: XpoMusic/SpotifyApi/Model/Devices.cs
  class Devices (line 9) | public class Devices

FILE: XpoMusic/SpotifyApi/Model/FollowedArtistsResponse.cs
  class FollowedArtistsResponse (line 9) | public class FollowedArtistsResponse

FILE: XpoMusic/SpotifyApi/Model/Image.cs
  class Image (line 3) | public class Image

FILE: XpoMusic/SpotifyApi/Model/Paging.cs
  class Paging (line 9) | public class Paging<T>

FILE: XpoMusic/SpotifyApi/Model/Playlist.cs
  class Playlist (line 9) | public class Playlist

FILE: XpoMusic/SpotifyApi/Model/SavedAlbum.cs
  class SavedAlbum (line 9) | public class SavedAlbum

FILE: XpoMusic/SpotifyApi/Model/Track.cs
  class Track (line 3) | public class Track

FILE: XpoMusic/SpotifyApi/Player.cs
  class Player (line 13) | public class Player : ApiBase
    method GetCurrentlyPlaying (line 15) | public async Task<CurrentlyPlayingContext> GetCurrentlyPlaying()
    method NextTrack (line 28) | public async Task<bool> NextTrack()
    method PreviousTrack (line 38) | public async Task<bool> PreviousTrack()
    method ResumePlaying (line 48) | public async Task<bool> ResumePlaying()
    method Pause (line 83) | public async Task<bool> Pause()
    method GetDevices (line 93) | public async Task<Devices> GetDevices()
    method TransferPlayback (line 104) | public async Task<bool> TransferPlayback(string deviceId, bool ensureP...
    method SetVolume (line 117) | public async Task<bool> SetVolume(string deviceId, double volume)

FILE: XpoMusic/SpotifyApi/Playlist.cs
  class Playlist (line 12) | public class Playlist : ApiBase
    method GetPlaylist (line 14) | public async Task<Model.Playlist> GetPlaylist(string playlistId)

FILE: XpoMusic/SpotifyApi/TokenHelper.cs
  class TokenHelper (line 12) | public static class TokenHelper
    method GetAndSaveNewTokenAsync (line 17) | public static async Task GetAndSaveNewTokenAsync()
    method ClearTokens (line 40) | internal static void ClearTokens()
    method GetTokens (line 49) | public static TokenResult GetTokens()
    method SaveTokens (line 58) | public static void SaveTokens(string newAccessToken, string newRefresh...
    method HasTokens (line 65) | public static bool HasTokens()
  class TokenResult (line 85) | public class TokenResult

FILE: XpoMusic/ViewModels/MainPageViewModel.cs
  class MainPageViewModel (line 10) | public class MainPageViewModel : ViewModelBase

FILE: XpoMusic/ViewModels/NowPlayingViewModel.cs
  class NowPlayingViewModel (line 14) | public class NowPlayingViewModel : ViewModelBase

FILE: XpoMusic/ViewModels/ProxyConfigurationViewModel.cs
  class ProxyConfigurationViewModel (line 13) | public class ProxyConfigurationViewModel : ViewModelBase

FILE: XpoMusic/ViewModels/SettingsViewModel.cs
  class SettingsViewModel (line 13) | public class SettingsViewModel : ViewModelBase
    method SettingsViewModel (line 15) | public SettingsViewModel()
    method CheckPrimaryTileStatus (line 24) | public async void CheckPrimaryTileStatus()

FILE: XpoMusic/ViewModels/TopBarViewModel.cs
  class TopBarViewModel (line 11) | public class TopBarViewModel : ViewModelBase

FILE: XpoMusic/ViewModels/ViewModelBase.cs
  class ViewModelBase (line 10) | public abstract class ViewModelBase : INotifyPropertyChanged
    method FirePropertyChangedEvent (line 14) | protected void FirePropertyChangedEvent(string propertyName)

FILE: XpoMusic/XpotifyApi/AppConstantsApi.cs
  class AppConstantsApi (line 12) | public static class AppConstantsApi
    method GetAppConstantsString (line 30) | public static async Task<string> GetAppConstantsString()

FILE: XpoMusic/XpotifyApi/AssetUpdatesApi.cs
  class AssetUpdatesApi (line 15) | public static class AssetUpdatesApi
    method GetLatestAssetPackageUri (line 34) | private static async Task<AssetPackageInfo> GetLatestAssetPackageUri()
    method GetLatestAssetPackage (line 58) | public static async Task<AssetPackage> GetLatestAssetPackage()
    method GetAssetUpdateCacheFolder (line 102) | private static async Task<StorageFolder> GetAssetUpdateCacheFolder()

FILE: XpoMusic/XpotifyApi/DeveloperMessageApi.cs
  class DeveloperMessageApi (line 13) | public static class DeveloperMessageApi
    method GetDeveloperMessages (line 31) | public static async Task<DeveloperMessageCollection> GetDeveloperMessa...

FILE: XpoMusic/XpotifyApi/Model/AssetPackage.cs
  class AssetPackage (line 10) | public class AssetPackage

FILE: XpoMusic/XpotifyApi/Model/AssetPackageInfo.cs
  class AssetPackageInfo (line 9) | public class AssetPackageInfo

FILE: XpoMusic/XpotifyApi/Model/DeveloperMessage.cs
  class DeveloperMessage (line 9) | public class DeveloperMessage

FILE: XpoMusic/XpotifyApi/Model/DeveloperMessageCollection.cs
  class DeveloperMessageCollection (line 9) | public class DeveloperMessageCollection

FILE: XpoMusicInstaller/App.xaml.cs
  class App (line 14) | public partial class App : Application

FILE: XpoMusicInstaller/MainWindow.xaml.cs
  class MainWindow (line 27) | public partial class MainWindow : Window
    method MainWindow (line 31) | public MainWindow()
    method Window_ContentRendered (line 36) | private void Window_ContentRendered(object sender, EventArgs e)
    method StartInstallation (line 42) | private async void StartInstallation()
    method ShowOSVersionAlertAndExit (line 54) | private static void ShowOSVersionAlertAndExit()
    method ShowPermissionAlertAndExit (line 60) | private static void ShowPermissionAlertAndExit()
    method VerifyOSVersion (line 66) | private bool VerifyOSVersion()
    method OpenAppInstaller (line 73) | private void OpenAppInstaller()
    method InstallCertificate (line 78) | private bool InstallCertificate()

FILE: XpoMusicInstaller/Properties/Resources.Designer.cs
  class Resources (line 22) | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resource...
    method Resources (line 31) | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Mic...

FILE: XpoMusicInstaller/Properties/Settings.Designer.cs
  class Settings (line 15) | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]

FILE: XpoMusicWebAgent/Model/ActionRequestedEventArgs.cs
  class ActionRequestedEventArgs (line 9) | public sealed class ActionRequestedEventArgs
  type Action (line 14) | public enum Action

FILE: XpoMusicWebAgent/Model/InitFailedEventArgs.cs
  class InitFailedEventArgs (line 9) | public sealed class InitFailedEventArgs

FILE: XpoMusicWebAgent/Model/LogMessageReceivedEventArgs.cs
  class LogMessageReceivedEventArgs (line 9) | public sealed class LogMessageReceivedEventArgs

FILE: XpoMusicWebAgent/Model/NowPlayingData.cs
  class NowPlayingData (line 9) | public sealed class NowPlayingData

FILE: XpoMusicWebAgent/Model/ProgressBarCommandEventArgs.cs
  class ProgressBarCommandEventArgs (line 9) | public sealed class ProgressBarCommandEventArgs
  type ProgressBarCommand (line 17) | public enum ProgressBarCommand

FILE: XpoMusicWebAgent/Model/StatusReportReceivedEventArgs.cs
  class StatusReportReceivedEventArgs (line 9) | public sealed class StatusReportReceivedEventArgs

FILE: XpoMusicWebAgent/Model/WebAppStatus.cs
  class WebAppStatus (line 9) | public sealed class WebAppStatus

FILE: XpoMusicWebAgent/WebAgent.cs
  class WebAgent (line 13) | [AllowForWeb]
    method ShowProgressBar (line 32) | public void ShowProgressBar(double left, double top, double width)
    method HideProgressBar (line 43) | public void HideProgressBar()
    method StatusReport (line 51) | public void StatusReport(string data)
    method OpenSettings (line 59) | public void OpenSettings()
    method OpenAbout (line 67) | public void OpenAbout()
    method OpenDonate (line 75) | public void OpenDonate()
    method OpenMiniView (line 83) | public void OpenMiniView()
    method OpenNowPlaying (line 91) | public void OpenNowPlaying()
    method PinToStart (line 99) | public void PinToStart()
    method NavigateToClipboardUri (line 107) | public void NavigateToClipboardUri()
    method InitFailed (line 115) | public void InitFailed(string errors)
    method GetNewAccessTokenAsync (line 123) | public IAsyncOperation<string> GetNewAccessTokenAsync()
    method GetNewAccessToken (line 128) | private Task<string> GetNewAccessToken()
    method SetNewAccessToken (line 135) | public void SetNewAccessToken(string accessToken)
    method Log (line 140) | public void Log(string message)
    method IsWebPlayerBackupEnabled (line 148) | public bool IsWebPlayerBackupEnabled()
    method GetOSBuildVersion (line 153) | public int GetOSBuildVersion()
Condensed preview — 231 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (836K chars).
[
  {
    "path": ".gitattributes",
    "chars": 2518,
    "preview": "###############################################################################\n# Set default behavior to automatically "
  },
  {
    "path": ".gitignore",
    "chars": 4688,
    "preview": "## Ignore Visual Studio temporary files, build results, and\n## files generated by popular Visual Studio add-ons.\n\n# User"
  },
  {
    "path": "LICENSE.md",
    "chars": 35147,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "Preview.md",
    "chars": 1661,
    "preview": "# Xpo Music Preview\n\nXpo Music v3 is currently in development. It utilizes [WinUI 3](https://docs.microsoft.com/en-us/wi"
  },
  {
    "path": "README.md",
    "chars": 2081,
    "preview": "# Xpo Music (formerly Xpotify)\nA modern Spotify experience for Windows 10\n\n**Get it from [XpoMusic.com](https://xpomusic"
  },
  {
    "path": "XpoMusic/App.xaml",
    "chars": 995,
    "preview": "<Application\n    x:Class=\"XpoMusic.App\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n    xmlns"
  },
  {
    "path": "XpoMusic/App.xaml.cs",
    "chars": 9203,
    "preview": "using XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.IO;\nusin"
  },
  {
    "path": "XpoMusic/Assets/ReauthorizeForV2.html",
    "chars": 4286,
    "preview": "<!DOCTYPE html>\n\n<html lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n    <meta charset=\"utf-8\" />\n    <title><"
  },
  {
    "path": "XpoMusic/Assets/TileTemplates/LiveTileAlbumAndArtistArt.xml",
    "chars": 1881,
    "preview": "<tile>\n  <visual branding=\"nameAndLogo\">\n\n    <binding template='TileMedium' hint-textStacking='center'>\n      <image s"
  },
  {
    "path": "XpoMusic/Assets/TileTemplates/LiveTileAlbumArtOnly.xml",
    "chars": 1531,
    "preview": "<tile>\n  <visual branding=\"nameAndLogo\">\n\n    <binding template='TileMedium' hint-textStacking='center'>\n      <group>\n"
  },
  {
    "path": "XpoMusic/Assets/TileTemplates/LiveTileArtistArtOnly.xml",
    "chars": 1580,
    "preview": "<tile>\n  <visual branding=\"nameAndLogo\">\n\n    <binding template='TileMedium' hint-textStacking='center'>\n      <image s"
  },
  {
    "path": "XpoMusic/Classes/AppConstants.cs",
    "chars": 7369,
    "preview": "using Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net.Http;\nusing "
  },
  {
    "path": "XpoMusic/Classes/Cache/AlbumStore.cs",
    "chars": 441,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Cache/ArtistStore.cs",
    "chars": 428,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Cache/CacheStore.cs",
    "chars": 903,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Cache/GlobalCache.cs",
    "chars": 419,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Cache/PlaylistStore.cs",
    "chars": 442,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Cache/SongExtraInfoStore.cs",
    "chars": 620,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Classes/Converters/BooleanToVisibilityConverter.cs",
    "chars": 745,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Classes/Converters/LanguageToStringConverter.cs",
    "chars": 699,
    "preview": "using XpoMusic.Classes.Model;\nusing XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq"
  },
  {
    "path": "XpoMusic/Classes/Converters/LiveTileDesignToStringConverter.cs",
    "chars": 1204,
    "preview": "using XpoMusic.Classes.Model;\nusing XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq"
  },
  {
    "path": "XpoMusic/Classes/Converters/MillisecondsToMinSecConverter.cs",
    "chars": 723,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Classes/Converters/ThemeToStringConverter.cs",
    "chars": 687,
    "preview": "using XpoMusic.Classes.Model;\nusing XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq"
  },
  {
    "path": "XpoMusic/Classes/LocalConfiguration.cs",
    "chars": 8623,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Classes/Model/AutoPlayAction.cs",
    "chars": 245,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Model/Language.cs",
    "chars": 681,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Model/LocalStoragePlayback.cs",
    "chars": 235,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Model/LyricsViewer/CurrentPlayingSongInfo.cs",
    "chars": 1344,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Model/SongExtraInfo.cs",
    "chars": 292,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Model/Theme.cs",
    "chars": 234,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Model/WebResourceModifications/WebResourceModificationRule.cs",
    "chars": 626,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Text.RegularExpressi"
  },
  {
    "path": "XpoMusic/Classes/Model/WebResourceModifications/WebResourceModificationRuleType.cs",
    "chars": 296,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Classes/Model/WebResourceModifications/WebResourceStringModificationRule.cs",
    "chars": 482,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Text.RegularExpressi"
  },
  {
    "path": "XpoMusic/Classes/PlayStatusTracker.cs",
    "chars": 9612,
    "preview": "using XpoMusic.Helpers;\nusing XpoMusic.SpotifyApi;\nusing System;\nusing System.Collections.Generic;\nusing System.Diagnos"
  },
  {
    "path": "XpoMusic/Classes/SemaphoreQueue.cs",
    "chars": 1301,
    "preview": "using System;\nusing System.Collections.Concurrent;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Te"
  },
  {
    "path": "XpoMusic/Classes/WebViewController.cs",
    "chars": 11814,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Classes.Model;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\n"
  },
  {
    "path": "XpoMusic/Controls/FlyoutContainer.xaml",
    "chars": 5353,
    "preview": "<UserControl\n    x:Class=\"XpoMusic.Controls.FlyoutContainer\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/pr"
  },
  {
    "path": "XpoMusic/Controls/FlyoutContainer.xaml.cs",
    "chars": 3010,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Runtime.InteropService"
  },
  {
    "path": "XpoMusic/Controls/NowPlayingView.xaml",
    "chars": 43171,
    "preview": "<UserControl\n    x:Class=\"XpoMusic.Controls.NowPlayingView\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/pre"
  },
  {
    "path": "XpoMusic/Controls/NowPlayingView.xaml.cs",
    "chars": 25697,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\nusing Windows.Foundation;\nusing Windows.U"
  },
  {
    "path": "XpoMusic/Controls/ProxyConfiguration.xaml",
    "chars": 3750,
    "preview": "<UserControl\n    x:Class=\"XpoMusic.Controls.ProxyConfiguration\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml"
  },
  {
    "path": "XpoMusic/Controls/ProxyConfiguration.xaml.cs",
    "chars": 2437,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing "
  },
  {
    "path": "XpoMusic/Controls/SliderExtended.cs",
    "chars": 6978,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Runtime.Inter"
  },
  {
    "path": "XpoMusic/Controls/SplashScreen.xaml",
    "chars": 6859,
    "preview": "<UserControl\n    x:Class=\"XpoMusic.Controls.SplashScreen\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/prese"
  },
  {
    "path": "XpoMusic/Controls/SplashScreen.xaml.cs",
    "chars": 2598,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Runtime.InteropService"
  },
  {
    "path": "XpoMusic/Controls/TopBar.xaml",
    "chars": 3083,
    "preview": "<UserControl\n    x:Class=\"XpoMusic.Controls.TopBar\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentatio"
  },
  {
    "path": "XpoMusic/Controls/TopBar.xaml.cs",
    "chars": 8511,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Runtime.InteropService"
  },
  {
    "path": "XpoMusic/Controls/XpoMusicWebApp.xaml",
    "chars": 11354,
    "preview": "<UserControl\n    x:Class=\"XpoMusic.Controls.XpoMusicWebApp\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/pre"
  },
  {
    "path": "XpoMusic/Controls/XpoMusicWebApp.xaml.cs",
    "chars": 19512,
    "preview": "using Microsoft.Toolkit.Uwp.Helpers;\nusing Newtonsoft.Json;\nusing System;\nusing System.Linq;\nusing System.Threading.Tas"
  },
  {
    "path": "XpoMusic/Flyouts/DeveloperMessageFlyout.xaml",
    "chars": 2814,
    "preview": "<UserControl\n    x:Class=\"XpoMusic.Flyouts.DeveloperMessageFlyout\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/x"
  },
  {
    "path": "XpoMusic/Flyouts/DeveloperMessageFlyout.xaml.cs",
    "chars": 3035,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Helpers;\nusing XpoMusic.XpotifyApi.Model;\nusing System;\nusing System.Collections"
  },
  {
    "path": "XpoMusic/Flyouts/IFlyout.cs",
    "chars": 245,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/Flyouts/SettingsFlyout.xaml",
    "chars": 1757,
    "preview": "<UserControl\n    x:Class=\"XpoMusic.Flyouts.SettingsFlyout\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/pres"
  },
  {
    "path": "XpoMusic/Flyouts/SettingsFlyout.xaml.cs",
    "chars": 2729,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing "
  },
  {
    "path": "XpoMusic/Flyouts/WhatsNewFlyout.xaml",
    "chars": 15787,
    "preview": "<UserControl\n    x:Class=\"XpoMusic.Flyouts.WhatsNewFlyout\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/pres"
  },
  {
    "path": "XpoMusic/Flyouts/WhatsNewFlyout.xaml.cs",
    "chars": 2841,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing "
  },
  {
    "path": "XpoMusic/Helpers/AnalyticsHelper.cs",
    "chars": 3461,
    "preview": "using GoogleAnalytics;\nusing Microsoft.AppCenter.Analytics;\nusing Microsoft.Services.Store.Engagement;\nusing System;\nus"
  },
  {
    "path": "XpoMusic/Helpers/AssetManager.cs",
    "chars": 5896,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.XpotifyApi;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusi"
  },
  {
    "path": "XpoMusic/Helpers/ClipboardHelper.cs",
    "chars": 1485,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Helpers/CropBitmap.cs",
    "chars": 4852,
    "preview": "using System;\nusing System.IO;\nusing System.Runtime.InteropServices.WindowsRuntime;\nusing System.Threading.Tasks;\nusing"
  },
  {
    "path": "XpoMusic/Helpers/DeveloperMessageHelper.cs",
    "chars": 1456,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.XpotifyApi;\nusing XpoMusic.XpotifyApi.Model;\nusing System;\nusing System.Collecti"
  },
  {
    "path": "XpoMusic/Helpers/DeviceInfoHelper.cs",
    "chars": 1040,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Helpers/ImageSaveHelper.cs",
    "chars": 2995,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Net.Http;\nusing System"
  },
  {
    "path": "XpoMusic/Helpers/Integration/LyricsViewerIntegrationHelper.cs",
    "chars": 3777,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Classes.Model.LyricsViewer;\nusing Newtonsoft.Json;\nusing System;\nusing System.Co"
  },
  {
    "path": "XpoMusic/Helpers/JumpListHelper.cs",
    "chars": 979,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Helpers/KeyboardShortcutHelper.cs",
    "chars": 3247,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Helpers/LanguageHelper.cs",
    "chars": 4428,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Helpers/LiveTileHelper.cs",
    "chars": 5203,
    "preview": "using XpoMusic.Classes;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Syste"
  },
  {
    "path": "XpoMusic/Helpers/MediaControlsHelper.cs",
    "chars": 6327,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Helpers/PackageHelper.cs",
    "chars": 1574,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Helpers/PlaybackActionHelper.cs",
    "chars": 2270,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.SpotifyApi;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nu"
  },
  {
    "path": "XpoMusic/Helpers/ProxyHelper.cs",
    "chars": 3549,
    "preview": "using XpoMusic.Classes;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Runtime.Interop"
  },
  {
    "path": "XpoMusic/Helpers/SongImageProvider.cs",
    "chars": 2433,
    "preview": "using XpoMusic.SpotifyApi;\nusing System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;"
  },
  {
    "path": "XpoMusic/Helpers/SpotifyShareUriHelper.cs",
    "chars": 3109,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Text.RegularExpressi"
  },
  {
    "path": "XpoMusic/Helpers/StoryboardExtensions.cs",
    "chars": 657,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Helpers/StuckResolveHelper.cs",
    "chars": 3578,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/Helpers/ThemeHelper.cs",
    "chars": 1341,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Classes.Model;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq"
  },
  {
    "path": "XpoMusic/Helpers/TileHelper.cs",
    "chars": 6664,
    "preview": "using XpoMusic.Classes;\nusing System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nus"
  },
  {
    "path": "XpoMusic/Helpers/ToastHelper.cs",
    "chars": 2566,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net;\nusing System.Text;\nusing System.Th"
  },
  {
    "path": "XpoMusic/Helpers/UnauthorizedHelper.cs",
    "chars": 924,
    "preview": "using XpoMusic.SpotifyApi;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing "
  },
  {
    "path": "XpoMusic/Helpers/WebResourceModificationHelper.cs",
    "chars": 3108,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Runtime.Inter"
  },
  {
    "path": "XpoMusic/Helpers/WhatsNewHelper.cs",
    "chars": 2543,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/InjectedAssets/clearPlaybackLocalStorage.js",
    "chars": 401,
    "preview": "\n// This script works around a bug of Spotify PWA in Microsoft Edge,\n// where volume is reset to the initial value in L"
  },
  {
    "path": "XpoMusic/InjectedAssets/clickOnFacebookLogin.js",
    "chars": 245,
    "preview": "\nfunction pushFacebookButton() {\n    var facebookButton = document.querySelectorAll(\"a.btn-facebook\");\n\n    if (faceboo"
  },
  {
    "path": "XpoMusic/InjectedAssets/gridTest.html",
    "chars": 18719,
    "preview": "<html>\n    <head>\n        <style>\n            body {\n                margin: 0;\n                padding: 0;\n            "
  },
  {
    "path": "XpoMusic/InjectedAssets/isLoggedInCheck.js",
    "chars": 81,
    "preview": "(document.querySelectorAll('[data-testid=signup-bar]').length === 0) ? \"1\" : \"0\""
  },
  {
    "path": "XpoMusic/NLog.config",
    "chars": 779,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<nlog xmlns=\"http://www.nlog-project.org/schemas/NLog.xsd\"\n      xmlns:xsi=\"htt"
  },
  {
    "path": "XpoMusic/Package.appxmanifest",
    "chars": 2902,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Package xmlns=\"http://schemas.microsoft.com/appx/manifest/foundation/windows10\""
  },
  {
    "path": "XpoMusic/Package.debug.appxmanifest",
    "chars": 2920,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Package xmlns=\"http://schemas.microsoft.com/appx/manifest/foundation/windows10\""
  },
  {
    "path": "XpoMusic/Pages/AboutPage.xaml",
    "chars": 4502,
    "preview": "<Page\n    x:Class=\"XpoMusic.Pages.AboutPage\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n    "
  },
  {
    "path": "XpoMusic/Pages/AboutPage.xaml.cs",
    "chars": 2955,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing "
  },
  {
    "path": "XpoMusic/Pages/DonatePage.xaml",
    "chars": 2718,
    "preview": "<Page\n    x:Class=\"XpoMusic.Pages.DonatePage\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n   "
  },
  {
    "path": "XpoMusic/Pages/DonatePage.xaml.cs",
    "chars": 2300,
    "preview": "using XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Syste"
  },
  {
    "path": "XpoMusic/Pages/HelpPage.xaml",
    "chars": 1996,
    "preview": "<Page\n    x:Class=\"XpoMusic.Pages.HelpPage\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n    x"
  },
  {
    "path": "XpoMusic/Pages/HelpPage.xaml.cs",
    "chars": 4045,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Runtime.InteropService"
  },
  {
    "path": "XpoMusic/Pages/MainPage.xaml",
    "chars": 12029,
    "preview": "<Page\n    x:Class=\"XpoMusic.Pages.MainPage\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n    x"
  },
  {
    "path": "XpoMusic/Pages/MainPage.xaml.cs",
    "chars": 21244,
    "preview": "using Microsoft.Toolkit.Uwp.Helpers;\nusing XpoMusic.Classes;\nusing XpoMusic.Classes.Model;\nusing XpoMusic.Helpers;\nusin"
  },
  {
    "path": "XpoMusic/Pages/SettingsPage.xaml",
    "chars": 5590,
    "preview": "<Page\n    x:Class=\"XpoMusic.Pages.SettingsPage\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n "
  },
  {
    "path": "XpoMusic/Pages/SettingsPage.xaml.cs",
    "chars": 959,
    "preview": "using XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Syste"
  },
  {
    "path": "XpoMusic/Properties/AssemblyInfo.cs",
    "chars": 1031,
    "preview": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Infor"
  },
  {
    "path": "XpoMusic/Properties/Default.rd.xml",
    "chars": 1243,
    "preview": "<!--\n    This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most\n    develope"
  },
  {
    "path": "XpoMusic/Scripts/Common/action.ts",
    "chars": 7231,
    "preview": "namespace XpoMusicScript.Common.Action {\n\n    export function nextTrack() {\n        var nextButton = document.querySele"
  },
  {
    "path": "XpoMusic/Scripts/Common/browserHistory.ts",
    "chars": 265,
    "preview": "namespace XpoMusicScript.Common.BrowserHistory {\n    export function canGoBack() {\n        return window.location.hash "
  },
  {
    "path": "XpoMusic/Scripts/Common/color.ts",
    "chars": 2957,
    "preview": "namespace XpoMusicScript.Common.Color {\n    declare var Vibrant: any;\n\n    export function setNowPlayingBarColor(url, l"
  },
  {
    "path": "XpoMusic/Scripts/Common/dragDrop.ts",
    "chars": 486,
    "preview": "/// <reference path=\"uriHelper.ts\" />\n\nnamespace XpoMusicScript.Common.DragDrop {\n\n    export function allowDrop(event)"
  },
  {
    "path": "XpoMusic/Scripts/Common/indeterminateProgressBarHandler.ts",
    "chars": 2872,
    "preview": "namespace XpoMusicScript.Common.IndeterminateProgressBarHandler {\n\n    declare var XpoMusic: any;\n\n    function trackLo"
  },
  {
    "path": "XpoMusic/Scripts/Common/initScript-common.ts",
    "chars": 15018,
    "preview": "/// <reference path=\"uiElementModifier.ts\" />\n/// <reference path=\"dragDrop.ts\" />\n/// <reference path=\"../Lib/vibrant."
  },
  {
    "path": "XpoMusic/Scripts/Common/keyboardShortcutListener.ts",
    "chars": 9317,
    "preview": "/// <reference path=\"statusReport.ts\" />\n/// <reference path=\"action.ts\" />\n\nnamespace XpoMusicScript.Common.KeyboardSh"
  },
  {
    "path": "XpoMusic/Scripts/Common/mouseWheelListener.ts",
    "chars": 917,
    "preview": "/// <reference path=\"statusReport.ts\" />\n/// <reference path=\"action.ts\" />\n\nnamespace XpoMusicScript.Common.MouseWheel"
  },
  {
    "path": "XpoMusic/Scripts/Common/pageTitleFinder.ts",
    "chars": 2678,
    "preview": "namespace XpoMusicScript.Common.PageTitleFinder {\n\n    function titleCase(str) {\n        var splitStr = str.toLowerCase"
  },
  {
    "path": "XpoMusic/Scripts/Common/playbackStuckHelper.ts",
    "chars": 1903,
    "preview": "namespace XpoMusicScript.Common.PlaybackStuckHelper\n{\n    async function resolveStart() {\n        var initialElapsedTim"
  },
  {
    "path": "XpoMusic/Scripts/Common/requestIntercepter.ts",
    "chars": 1593,
    "preview": "/// <reference path=\"indeterminateProgressBarHandler.ts\" />\n\nnamespace XpoMusicScript.Common.RequestIntercepter {\n\n    "
  },
  {
    "path": "XpoMusic/Scripts/Common/resize.ts",
    "chars": 1179,
    "preview": "namespace XpoMusicScript.Common.Resize {\n    export function onResize() {\n        try {\n            /* \n             * "
  },
  {
    "path": "XpoMusic/Scripts/Common/startupAnimation.ts",
    "chars": 1478,
    "preview": "namespace XpoMusicScript.Common.StartupAnimation {\n    export function init() {\n        try {\n            var pivotItem"
  },
  {
    "path": "XpoMusic/Scripts/Common/statusReport.ts",
    "chars": 11694,
    "preview": "/// <reference path=\"../SpotifyApi/player.ts\" />\n\nnamespace XpoMusicScript.Common.StatusReport {\n\n    declare var XpoMu"
  },
  {
    "path": "XpoMusic/Scripts/Common/themedScrollbar.ts",
    "chars": 3706,
    "preview": "namespace XpoMusicScript.Common.ThemedScrollbar {\n\n    var currentScrollbars = [];\n\n    function getRandomId() {\n      "
  },
  {
    "path": "XpoMusic/Scripts/Common/tracklistExtended.ts",
    "chars": 5103,
    "preview": "namespace XpoMusicScript.Common.TracklistExtended {\n\n    declare var XpoMusic: any;\n\n    export function injectTrackIds"
  },
  {
    "path": "XpoMusic/Scripts/Common/uiElementModifier.ts",
    "chars": 12716,
    "preview": "/// <reference path=\"action.ts\" />\n/// <reference path=\"browserHistory.ts\" />\n/// <reference path=\"uiInjector.ts\" />\n//"
  },
  {
    "path": "XpoMusic/Scripts/Common/uiInjector.ts",
    "chars": 1350,
    "preview": "namespace XpoMusicScript.Common.UiInjector {\n    export function injectNavbarDownButton(button) {\n        var sessionIn"
  },
  {
    "path": "XpoMusic/Scripts/Common/uriHelper.ts",
    "chars": 1469,
    "preview": "namespace XpoMusicScript.Common.UriHelper {\n\n    export function getPwaUri(uri) {\n        if (uri === undefined || uri."
  },
  {
    "path": "XpoMusic/Scripts/Common/web-player-backup.ts",
    "chars": 398,
    "preview": "namespace XpoMusicScript.Common.WebPlayerBackup {\n\n    declare var XpoMusic: any;\n\n    export function runWebPlayerBack"
  },
  {
    "path": "XpoMusic/Scripts/DarkTheme/initScript-dark.ts",
    "chars": 400,
    "preview": "/// <reference path=\"../Common/initScript-common.ts\" />\n\nnamespace XpoMusicScript {\n\n    document.getElementsByTagName("
  },
  {
    "path": "XpoMusic/Scripts/DarkTheme/tsconfig.json",
    "chars": 357,
    "preview": "{\n  \"compileOnSave\": true,\n  \"compilerOptions\": {\n    \"noImplicitAny\": false,\n    \"noEmitOnError\": true,\n    \"removeComm"
  },
  {
    "path": "XpoMusic/Scripts/Lib/focus-visible.ts",
    "chars": 13815,
    "preview": "\nnamespace XpoMusicScript.Lib.FocusVisible {\n\n    export function init() {\n        /**\n         * Applies the :focus-vi"
  },
  {
    "path": "XpoMusic/Scripts/Lib/vibrant.ts",
    "chars": 12057,
    "preview": "\nnamespace XpoMusicScript.Lib.Vibrant {\n\n    export function init() {\n        //@ts-ignore\n        (function e$$0(x,z,l"
  },
  {
    "path": "XpoMusic/Scripts/LightTheme/initScript-light.ts",
    "chars": 494,
    "preview": "/// <reference path=\"../Common/initScript-common.ts\" />\n/// <reference path=\"pageOverlay.ts\" />\n\nnamespace XpoMusicScri"
  },
  {
    "path": "XpoMusic/Scripts/LightTheme/pageOverlay.ts",
    "chars": 453,
    "preview": "namespace XpoMusicScript.Light.PageOverlay {\n\n    export function createPageOverlay() {\n        try {\n            var b"
  },
  {
    "path": "XpoMusic/Scripts/LightTheme/tsconfig.json",
    "chars": 358,
    "preview": "{\n  \"compileOnSave\": true,\n  \"compilerOptions\": {\n    \"noImplicitAny\": false,\n    \"noEmitOnError\": true,\n    \"removeComm"
  },
  {
    "path": "XpoMusic/Scripts/SpotifyApi/apiBase.ts",
    "chars": 1360,
    "preview": "namespace XpoMusicScript.SpotifyApi {\n\n    declare var XpoMusic: any;\n    var accessToken = \"{{SPOTIFYACCESSTOKEN}}\";\n\n"
  },
  {
    "path": "XpoMusic/Scripts/SpotifyApi/library.ts",
    "chars": 1557,
    "preview": "/// <reference path=\"apiBase.ts\" />\n\nnamespace XpoMusicScript.SpotifyApi {\n    export class Library extends ApiBase {\n "
  },
  {
    "path": "XpoMusic/Scripts/SpotifyApi/player.ts",
    "chars": 400,
    "preview": "/// <reference path=\"apiBase.ts\" />\n\nnamespace XpoMusicScript.SpotifyApi {\n    export class Player extends ApiBase {\n  "
  },
  {
    "path": "XpoMusic/SpotifyApi/Album.cs",
    "chars": 788,
    "preview": "using XpoMusic.Helpers;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing"
  },
  {
    "path": "XpoMusic/SpotifyApi/ApiBase.cs",
    "chars": 5848,
    "preview": "using Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net.Http;\nusing "
  },
  {
    "path": "XpoMusic/SpotifyApi/Artist.cs",
    "chars": 776,
    "preview": "using XpoMusic.Helpers;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing"
  },
  {
    "path": "XpoMusic/SpotifyApi/Authorization.cs",
    "chars": 2985,
    "preview": "using Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net;\nusing Syste"
  },
  {
    "path": "XpoMusic/SpotifyApi/Library.cs",
    "chars": 3352,
    "preview": "using Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net.Http;\nusing "
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/AlbumSimplified.cs",
    "chars": 268,
    "preview": "namespace XpoMusic.SpotifyApi.Model\n{\n    public class AlbumSimplified\n    {\n        public ArtistSimplified[] artists;"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/Artist.cs",
    "chars": 216,
    "preview": "namespace XpoMusic.SpotifyApi.Model\n{\n    public class Artist\n    {\n        public string href;\n        public string i"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/ArtistSimplified.cs",
    "chars": 195,
    "preview": "namespace XpoMusic.SpotifyApi.Model\n{\n    public class ArtistSimplified\n    {\n        public string href;\n        publi"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/CurrentlyPlayingContext.cs",
    "chars": 378,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/Device.cs",
    "chars": 418,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/Devices.cs",
    "chars": 228,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/FollowedArtistsResponse.cs",
    "chars": 263,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/Image.cs",
    "chars": 157,
    "preview": "namespace XpoMusic.SpotifyApi.Model\n{\n    public class Image\n    {\n        public string url;\n        public int? heigh"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/Paging.cs",
    "chars": 575,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/Playlist.cs",
    "chars": 406,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/SavedAlbum.cs",
    "chars": 294,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nna"
  },
  {
    "path": "XpoMusic/SpotifyApi/Model/Track.cs",
    "chars": 242,
    "preview": "namespace XpoMusic.SpotifyApi.Model\n{\n    public class Track\n    {\n        public int duration_ms;\n        public strin"
  },
  {
    "path": "XpoMusic/SpotifyApi/Player.cs",
    "chars": 5494,
    "preview": "using XpoMusic.Helpers;\nusing XpoMusic.SpotifyApi.Model;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections."
  },
  {
    "path": "XpoMusic/SpotifyApi/Playlist.cs",
    "chars": 792,
    "preview": "using XpoMusic.Helpers;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing"
  },
  {
    "path": "XpoMusic/SpotifyApi/TokenHelper.cs",
    "chars": 3187,
    "preview": "using XpoMusic.Helpers;\nusing Plugin.SecureStorage;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\n"
  },
  {
    "path": "XpoMusic/Styles/CircleButtonStyle.xaml",
    "chars": 11502,
    "preview": "<ResourceDictionary\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" \n    xmlns:x=\"http://schemas."
  },
  {
    "path": "XpoMusic/Styles/MinimalButtonStyle.xaml",
    "chars": 3848,
    "preview": "<ResourceDictionary\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" \n    xmlns:x=\"http://schemas."
  },
  {
    "path": "XpoMusic/Styles/TopBarDarkButtonStyle.xaml",
    "chars": 3758,
    "preview": "<ResourceDictionary\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" \n    xmlns:x=\"http://schemas."
  },
  {
    "path": "XpoMusic/Styles/TopBarLightButtonStyle.xaml",
    "chars": 3759,
    "preview": "<ResourceDictionary\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" \n    xmlns:x=\"http://schemas."
  },
  {
    "path": "XpoMusic/Stylesheets/Common/Animation/artistPage.scss",
    "chars": 1112,
    "preview": "\n\n\n.artist h1 {\n    opacity: 0;\n    animation: animation-entrance-artist-section-header-item 0.4s ease-out 0s forwards;"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/Animation/navbarStartup.scss",
    "chars": 802,
    "preview": "@for $i from 1 through 3 {\n    .Root__nav-bar .navBar ul li:nth-child(#{$i}) {\n        opacity: 0;\n        animation: a"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/Animation/nowPlayingStartup.scss",
    "chars": 965,
    "preview": ".now-playing-bar__left {\n    opacity: 0;\n    animation: animation-entrance-now-playing-item 0.4s ease forwards;\n}\n\n.pla"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/Animation/pageEntrance.scss",
    "chars": 987,
    "preview": "/* Tab/page change entrance animation */\n\n.HeaderedGrid__header,\n.container-fluid,\n.search-history {\n    animation: ani"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/Animation/pivotEntrance.scss",
    "chars": 650,
    "preview": "/* Pivot item animation */\n\n.Root__main-view nav ul li {\n    opacity: 0;\n}\n\n@for $i from 1 through 12 {\n    .Root__main"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/Animation/searchPage.scss",
    "chars": 386,
    "preview": "\n@for $i from 1 through 5 {\n    #searchPage section:nth-child(#{$i}) {\n        opacity: 0;\n        animation: animation"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/Animation/tracklistEntrance.scss",
    "chars": 661,
    "preview": "/* Tracklist item animation */\n@for $i from 1 through 11 {\n    .tracklist > div:nth-child(#{$i}) .tracklist-row {\n     "
  },
  {
    "path": "XpoMusic/Stylesheets/Common/adsContainer.scss",
    "chars": 492,
    "preview": "\n.Root__main-view--has-ads > div:nth-child(3) {\n    z-index: 10000;\n}\n\n.Root__main-view--has-ads > div:nth-child(3) > d"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/artistPage.scss",
    "chars": 905,
    "preview": "\n.content.artist header::before {\n    /* background: -webkit-gradient(linear,left top,left bottom,color-stop(-30%,trans"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/backButton.scss",
    "chars": 542,
    "preview": "\n.backButtonContainer {\n    position: fixed;\n    left: 0;\n    top: 0;\n    z-index: 10;\n    width: 46px;\n    height: 32p"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/common.scss",
    "chars": 672,
    "preview": "@import \"general.scss\";\n@import \"adsContainer.scss\";\n@import \"backButton.scss\";\n@import \"contextMenu.scss\";\n@import \"fo"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/contextMenu.scss",
    "chars": 523,
    "preview": "/* Context menu */\n.react-contextmenu {\n    border: 0;\n    border: 1px solid #505050;\n    border-radius: 0;\n    backgro"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/fontStyle.scss",
    "chars": 1078,
    "preview": "/* Font style changes */\n\nbody {\n    --glue-font-weight-normal: 400;\n    --glue-font-weight-bold: 500;\n    --glue-font-"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/general.scss",
    "chars": 6132,
    "preview": "\nhtml {\n    /* \n        Color of the bounce effect of page when using touch or touchpad.\n    */\n    background-color: #"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/navBar.scss",
    "chars": 1143,
    "preview": "\n.Root__nav-bar {\n    background-color: rgba(45, 45, 45, 0.45) !important;\n    backdrop-filter: blur(20px);\n    -webkit"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/nowPlayingBar.scss",
    "chars": 1209,
    "preview": "\n.Root__now-playing-bar {\n    background-color: transparent;\n    z-index: 10;\n}\n\n.now-playing-bar-container {\n    borde"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/pivotTabStyle.scss",
    "chars": 1271,
    "preview": "/* Pivot tab style */\n\n.Root__main-view nav ul li a, .Root__top-bar nav ul li a {\n    /* text-transform: lowercase !imp"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/searchPage.scss",
    "chars": 45,
    "preview": "\n#searchPage h2 {\n    font-weight: 100;\n}\n\n\n"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/smallWidthWindow.scss",
    "chars": 4088,
    "preview": "/* Making UI usable for width < 720px, as UWP needs to support 500px+ */\nbody {\n    min-width: 500px;\n    min-height: 5"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/themedScrollbar.scss",
    "chars": 394,
    "preview": "\n.xpo-scroll-container {\n    overflow-y: auto;\n    overflow-x: hidden;\n    -ms-overflow-style: none;\n}\n\n.xpo-extra-scro"
  },
  {
    "path": "XpoMusic/Stylesheets/Common/trackList.scss",
    "chars": 844,
    "preview": "\n.tracklist-top-align {\n    /* No top align, will always be middle aligned. */\n    position: relative;\n    top: 50%;\n  "
  },
  {
    "path": "XpoMusic/Stylesheets/Common/windowTitle.scss",
    "chars": 243,
    "preview": "/* Window title */\n.xpotifyWindowTitle {\n    position: fixed;\n    font-family: Segoe UI;\n    font-weight: 400;\n    padd"
  },
  {
    "path": "XpoMusic/Stylesheets/DarkTheme/dark.scss",
    "chars": 34,
    "preview": "@import \"../Common/common.scss\";\n"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/artistPage.scss",
    "chars": 760,
    "preview": "\n.content.artist > div:nth-child(1) {\n    filter: invert(1);\n}\n\n.content.artist button[aria-label=Play], .content.artis"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/contextMenu.scss",
    "chars": 181,
    "preview": ".react-contextmenu.react-contextmenu--visible {\n    /* Context menu shadow should be dark in light mode as well */\n    "
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/general.scss",
    "chars": 3180,
    "preview": "html {\n    /* \n        Color of the bounce effect of page when using touch or touchpad.\n    */\n    background-color: #E"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/light.scss",
    "chars": 343,
    "preview": "@import \"../Common/common.scss\";\n@import \"general.scss\";\n@import \"artistPage.scss\";\n@import \"contextMenu.scss\";\n@import"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/navBar.scss",
    "chars": 282,
    "preview": ".Root__nav-bar {\n    background-color: rgba(40, 40, 40, 0.6) !important;\n    backdrop-filter: blur(20px);\n    -webkit-b"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/nowPlayingBar.scss",
    "chars": 280,
    "preview": ".now-playing-bar-container {\n    background-color: rgba(30, 33, 40, 0.65);\n}\n\n.connect-device-list-item--active .connec"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/pivotTabStyle.scss",
    "chars": 229,
    "preview": ".Root__main-view nav ul li a[aria-current=page], .Root__top-bar nav ul li a[aria-current=page] {\n    border-bottom-colo"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/podcastEpisodeDetails.scss",
    "chars": 235,
    "preview": ".ad6f7074db563f98f848cc3ffdbd8190\\.scss img, .ad6f7074db563f98f848cc3ffdbd8190\\.scss button {\n    filter: invert(1);\n}\n"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/progressBar.scss",
    "chars": 199,
    "preview": ".progress-bar .progress-bar__fg {\n    transition-duration: 0s;\n    background-color: #b3b3b3;\n}\n\n.progress-bar--is-acti"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/searchPage.scss",
    "chars": 222,
    "preview": "\n#searchPage div[role=search] {\n    filter: invert(1);\n}\n\n#searchPage img {\n    filter: invert(1);\n}\n\n#searchPage a[hre"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/trackList.scss",
    "chars": 195,
    "preview": "\n.tracklistSongExistsInLibrary .trackListRemoveSongButton {\n    color: #E246AB;\n}\n\n.tracklist-row .more {\n    filter: i"
  },
  {
    "path": "XpoMusic/Stylesheets/LightTheme/windowTitle.scss",
    "chars": 48,
    "preview": "\n.xpotifyWindowTitle {\n    font-weight: 300;\n}\n"
  },
  {
    "path": "XpoMusic/Themes/Generic.xaml",
    "chars": 19635,
    "preview": "<ResourceDictionary\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n    xmlns:x=\"http://schemas.mi"
  },
  {
    "path": "XpoMusic/ViewModels/MainPageViewModel.cs",
    "chars": 1250,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/ViewModels/NowPlayingViewModel.cs",
    "chars": 9607,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/ViewModels/ProxyConfigurationViewModel.cs",
    "chars": 2988,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusin"
  },
  {
    "path": "XpoMusic/ViewModels/SettingsViewModel.cs",
    "chars": 4859,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Classes.Model;\nusing XpoMusic.Helpers;\nusing System;\nusing System.Collections.Ge"
  },
  {
    "path": "XpoMusic/ViewModels/TopBarViewModel.cs",
    "chars": 2154,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusi"
  },
  {
    "path": "XpoMusic/ViewModels/ViewModelBase.cs",
    "chars": 501,
    "preview": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Linq;\nusing System.Text;\nusin"
  },
  {
    "path": "XpoMusic/XpoMusic.csproj",
    "chars": 35863,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Project ToolsVersion=\"15.0\" DefaultTargets=\"Build\" xmlns=\"http://schemas.micros"
  },
  {
    "path": "XpoMusic/XpotifyApi/AppConstantsApi.cs",
    "chars": 2353,
    "preview": "using XpoMusic.Helpers;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing"
  },
  {
    "path": "XpoMusic/XpotifyApi/AssetUpdatesApi.cs",
    "chars": 4156,
    "preview": "using XpoMusic.Classes;\nusing XpoMusic.Helpers;\nusing XpoMusic.XpotifyApi.Model;\nusing Newtonsoft.Json;\nusing System;\nu"
  }
]

// ... and 31 more files (download for full content)

About this extraction

This page contains the full source code of the MahdiGhiasi/XpoMusic GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 231 files (771.4 KB), approximately 169.3k tokens, and a symbol index with 646 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!