/// <summary>
        /// Triggers when the Enabled property of the VideoStabilizationEffect changes.
        /// </summary>
        /// <param name="sender">The instance of the effect firing the event.</param>
        /// <param name="args">Information about the event.</param>
        private async void VideoStabilizationEffect_EnabledChanged(VideoStabilizationEffect sender, VideoStabilizationEffectEnabledChangedEventArgs args)
        {
            await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                Debug.WriteLine("VS Enabled: " + sender.Enabled + ". Reason: " + args.Reason);

                // Update buttons to reflect the new state
                UpdateCaptureControls();
            });
        }
 //</SnippetSetUpVideoStabilizationRecommendationAsync>
 //<SnippetVideoStabilizationEnabledChanged>
 private async void VideoStabilizationEffect_EnabledChanged(VideoStabilizationEffect sender, VideoStabilizationEffectEnabledChangedEventArgs args)
 {
     await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         // Update your UI to reflect the change in status
         ShowMessageToUser("video stabilization status: " + sender.Enabled + ". Reason: " + args.Reason);
     });
 }
        /// <summary>
        /// Triggers when the Enabled property of the VideoStabilizationEffect changes.
        /// </summary>
        /// <param name="sender">The instance of the effect firing the event.</param>
        /// <param name="args">Information about the event.</param>
        private async void VideoStabilizationEffect_EnabledChanged(VideoStabilizationEffect sender, VideoStabilizationEffectEnabledChangedEventArgs args)
        {
            await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                Debug.WriteLine("VS Enabled: " + sender.Enabled + ". Reason: " + args.Reason);

                // Update buttons to reflect the new state
                UpdateCaptureControls();
            });
        }