C# 在miracast设备使用'时,是否有办法隐藏配对消息框;请求StartCasting';? 显示器中连接的Miracast设备 使用“CastingDevice.CreateCastingConnection()”创建与Miracast设备的连接 Miracast设备的铸造请求 使用“castDeviceConnection.RequestStartCastingAsync()”

C# 在miracast设备使用'时,是否有办法隐藏配对消息框;请求StartCasting';? 显示器中连接的Miracast设备 使用“CastingDevice.CreateCastingConnection()”创建与Miracast设备的连接 Miracast设备的铸造请求 使用“castDeviceConnection.RequestStartCastingAsync()”,c#,uwp,miracast,C#,Uwp,Miracast,在'RequestStartCastingAsync()'调用后显示的设备配对消息框。 有没有办法隐藏这些消息框?? 示例代码: //Create a new casting connection to the device that's been selected castDeviceConnection = SelectedCastingDevice.CreateCastingConnection(); //Regi

在'RequestStartCastingAsync()'调用后显示的设备配对消息框。 有没有办法隐藏这些消息框??

示例代码:

            //Create a new casting connection to the device that's been selected
             castDeviceConnection = SelectedCastingDevice.CreateCastingConnection();

            //Register for events
            castDeviceConnection.ErrorOccurred += Connection_ErrorOccurred;
            castDeviceConnection.StateChanged  += Connection_StateChanged;

            //casting test image
            Image castImage = new Image();
            castImage.Source = new Windows.UI.Xaml.Media.Imaging.BitmapImage
                                                        (new Uri(@"ms-appx:////Assets/test.jpg"));
            CastingConnectionErrorStatus status = CastingConnectionErrorStatus.Unknown;

            // Request for casting
            castDeviceConnection.RequestStartCastingAsync( castImage.GetAsCastingSource());

这是设计的。你有什么特别行动吗?为什么要隐藏配对消息框?有时API与miracast设备正确连接。有时候不是。API显示了这种不一致性。因此,我正在检查是否有任何差异,如果配对消息框是隐藏的。我不认为你可以隐藏配对消息框。