Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Fire events from Xaml files.. events in Pre compiled Dll's

Closed Thread
 
Thread Tools Display Modes
Old 09-15-2006   #1 (permalink)
SureshGubba
Guest


 

Fire events from Xaml files.. events in Pre compiled Dll's

Hi ,

My Requirement is to fire events for controls which are in Xaml files.
There events are to be wired to a precompiled dll which has the events
...

Old 09-15-2006   #2 (permalink)
bruce.abernethy@gmail.com
Guest


 

Re: Fire events from Xaml files.. events in Pre compiled Dll's

At some level in your app you will have a container Window, Frame, Page
that contains the Controls defined in the XAML. You can add a handler
to this container for each event that you want to respond to (e.g.
AddHandler(Button.ClickEvent, new RoutedEventHandler(ButtonClick)) <-
defined in whatever container you are using). This will respond to all
events within itself of that type.

Sending custom events is a bit more complicated. You'll need to define
the event delegate and args somewhere common so everyone is talking the
"same language".

SureshGubba wrote:
> Hi ,
>
> My Requirement is to fire events for controls which are in Xaml files.
> There events are to be wired to a precompiled dll which has the events
> ..


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
type not defined when wiring events in xaml Westy Avalon 1 01-23-2008 06:32 PM
COM events? Duncan Smith PowerShell 0 07-17-2007 09:20 AM
Wmi events A. Petitjean PowerShell 1 12-16-2006 12:11 PM
Events Fil PowerShell 3 11-23-2006 08:28 AM
Events, events Greg Borota PowerShell 2 07-01-2006 05:38 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50