/// <summary>
        /// Initializes a new instance of the CaptionSettingsControl class.
        /// </summary>
        public CaptionSettingsControl()
        {
            this.DefaultStyleKey = typeof(CaptionSettingsControl);

            var viewModel = new CaptionSettingsFlyoutViewModel();

            this.DataContext = viewModel;

            this.CaptionSettings = new CustomCaptionSettings();

            viewModel.PropertyChanged += this.OnViewModelPropertyChanged;

            object value;

            if (Windows.Storage.ApplicationData.Current.LocalSettings.Values.TryGetValue(OverrideDefaultKey, out value))
            {
                viewModel.IsEnabled = (bool)value;
            }
        }
        /// <summary>
        /// Initializes a new instance of the CaptionSettingsControl class.
        /// </summary>
        public CaptionSettingsControl()
        {
            this.InitializeComponent();

            if (DesignMode.DesignModeEnabled)
            {
                this.LayoutRoot.Background = new SolidColorBrush(Colors.Black);
            }

            var loader = Microsoft.PlayerFramework.CaptionSettings.AssemblyResources.Get();

            var viewModel = new CaptionSettingsFlyoutViewModel();

            this.DataContext = viewModel;

            object value;

            if (Windows.Storage.ApplicationData.Current.LocalSettings.Values.TryGetValue(OverrideDefaultKey, out value))
            {
                viewModel.IsEnabled = (bool)value;
            }

            viewModel.PropertyChanged += this.OnViewModelPropertyChanged;
        }