2017-11-29 6 views
0

Miracast를 통해 내 외부 모니터에 이미지 (코알라) 만 표시합니다. 펭귄은 프레젠테이션 앱처럼 나 자신을위한 미리보기로만 사용됩니다. 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

관련 문제