WPF Reflections

Oct 22 2008   9:58AM GMT

WPF – Loaded event in browser applications



Posted by: MarkWPF
Tags:
WPF

This is a slightly strange one to my thinking.

If you have a loaded event in a panel on a page, it will get fired multiple times.
This goes against the behaviour of a WPF application (or Winforms for that matter).
I don’t know if the same is true for an Asp.Net forms application, since I haven’t done many.

It seems to be using the Loaded event as more of an Activated event.

To see this behaviour easily:

  1. Create a WPF browser application (xbap)
  2. Add a tab control
  3. Add a panel to 1 tab
  4. Add another panel to another tab
  5. do something in Loaded event in first tab , eg change colour of the panel

When you click on second tab and back to first tab, the loaded event will be fired again

 

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: