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: 1117046" data-attributes="member: 150866"><p>I looked at it, and find it kind a strange.</p><p>If I understand it correctly, ICommandStencil is more or less a wrapped delegate.</p><p>The UserInputCapture forwards some event like actions (like OnMouseMove) to this stencil if, where it has a specific property for, which is setable from XAML.</p><p>My approach would not need any special programming.</p><p>You simply define an event handler as usual, and assign it in XAML like a property. But since there is no code behind class, I would have done it like an Binding (or like the CommandExtension).</p><p>To do so I would create the EventHandlerExtension, which would be a subclass of CommandBaseMarkupExtension.</p><p>I'll implement it and post a patch, you can then decide if you like it or not.[DOUBLEPOST=1419877757][/DOUBLEPOST]To be honest, my EventHandlerExtension can be replaced by CommandStencilExtension.</p></blockquote><p></p>
[QUOTE="osre, post: 1117046, member: 150866"] I looked at it, and find it kind a strange. If I understand it correctly, ICommandStencil is more or less a wrapped delegate. The UserInputCapture forwards some event like actions (like OnMouseMove) to this stencil if, where it has a specific property for, which is setable from XAML. My approach would not need any special programming. You simply define an event handler as usual, and assign it in XAML like a property. But since there is no code behind class, I would have done it like an Binding (or like the CommandExtension). To do so I would create the EventHandlerExtension, which would be a subclass of CommandBaseMarkupExtension. I'll implement it and post a patch, you can then decide if you like it or not.[DOUBLEPOST=1419877757][/DOUBLEPOST]To be honest, my EventHandlerExtension can be replaced by CommandStencilExtension. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Submit: Code Patches
Seek by clicking on video progress bar
Contact us
RSS
Top
Bottom