c# - How to pass data from child to parent view or between child views? -


Hi, I am currently migrating the Silverlight to the C # WPF project and I have stumbled upon a problem due to lack of Silverlight knowledge:

My men page Xml that accepts multiple views, for example

I want to pass a string from View 1 to programmatic pass passes from View 1 Based on the value that was made, the view 2 will change.

I have searched for this topic for some time, I do not know how values ​​can be used / transmitted between scenes (or at least one optional - back For the parents, and then the other child?)

Now, but I could not understand it. If there is any answer anywhere on my forum forum, my question has been poorly written. My question is stupid || In other cases, I am deeply sorry - do not bother / insult anyone

Thank you.

View properly, you mean navigation pages. There are several ways to do this by using the Navigation application, but I think the best method is using URL parameters (like html parameters) if your parameters are simple string values, then you < Previous> this.NavigationContext.QueryString ["ProductId"]; Click here for more information:

If you need to cross complex types, then use a public property in your view.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -