How to get a certain UI control from two classes
问题 I'm developing a UWP application with two window pages on two separate screens. It's include: Mainpage.xaml Mainpage.xaml.cs Page2.xaml Page2.xaml.cs My scenario: get the mouse position(X) while moving on the secondary screen (Page2). write it in the text block on the first screen (MainPage), Changing at the same time. In MainPage.xaml <Page x:Class="LineDraw.MainPage" xmlns:local="using:LineDraw" ... .. <Grid> <TextBlock Name="textblock" Text="N/A" HorizontalAlignment="Stretch"