在Windows 8.1平板电脑屏幕镜像问题

我正试图实现屏幕镜像在Windows 8.1平板电脑上使用WiFiencryption狗的电视。 我使用microsoft提供的projectionmanager类,但由于某种原因,它无法检测辅助显示。 以下是代码:

bool available = ProjectionManager.ProjectionDisplayAvailable; ProjectionManager.ProjectionDisplayAvailableChanged += (s, e) => { available = ProjectionManager.ProjectionDisplayAvailable; }; int thisviewid = ApplicationView.GetForCurrentView().Id; // CoreDispatcher preseDispatcher= await ((App)App.Current).CreateNewView; ApplicationView appView = ApplicationView.GetForCurrentView(); CoreApplicationView view = CoreApplication.CreateNewView(); ApplicationView newAppView = ApplicationView.GetForCurrentView(); await view.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,() => { Window newWindow = Window.Current; var rootframe = new Frame(); rootframe.Navigate(typeof(Projection),null); Window.Current.Content = rootframe; } ); await ProjectionManager.StartProjectingAsync(newAppView.Id, appView.Id); 

当我debugging代码时,ProjectionsDisplayAvailable值保持为false。 不知道如何继续相同或使这个工作