WPF remote desktop functionality
First, developers using the command prompt
Enter their project files in the root directory
Enter aximp C: \ windows \ System32 \ mstscax.dll generate both a DLL
Increase the reference DLL to your project
Increased Forms DLL
XAML
Increase namespace xmlns: ax = "clr-namespace: AxMSTSCLib; assembly = AxMSTSCLib"
-
<Grid>
-
<WindowsFormsHost >
-
<ax:AxMsTscAxNotSafeForScripting x:Name=
"axm" Width=
"1000" Height=
"1000" />
-
</WindowsFormsHost>
-
-
</Grid>
Backstage
-
axm.Server =
"IP地址";
-
axm.Connect();
effect