home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Submit: Code Patches
Seek by clicking on video progress bar
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="osre" data-source="post: 1117010" data-attributes="member: 150866"><p>I have a basic prototype of the event management done.</p><p>Registering events, tunneling bubbeling, class handlers, ... all done.</p><p>Now I'm working on the XAML integration.</p><p>There is already a basic framework for handling events. There is the method</p><p>"static Delegate parser_GetEventHandler(IParserContext context, MethodInfo signature, string value)" in XamlLodaer.cs:101.</p><p>The problem is, that there is no code behind file, like in WPF.</p><p>Where should this method look for the event handler ?</p><p>I thought about an markup extension like "{Command ...}", where you can bind it to the model like:</p><p>[CODE=XML]<Border MouseDown="{EventHandler Source={StaticResource Model},Path=MyMouseDownEventHandler}">...[/CODE]</p><p></p><p>[CODE=C#]public void MyMouseDownEventHandler(object source, MouseButtonEventArgs e)</p><p>{</p><p>...</p><p>}[/CODE]</p><p></p><p>Any other Idea?</p><p>Or to which class should an event be bound by default (instead of the code behind class as in WPF)?</p></blockquote><p></p>
[QUOTE="osre, post: 1117010, member: 150866"] I have a basic prototype of the event management done. Registering events, tunneling bubbeling, class handlers, ... all done. Now I'm working on the XAML integration. There is already a basic framework for handling events. There is the method "static Delegate parser_GetEventHandler(IParserContext context, MethodInfo signature, string value)" in XamlLodaer.cs:101. The problem is, that there is no code behind file, like in WPF. Where should this method look for the event handler ? I thought about an markup extension like "{Command ...}", where you can bind it to the model like: [CODE=XML]<Border MouseDown="{EventHandler Source={StaticResource Model},Path=MyMouseDownEventHandler}">...[/CODE] [CODE=C#]public void MyMouseDownEventHandler(object source, MouseButtonEventArgs e) { ... }[/CODE] Any other Idea? Or to which class should an event be bound by default (instead of the code behind class as in WPF)? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Submit: Code Patches
Seek by clicking on video progress bar
Contact us
RSS
Top
Bottom