public TabContent(Chapter chapter)
        {
            _objectID = ++_objectNN;
            _chapter  = chapter;
            this.InitializeComponent();

            ApplyUiColors();

            MyWebView.Settings.IsJavaScriptEnabled = true; //enabled by default

            AppData.Settings.PropertyChanged += TabContent_PropertyChanged;

            MyPlayer.MediaPlayer.CommandManager.PreviousBehavior.EnablingRule = _chapter.HasPreviousChapter() ? MediaCommandEnablingRule.Always : MediaCommandEnablingRule.Never;
            MyPlayer.TransportControls.IsPreviousTrackButtonVisible           = _chapter.HasPreviousChapter() ? true : false;
            MyPlayer.MediaPlayer.CommandManager.NextBehavior.EnablingRule     = _chapter.HasNextChapter() ? MediaCommandEnablingRule.Always : MediaCommandEnablingRule.Never;
            MyPlayer.TransportControls.IsNextTrackButtonVisible = _chapter.HasNextChapter() ? true : false;

            MyPlayer.MediaPlayer.CommandManager.NextReceived            += CommandManager_NextReceived;
            MyPlayer.MediaPlayer.CommandManager.PreviousReceived        += CommandManager_PreviousReceived;
            MyPlayer.MediaPlayer.PlaybackSession.NaturalDurationChanged += PlaybackSession_NaturalDurationChanged;
            MyPlayer.Source = MediaSource.CreateFromUri(new Uri(_chapter.BookSoundPath()));
            MyWebView.Navigate(new Uri(_chapter.BookTextPath()));
        }