Yet another blog about WPF, Surface, SL, MVVM, NUI.... - Tag - custom In this blog we talk about WPF, Natural User Interface(NUI), Microsoft Surface, WIndows 7, Multitouch, Touchless, JavaFX, MVVM, patterns, tips, tricks .... and a lot of other things ! 2024-02-26T15:40:43+01:00 Jonathan ANTOINE urn:md5:627146f22bec1346990949372a159bfa Dotclear [UPDATED] How to call the method from the base of the base of the current class ? (base.base.MyMethod) urn:md5:d900bf7d396d3bc1a150d6e19676cfd9 2011-05-11T23:56:00+02:00 2011-08-10T14:46:30+02:00 JonathanANTOINE@falsemail.com .NET controlscustomDependencyPropertyhow tohow-totipstrick <p>Today I encountered a tricky need in some custom control. It was inheriting from the TabControl but I didn’t want all its feature. Especially I didn’t want it to update the SelectedContent dependency property because it was keeping a strong reference to a ViewModel and keeping it away from the garbage collector.</p> <p>  The problem is that the TabControl do this in an event handler of the ItemContainerGenerator’s StatusChanged event. This subscription is made in the OnInitialized method. This one is marked as protected and virtual so I could override it to do nothing but if had do so I would have loose all the work done in the base class of the TabControl which... <a href="http://blog.lexique-du-net.com/index.php?post/2011/05/11/How-to-call-the-method-from-the-base-of-the-base-of-the-current-class-%28base.base.MyMethod%29"><em>Read</em> [UPDATED] How to call the method from the base of the base of the current class ? (base.base.MyMethod)</a></p> http://blog.lexique-du-net.com/index.php?post/2011/05/11/How-to-call-the-method-from-the-base-of-the-base-of-the-current-class-%28base.base.MyMethod%29#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/75 How to create an hand writing to text control (ink recognizer) urn:md5:f9aea256e97acb32c48044cd92d26be4 2010-10-25T00:01:00+02:00 2011-03-24T21:57:03+01:00 JonathanANTOINE@falsemail.com MultiTouch apicontrolscustomdemohow tohow-tomanipulationmathmultitouchNatural User InterfacesampleTemplatetesttestingteststipstrickWindows Presentation FoundationWPFXAML <p>When building a (multi)touch application you may need one nice feature : translate hand-written text to real words. This open a whole new world full of possibilities like starting some actions when keywords are recognized or simply allow the users to write some text for later use.&nbsp;<br /><br /><strong>In this post we'll see all the step to create an hand writing to text control and how to tune it.</strong></p> <p>Specifications The HandWritingToText controls translate the text written with it's hand by the user into "computer text". The final purpose is to triggers some actions when a specific keyword is recognized and it'll so be able to recognize only one word at a time and not a whole text.   The recognized text will be published via an event and... <a href="http://blog.lexique-du-net.com/index.php?post/2010/09/19/How-to-create-an-hand-writing-to-text-control-%28ink-recognizer%29"><em>Read</em> How to create an hand writing to text control (ink recognizer)</a></p> http://blog.lexique-du-net.com/index.php?post/2010/09/19/How-to-create-an-hand-writing-to-text-control-%28ink-recognizer%29#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/55 How to create your own control library (how-to + tips) urn:md5:9ed22011e4c8dd030431d70034af0342 2010-10-03T23:27:00+02:00 2010-10-04T17:42:57+02:00 JonathanANTOINE@falsemail.com WPF BindingContentControlcontrolscustomdataBindingDataTemplateDependencyPropertyeventsexamplehow tohow-toLibrarysampleTemplatetipstrickWindows Presentation FoundationWPFXAML <p>Reusability and factorizing are maybe the most commons things you want and use when you are developing applications. In WPF it often means creating controls library (i don’t mean UserControl) that will be easy to use in multiple applications. In this post we'll see all the step to create a control library useable in differents projects. The... <a href="http://blog.lexique-du-net.com/index.php?post/2010/10/04/How-to-create-your-own-control-library"><em>Read</em> How to create your own control library (how-to + tips)</a></p> http://blog.lexique-du-net.com/index.php?post/2010/10/04/How-to-create-your-own-control-library#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/59 UserControl/Control : how to get a reference to an element of the template urn:md5:31729ab6c8a50b35686f1411e6c53daa 2010-09-14T22:42:00+02:00 2010-09-20T17:40:23+02:00 JonathanANTOINE@falsemail.com WPF ContentControlcontrolscustomDataTemplateexceptionhow tohow-toTemplateWindows Presentation FoundationWPFXAML <p>When you want to create your own custom control you have two choices : create an UserControl or inherit from one of the "Control's classes" (ContentControl, ItemsControls or Control itself). When doing so, you'll surely need to access to the visual parts of your template from the code to add to it a nice behavior. In this post, we'll discover how... <a href="http://blog.lexique-du-net.com/index.php?post/2010/09/14/UserControl/Control-how-to-get-a-reference-to-an-element-of-the-template"><em>Read</em> UserControl/Control : how to get a reference to an element of the template</a></p> http://blog.lexique-du-net.com/index.php?post/2010/09/14/UserControl/Control-how-to-get-a-reference-to-an-element-of-the-template#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/54 Binding on a Property which is not a DependencyProperty urn:md5:d2eadacd7db37af377f1b69c8b528bb1 2010-04-05T09:03:00+02:00 2010-04-07T20:51:22+02:00 JonathanANTOINE@falsemail.com WPF AttachedPropertycustomdataBindingdemoexamplehow tohow-toOnPropertyChangedpatternpatternstipstrickWPF <p>A lot of controls expose properties which are not DependencyProperties and then you can’t put a binding on it. On some other cases, you only have a getter as accessor and you can’t put a binding on it too… This is for example the case for the ribbon’s group of the office ribbon or the converter’s parameter. If you ever tried to do so, you... <a href="http://blog.lexique-du-net.com/index.php?post/2010/03/31/Binding-on-a-Property-which-is-not-a-DependencyProperty"><em>Read</em> Binding on a Property which is not a DependencyProperty</a></p> http://blog.lexique-du-net.com/index.php?post/2010/03/31/Binding-on-a-Property-which-is-not-a-DependencyProperty#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/47 CREATE, LAUNCH and CONTROL a WPF animation FROM CODE urn:md5:1813871b1ab6d37b27fb1c000f6969c2 2009-07-07T14:30:00+02:00 2010-02-18T20:41:55+01:00 JonathanANTOINE@falsemail.com WPF animationcustomDependencyObjectDependencyPropertyhow-toWPF <p>The problem Sometimes you need to animate your specific object and for this purpose there is the WPF animation. Here are the prerequireds : The property you want to animate must be a DependencyProperty, The property must so be a part of a DependencyObject, Your object must implement IAnimatable to be able to launch the animation. The... <a href="http://blog.lexique-du-net.com/index.php?post/2009/07/07/CREATE%2C-LAUNCH-and-CONTROL-a-WPF-animation-FROM-CODE"><em>Read</em> CREATE, LAUNCH and CONTROL a WPF animation FROM CODE</a></p> http://blog.lexique-du-net.com/index.php?post/2009/07/07/CREATE%2C-LAUNCH-and-CONTROL-a-WPF-animation-FROM-CODE#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/24 Create your VideoPlayer with JavaFX, part one. urn:md5:80c4c1e8b3230a095826f6324353e5c2 2008-12-09T19:18:00+01:00 2009-04-02T00:00:08+02:00 JonathanANTOINE@falsemail.com JavaFX customcustomNodeJavaFXmediaMediaComponentmediaPlayermediaViewvideo <p>I noticed in this post that the mediaComponent pointed out in the JavaFX demos was not still available and that we will so make our own... Lets start ! What will we do in our first part ? : Create our custom node MyMediaComponent Add the video in our component Enjoy ourselfs! Create our custom node: MyMediaComponent The first thing... <a href="http://blog.lexique-du-net.com/index.php?post/2008/12/09/Create-your-VideoPlayer-with-JavaFX-part-one"><em>Read</em> Create your VideoPlayer with JavaFX, part one.</a></p> http://blog.lexique-du-net.com/index.php?post/2008/12/09/Create-your-VideoPlayer-with-JavaFX-part-one#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/5