Thursday, 15 March 2012

c# - Best way to call back/noftify parent page of an event? -


In a Silverlight 3.0 app, there is a shell page that acts as a navigation piece for many baby controls and other Silverlight Does the pages have The Frame page contains the Silverlight page in the Shell Page. The I pages are dynamically rotated through the code-back file, so xaml has no direct reference for them.

How can call these dynamically-linked pages back to Shell Page? We are currently using events to communicate with the included user controls, but these are known events that we can subscribe to xaml ... then if you are suggesting events please include a solid example .

TIA

If you are controlling each child from the parent page, then you have to complete the rep Can be used. Very common example:

  public representative zero function delegate (string child control_name);  

In the parent container class:

  public functionDelaget eventfunction;  

In the original container manufacturer:

  EventFunc = DoSomeAction;  

Funnel the event on the child object and call when appropriate.


No comments:

Post a Comment