Unable to update UWP UI from code behind using Dispatcher
问题 I have a derived class from MediaTransportControls and trying to disable previous and next track buttons based on some events. I wrote following public class MyMediaTransportControls : MediaTransportControls { public static readonly DependencyProperty IsPreviousTrackButtonEnabledProperty = DependencyProperty.Register( "IsPreviousTrackButtonEnabled", typeof(bool), typeof(MyMediaTransportControls), new PropertyMetadata(false, IsPreviousTrackButtonEnabledChangedCallback)); private static async