/// <summary>
 /// Route the control's OnApplyCaptionSettings event
 /// </summary>
 /// <param name="sender">the CaptionSettingsControl</param>
 /// <param name="e">the custom caption settings event arguments</param>
 private void Control_OnApplyCaptionSettings(object sender, CustomCaptionSettingsEventArgs e)
 {
     if (this.OnApplyCaptionSettings != null)
     {
         this.OnApplyCaptionSettings(sender, e);
     }
 }
        /// <summary>
        /// Apply the caption settings from the control to the TTML
        /// </summary>
        /// <param name="sender">the caption settings control</param>
        /// <param name="e">the custom caption settings event arguments</param>
        private void OnApplyCaptionSettings(object sender, CustomCaptionSettingsEventArgs e)
        {
            this.IsDefault = e.Settings == null;

            this.ApplyCaptionSettings(e.Settings);
        }
        /// <summary>
        /// Apply the caption settings
        /// </summary>
        /// <param name="sender">the sender</param>
        /// <param name="e">the custom caption settings event arguments</param>
        private void OnApplyCaptionSettings(object sender, CustomCaptionSettingsEventArgs e)
        {
            this.IsDefault = e.Settings == null;

            if (!this.IsDefault)
            {
                Windows.Storage.ApplicationData.Current.LocalSettings.Values.Remove(LocalSettingsKey);
            }

            this.ApplyCaptionSettings(e.Settings);
        }