Yet another blog about WPF, Surface, SL, MVVM, NUI.... - Tag - M-V-VM 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 to the selected items of a ListBox (or an another items controls) urn:md5:04ab1651e48f6d69d4b3c1afa893f976 2010-06-13T12:03:00+02:00 2010-06-14T15:53:51+02:00 JonathanANTOINE@falsemail.com WPF AttachedPropertyBindingdataBindingDependencyObjectDependencyPropertyDesign patterneventshow tohow-toListBoxM-V-VMMVVMpatternpatternssampleSelectedItemstipstrickWindows Presentation FoundationWPFXAML <p>A problem you often meet when using MVVM is to get the selected items of an items control, especially Listbox. You can easily bind the selected item or the current items but when multi selection comes in the way, it becomes harder because the SelectedItems (with an 's' property is not available to binding). In this article we will discover an... <a href="http://blog.lexique-du-net.com/index.php?post/2010/06/13/Binding-to-the-selected-items-of-a-ListBox"><em>Read</em> Binding to the selected items of a ListBox (or an another items controls)</a></p> http://blog.lexique-du-net.com/index.php?post/2010/06/13/Binding-to-the-selected-items-of-a-ListBox#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/51 MVVM - Creating ViewModel : create dynamic proxies with Castle (solution 3 of n) urn:md5:d3a023b93c4a2ef515d002c54361428f 2010-03-11T23:09:00+01:00 2010-03-12T12:59:13+01:00 JonathanANTOINE@falsemail.com WPF CastleDesign patternDynamic proxiesDynamic proxyexampleM-V-VMMVVMpatternpatternsWPF <p>Here is the next episode of our serie MVVM - Creating ViewModel. A list of all the article about creating a ViewModel is here.. Today we are going to see how to create dynamic proxies for our business objects. What are Dynamic proxies ? Readers in a hurry can directly jump to the third part "An implementation". Proxies are a Desing Pattern... <a href="http://blog.lexique-du-net.com/index.php?post/2010/03/11/MVVM-Creating-ViewModel-%3A-create-dynamic-proxies-with-Castle"><em>Read</em> MVVM - Creating ViewModel : create dynamic proxies with Castle (solution 3 of n)</a></p> http://blog.lexique-du-net.com/index.php?post/2010/03/11/MVVM-Creating-ViewModel-%3A-create-dynamic-proxies-with-Castle#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/43 MVVM - Creating ViewModel tutorial urn:md5:175290551e10776eb81123ddd0100dfa 2010-03-11T11:58:00+01:00 2010-03-13T02:27:03+01:00 JonathanANTOINE@falsemail.com WPF Design patternexamplehow tohow-toM-V-VMMVVMpatternpatternsWPF <p>MVVM - Creating ViewModel is a serie of blogposts that talk in details about various ways to create a ViewModel to use it with the MVVM pattern. You often do not create the business object used by the application which are created by another team and that these objects are not ready for binding. So you must find a solution to create an object... <a href="http://blog.lexique-du-net.com/index.php?post/2010/03/11/MVVM-Creating-ViewModel-tutorial"><em>Read</em> MVVM - Creating ViewModel tutorial</a></p> http://blog.lexique-du-net.com/index.php?post/2010/03/11/MVVM-Creating-ViewModel-tutorial#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/44 MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands) urn:md5:b21944e275d0dc07e8f8d58a593fcab3 2010-03-04T20:01:00+01:00 2010-03-04T20:29:25+01:00 JonathanANTOINE@falsemail.com WPF DependencyObjectDependencyPropertyDesign patternhow tohow-toM-V-VMMVVMpatternpatternstipstrickWPF <p>Synopsis The ribbon controls - introduced by office 2007 -are available for free on the Microsoft Office web site (French users should set the language to "english" to access the ressources). They can leverage the user's experience of your application and are pretty simple to use. When I wanted to add them into one of my application I realized... <a href="http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon"><em>Read</em> MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands)</a></p> http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/38 MVVM : How to keep collections of ViewModel and Model in sync urn:md5:2b68064f98ad729fd6b43197bb31a7b1 2010-03-02T12:31:00+01:00 2010-03-04T19:52:34+01:00 JonathanANTOINE@falsemail.com WPF Design patternhow tohow-toM-V-VMMVVMpatternpatternsWPF <p>As pointed out in this post collections of the ViewModels and the models are not sync. This is because we do not access directly to the model but to an ObservableCollection(in the viewModel) which contains the object of the original collection(in the model) and that these two collections are not the same... As pointed out in the comments on... <a href="http://blog.lexique-du-net.com/index.php?post/2010/03/02/M-V-VM-How-to-keep-collections-of-ViewModel-and-Model-in-sync"><em>Read</em> MVVM : How to keep collections of ViewModel and Model in sync</a></p> http://blog.lexique-du-net.com/index.php?post/2010/03/02/M-V-VM-How-to-keep-collections-of-ViewModel-and-Model-in-sync#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/39 MVVM - Creating ViewModel : use XAML Power Toys (solution 2 of n). urn:md5:a14411042bf5e56da23a633a5c07ca03 2010-03-02T03:24:00+01:00 2010-03-11T13:06:19+01:00 JonathanANTOINE@falsemail.com WPF Design patternM-V-VMMVVMWPFXAML <p>Here is the next episode of our serie MVVM - Creating ViewModel. A list of all the article about creating a ViewModel is here.. Today we are going to discover a tool which can help us to create the ViewModel. XAML Power Toys : add-in for VisualStudio XAML Power Toys is an extremly useful add-in(build by Karl SHIFFLET) for VisualStudio that... <a href="http://blog.lexique-du-net.com/index.php?post/2010/02/27/MVVM-Creating-ViewModel-%3A-use-a-tool-%28solution-2-of-n%29"><em>Read</em> MVVM - Creating ViewModel : use XAML Power Toys (solution 2 of n).</a></p> http://blog.lexique-du-net.com/index.php?post/2010/02/27/MVVM-Creating-ViewModel-%3A-use-a-tool-%28solution-2-of-n%29#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/37 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 AttachedProperties to add behaviors to the components (Ramora pattern) urn:md5:8d01b1ed9b0f1ce60ade839ff9d84a1d 2010-02-19T17:47:00+01:00 2010-03-06T16:15:43+01:00 JonathanANTOINE@falsemail.com WPF AttachedPropertydataBindingDependencyPropertyDesign patternhow tohow-toM-V-VMpatternsWPFXAML <p>The problem In WPF you expect your components/controls to behave exactly as you want to.... but this not always the case. For example : why does this combobox not execute a command when I change the selection or more often why this textbox does not execute a command when I press the Enter (return) key ? This problem often occurs when you use... <a href="http://blog.lexique-du-net.com/index.php?post/2010/02/17/Use-AttachedProperties-to-add-behaviors-to-the-components"><em>Read</em> Use AttachedProperties to add behaviors to the components (Ramora pattern)</a></p> http://blog.lexique-du-net.com/index.php?post/2010/02/17/Use-AttachedProperties-to-add-behaviors-to-the-components#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/31