D
D
daniel12014-03-23 17:18:50
C++ / C#
daniel1, 2014-03-23 17:18:50

[Xamarin,IOS,C#] How to change UI Controller/Variable in another View?

Let's say there are 2 views - view1 and view2. In view2, the data variable is declared and the textField text field is added.
Is it possible to change their values ​​from view1, and if so, how?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Doshevsky, 2014-03-24
@MikhailD

For Xamarin development, it is best to use the MVVM approach.
en.wikipedia.org/wiki/Model-View-ViewModel
There is a mvvmcross framework
https://github.com/MvvmCross/MvvmCross/wiki
blog.xamarin.com/mvvmcross-seminar

A
ad1Dima, 2014-03-24
@ad1Dima

If there is no connection between view1 and view2 - no way.
If there is a connection (a link in one to another), then through it.
You can try to build a connection through the 3rd object.

G
gleb_kudr, 2014-03-25
@gleb_kudr

Get yourself a global page manager object and store links to the necessary views there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question