silverlight - Sketchflow Binding Between Screens -


I want to bind the selected elements from the grid to the text box on a separate page.

Can this be done?

If you mean completely different pages, then the screens are only present when your " Text box page "appears, the last" grid page "no longer exists. If this can be done then my answer will be "Do not do this" because you will be tied to each other with different pages. This is considered a bad practice.

The latest Silverlight practices believe that the data should be shared through models and visual models that are longer than the screen (Silverlight MVVM pattern to see on Google). View Models are basically a place for your code-transfer, the purpose is to leave your XAML pages almost code-free.

Actually you want your screen to share common data. In this case, your current selection will be included in the list of data items (you do not really care that it was the actual selection grid).

The "grid-screen" data model has been bound to receive its data source for the grid and its current selected item has an item in the data model. The same model (or referral model) is bound to your "text box page" when the text box on that page is already bound to the results stored in the data model.

One downside is that the data model / visual model should have all bindable properties if you do not bind them, you do not get any error, just no data.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -