【发布时间】:2018-06-21 09:47:38
【问题描述】:
如何在 Windows Phone 中从另一个 file.xaml.cs 将 Text 设置为 TextBox? 就我而言,我有一个 class.xaml.cs,它将为 anotherClass.xaml.cs 设置一个文本。我还是不明白怎么设置。
【问题讨论】:
标签: c# windows-phone-8 windows-phone
如何在 Windows Phone 中从另一个 file.xaml.cs 将 Text 设置为 TextBox? 就我而言,我有一个 class.xaml.cs,它将为 anotherClass.xaml.cs 设置一个文本。我还是不明白怎么设置。
【问题讨论】:
标签: c# windows-phone-8 windows-phone
喂,
考虑到在 WindowsPhone 上可以一次显示一个页面,您可以通过不同的方式来做到这一点,或者通过在运行方法 NavigationService 时在页面之间传递参数,或者在 App 类中声明的变量,它一直保持活动状态直到应用程序未完成,或者使用静态类并且您创建了所需的 / 属性,有关更多详细信息,请参阅此线程
【讨论】: