2017-11-29 11 views
0

私はMiracastを介して外部モニタに画像(Koala)を表示します。 ペンギンはプレゼンテーションアプリのような自分自身のためのプレビューとしてのみです。 MiracastにScrollViewerと内部の画像のみが表示されるのは可能ですか?ここUWPはScrollViewerを外部モニタ/ MiraCastにのみ共有します

私のXAML:お使いの助けを

<Page 
x:Class="App6.MainPage" 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
xmlns:local="using:App6" 
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
mc:Ignorable="d" Width="335"> 

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Margin="-410,0,-195,65"> 
    <ScrollViewer x:Name="myScrollViewer" HorizontalAlignment="Left" Height="485" Margin="350,45,0,0" VerticalAlignment="Top" Width="565"> 
     <Image x:Name="myImage" Height="483" Width="570" Source="Assets/Koala.jpg" Stretch="UniformToFill"/> 
    </ScrollViewer> 
    <Image x:Name="nextImage" HorizontalAlignment="Left" Height="160" Margin="55,45,0,0" VerticalAlignment="Top" Width="205" Source="Assets/Penguins.jpg"/> 

</Grid> 

here the Preview

ありがとう!

答えて

1

MiracastにはScrollViewerと内部の画像のみが表示されますか?

はい。 BasicMediaCastingサンプルのシナリオ3をチェックできます。このサンプルでは、​​Miracastでビデオをレンダリングします。また、Miracastで画像をレンダリングすることもできます。あなたは次のようにRequestStartCastingAsync方法に画像のCastingSource Classオブジェクトを渡す必要があります:

await connection.RequestStartCastingAsync(img.GetAsCastingSource()); 
+0

おかげで、私はそれをテストします! – silazzz

+0

こんにちは、私はScrollViewを渡すことができますか? – silazzz

関連する問題