Looking for Event Name List

Topics: Actions & Coroutines
Mar 22, 2012 at 5:26 PM

Is there a complete list of event names?  I have searched and searched with no luck.

I have found:

EventName="LostFocus"

 

EventName="Click"

EventName="MouseEnter"

EventName="KeyDown"

 

Thank you

Mar 23, 2012 at 7:11 AM

These event names are not CM specific, they are control specific, but I assume you already know that.

As well as there are different ways to get a control's event names. But the old school approach would be:

Eg. for a plain default button, take a look at the msdn-docs and scroll down to events (http://msdn.microsoft.com/en-us/library/system.windows.controls.button.aspx). Don't forget to choose your technology (.NET Version or Silverlight) at the top of the page, there might be different events! You can find all other controls (and control events) in the docs - just navigate to the according namespace! If you choose to use third party controls - their docs should include the same overview.

Other ways are:

  • use IntelliSense in Visual Studio XAML file;
  • if you use Blend: In the properties panel, beside the "Name" field, there is a button to show all available events;
  • and of course some more I don't use frequently...

For a general list of "base" events, take a look at general control base classes like:

I hope that's what you was looking for!

Roland

Mar 23, 2012 at 2:36 PM

That is exactly what I was looking for.  Thank you very much.

Randy Raymond