UWP share only ScrollViewer to External Monitor/MiraCast

Detection score: 1.5

<p>it works, but now i have another problem:</p>

<p>i have a splitpane and i want a ToogleSwitch for MiraCast (on off) 
the code will be in MainPage.</p>

<p>But how do i access the Image(class <strong>Home</strong>) from class (<strong>mainpage</strong>)</p>

<p>in mainPage:</p>

<pre><code>Home myHome = new Home();
await connection.RequestStartCastingAsync(scImage.GetAsCastingSource()); &lt;-- myHome.scImage.GetAsCastingSource ?
</code></pre>

<p>home.xaml:</p>

<pre><code>&lt;ScrollViewer x:Name="SV_ImageZoom"           
              MaxZoomFactor="4"
              MinZoomFactor="1"
              ZoomMode="Enabled"                          
              HorizontalScrollBarVisibility="Auto"
              VerticalScrollBarVisibility="Auto" Margin="183,130,182,20" DoubleTapped="img_doubleTapped"&gt;
            &lt;Image x:Name="scImage" Source="Assets/Tulips.jpg" x:FieldModifier="public" 
           Width="Auto" RenderTransformOrigin="0.5,0.5" Height="Auto" Stretch="Fill" Visibility="Collapsed" /&gt;
        &lt;/ScrollViewer&gt;
</code></pre>

<p>i set the <strong>x:FieldModifier="public"</strong> </p>

<p>thanks for your help</p>
Posted 8 days ago | reported 8 days ago
Posted by silazzz (45)

Caught by 4 reasons: