简体   繁体   English

在另一个应用程序中更改WPF控件的属性?

[英]Changing property on WPF control in another application?

Is it possible to change a value of a WinRT control in another application? 是否可以在另一个应用程序中更改WinRT控件的值?

I am using a Windows Surface Pro 2, which uses Windows 8.1. 我使用的是Windows Surface Pro 2,它使用的是Windows 8.1。 this OS has a text prediction feature which requires the TextBox.IsTextPredictionEnabled property to be set to true. 此操作系统具有文本预测功能,需要将TextBox.IsTextPredictionEnabled属性设置为true。 If this is set to false, then it will not use the text prediction. 如果将其设置为false,则不会使用文本预测。

Unfortunately for me, there are instances where the application developer thought it prudent to turn this feature off (default is on) and I disagree. 不幸的是,在某些情况下,应用程序开发人员认为谨慎地关闭此功能(默认打开)并且我不同意。 I would like to change this. 我想改变这个。 Is there a way? 有办法吗?

没有.WinRT上的应用程序是严重沙盒的,所以没有直接的方法来影响其他应用程序。

As Euphoric said, there is no direct way to do that. 正如Euphoric所说,没有直接的方法可以做到这一点。

If I needed to change a properties (I'm talking about our own apps), maybe I can try to create a text file and read it with the other app, so with a few if condition I can change values by that text file. 如果我需要更改属性(我正在谈论我们自己的应用程序),也许我可以尝试创建一个文本文件并使用其他应用程序读取它,因此使用一些if条件我可以通过该文本文件更改值。 But both of your applications should be updated. 但是你的两个应用程序都应该更新。 If they are not our application there is no way to do that. 如果它们不是我们的应用程序,则无法做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM