绑定到没有Xaml的元素 [英] Binding to element without Xaml

查看:55
本文介绍了绑定到没有Xaml的元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道绑定到同一XAML中的元素非常方便,但是我想知道是否可以绑定到另一个页面(XAML)中的元素.

I know it's quite convenient to bind to the element that in the same XAML, but I wonder if it's possible to bind to the element in another page(XAML).

我在Page1.xaml中设置了一个文本框,我希望在Page2.xaml中显示该文本块以显示其输入的文本.我该怎么做?设置一些数据上下文?

I set a textbox in Page1.xaml and I want the textblock in Page2.xaml to display the text it inputs. How can I do it? Set some datacontext?

请帮我!!(≧ω≦*)非常感谢!

Please help me !!ヾ(≧ω≦*) Big thanks!!!

推荐答案

乐乐

请告诉我您需要将数据从一页传递到另一页?是的,这样我们可以实现.请正确提供您的方案.那只有我能帮你

Just Tell me you need to pass your data from one page to another page ? is it so yeah we can achieve .Please provide your scenario properly. then only I can help you

  

  


这篇关于绑定到没有Xaml的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆