Yet another blog about WPF, Surface, SL, MVVM, NUI.... - Tag - OnPropertyChanged 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 Execute a command on a specified control when clicking on a button urn:md5:d120a96b6da17f34e9dcdd2044d853d9 2010-06-16T15:07:00+02:00 2010-06-16T15:39:39+02:00 JonathanANTOINE@falsemail.com WPF AttachedPropertyBindingdataBindingDependencyObjectDependencyPropertyeventsexamplehow tohow-toM-V-VMMouseEventMVVMOnPropertyChangedpatternpatternssampletipstrickWindows Presentation FoundationWPFXAML <p>Today another example of the powerful ramora pattern : execute a RoutedCommand on an Control when you click on a button outside of the aimed control scope. When is it useful ? : for example when you use the infragistics grid (xamdatagrid) and you want to execute the command which remove the selected row from a button outside of the grid. You... <a href="http://blog.lexique-du-net.com/index.php?post/2010/06/16/Execute-a-command-on-a-specified-control-when-clicking-on-a-button"><em>Read</em> Execute a command on a specified control when clicking on a button</a></p> http://blog.lexique-du-net.com/index.php?post/2010/06/16/Execute-a-command-on-a-specified-control-when-clicking-on-a-button#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/52 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 DependencyProperties or INotifyPropertyChanged ? urn:md5:441834c0aab7c5bc41e56298bff51219 2010-03-01T12:31:00+01:00 2010-03-10T17:05:14+01:00 JonathanANTOINE@falsemail.com WPF AttachedPropertydataBindingDependencyObjectDependencyPropertyeventsexamplehow toOnPropertyChangedtipstrickWPFXAML <p>When you want to make an object binding-aware you have two choices : implement INotifyPropertyChanged or create DependencyProperties. Which one is the best ? Let's try to answer this question ! How to implement INotifyPropertyChanged Declaring that your class is implementing INotifyPropertyChanged adds an PropertyChangedEventHandler that you... <a href="http://blog.lexique-du-net.com/index.php?post/2010/02/24/DependencyProperties-or-INotifyPropertyChanged"><em>Read</em> DependencyProperties or INotifyPropertyChanged ?</a></p> http://blog.lexique-du-net.com/index.php?post/2010/02/24/DependencyProperties-or-INotifyPropertyChanged#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/34 MVVM - Creating ViewModel : wrap your business object (solution 1 of n). urn:md5:945231c0df91ed375f7fa6147da1fa67 2010-02-24T12:06:00+01:00 2010-03-11T13:02:49+01:00 JonathanANTOINE@falsemail.com WPF Design patternM-V-VMMVVMOnPropertyChangedpatternWPF <p>Intro When you create WPF applications, you may (or you should !) use the M-V-VM pattern and so have to use/create ViewModel. The viewModel job is mainly to expose properties of your businessObjects to your views, ready for binding. To be ready for the binding the most used solution is to implement INotifyPropertyChanged and to fire events fo... <a href="http://blog.lexique-du-net.com/index.php?post/2010/02/24/MVVM-Creating-ViewModel-%3A-wrap-your-business-object-%28solution-1-of-n%29."><em>Read</em> MVVM - Creating ViewModel : wrap your business object (solution 1 of n).</a></p> http://blog.lexique-du-net.com/index.php?post/2010/02/24/MVVM-Creating-ViewModel-%3A-wrap-your-business-object-%28solution-1-of-n%29.#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/33 Use dataBinding and DependencyProperty with a non-WPF or extern object urn:md5:4bb9a70cce949cd330b75047bcc048de 2009-04-10T10:52:00+02:00 2010-02-18T20:42:47+01:00 JonathanANTOINE@falsemail.com WPF animationdataBindingDependencyObjectDependencyPropertyhow-toMogreOnPropertyChangedWPF <p>Today we are going to learn how we can uses the powerful data binding of WPF even on non-WPF objects. The problem: when to use this solution ? Sometimes you need to use the databinding with an object that you have not created and you can't use inheritance. For example I wanted to use a Mogre Camera and build some WPF animation with it and I... <a href="http://blog.lexique-du-net.com/index.php?post/2009/04/10/Use-dataBinding-and-DependencyProperty-with-a-non-WPF-or-extern-object"><em>Read</em> Use dataBinding and DependencyProperty with a non-WPF or extern object</a></p> http://blog.lexique-du-net.com/index.php?post/2009/04/10/Use-dataBinding-and-DependencyProperty-with-a-non-WPF-or-extern-object#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/20