Yet another blog about WPF, Surface, SL, MVVM, NUI.... - Tag - Design pattern - Comments http://blog.lexique-du-net.com/index.php? 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 ! en Mon, 26 Feb 2024 15:40:43 +0100 Jonathan ANTOINE, All rights reserved http://blogs.law.harvard.edu/tech/rss Dotclear MVVM : How to keep collections of ViewModel and Model in sync - Zar 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#c3476 urn:md5:58d665934014e91f44e18b766dfbb8a7 Mon, 11 Feb 2013 05:19:41 +0100 Zar <p>Nice Post, Thanks.</p> MVVM : How to keep collections of ViewModel and Model in sync - sanjuro 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#c3474 urn:md5:4d5dd04e6f35b8a705e726c267051e90 Mon, 29 Oct 2012 15:50:38 +0100 sanjuro <p>I agree with Nathan, Syncer should be implemented in .NET by default, but i would name it ProxyObservableCollection <img src="themes/default/smilies/smile.png" alt=":)" class="smiley" /></p> MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands) - online writing http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c3133 urn:md5:3d81c5145cf4ce910b906d5b44273b08 Fri, 16 Dec 2011 16:52:49 +0100 online writing <p>I am very interested in this sphere and reading this post I have known many new things, which I have not known before. Thanks for publishing this great article here.</p> MVVM : How to keep collections of ViewModel and Model in sync - David 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#c3127 urn:md5:04fb361ee7f4e82ae23c1ad4b5fc8348 Sat, 17 Sep 2011 18:37:08 +0200 David <p>Great post. Thanks!</p> MVVM - Creating ViewModel : wrap your business object (solution 1 of n). - Jonathan ANTOINE 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.#c3031 urn:md5:1c9bb8330d5b4affad0bd8ad3526c6fb Fri, 13 May 2011 10:28:54 +0200 Jonathan ANTOINE <p>@<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.#c3029" rel="nofollow">thinh</a>&nbsp;:Hello, why don't you put SelectedIndex="0" in the Listbox definition ? This will force the selection of the first item and resolve your problem <img src="themes/default/smilies/smile.png" alt=":-)" class="smiley" /></p> MVVM - Creating ViewModel : wrap your business object (solution 1 of n). - thinh 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.#c3029 urn:md5:4b75d9bebfcee855ade935ad5943f543 Fri, 13 May 2011 09:33:26 +0200 thinh <p>Hi,<br /> I read your post and I have a problem with this kind implementation.<br /> My problem is: I have a list which lists all customer in the left panel, and a detail customer on right side. Whenever I choose a customer in a list, its detail will be shown on the right. But when the form's loaded at the first time, no customer is chosen, so with kind, ViewModel wraps Model, we will a null SelectedCustomer, and we will get errors when we bind the Name to the View, but if the INotifyChanged is on Model, there's no this problem. Do you have any idea about this problem?</p> [ping] Binding to the selected items of a ListBox (or an another items controls) - iAwaaz-News-by-People http://blog.lexique-du-net.com/index.php?post/2010/06/13/Binding-to-the-selected-items-of-a-ListBox#c2240 urn:md5:634d927107e4bc0eea0c744c37abe63a Fri, 18 Jun 2010 06:00:21 +0200 iAwaaz-News-by-People <p><a href="http://www.iawaaz.com/Binding-to-the-selected-items-of-a-ListBox-or-an-another-items-controls">Binding to the selected items of a ListBox (or an another</a></p> <!-- TB --> <p>Thank you for submitting this cool story - Trackback from iAwaaz-News-by-People...</p> MVVM : How to keep collections of ViewModel and Model in sync - faxless payday loans 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#c2230 urn:md5:9e85e9e6e45f432b377da889a7743181 Thu, 17 Jun 2010 12:55:16 +0200 faxless payday loans <p>This is a superb post {%H1%}.<br /> But I was wondering how do I suscribe to the RSS feed?</p> [ping] Binding to the selected items of a ListBox (or an another items controls) - DotNetKicks.com http://blog.lexique-du-net.com/index.php?post/2010/06/13/Binding-to-the-selected-items-of-a-ListBox#c2180 urn:md5:65038388b1c746bc43ef42ae4fb76d00 Mon, 14 Jun 2010 15:53:27 +0200 DotNetKicks.com <p><a href="http://www.dotnetkicks.com/wpf/Binding_to_the_selected_items_of_a_ListBox_or_an_another_items_contro">Binding to the selected items of a ListBox (or an another</a></p> <!-- TB --> <p>You've been kicked (a good thing) - Trackback from DotNetKicks.com...</p> [ping] Binding to the selected items of a ListBox (or an another items controls) - DotNetShoutout http://blog.lexique-du-net.com/index.php?post/2010/06/13/Binding-to-the-selected-items-of-a-ListBox#c2179 urn:md5:79d304f169a68d87ae3cafced5aabd2d Mon, 14 Jun 2010 15:52:02 +0200 DotNetShoutout <p><a href="http://dotnetshoutout.com/Binding-to-the-selected-items-of-a-ListBox-or-an-another-items-controls">Binding to the selected items of a ListBox (or an another</a></p> <!-- TB --> <p>Thank you for submitting this cool story - Trackback from DotNetShoutout...</p> MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands) - Daniel http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1795 urn:md5:a6c0d103226f1dad2336b3f1f1e9f2b6 Sat, 22 May 2010 06:25:31 +0200 Daniel <p>Try Fluent Ribbon Control Suite (<a href="http://fluent.codeplex.com" title="http://fluent.codeplex.com" rel="nofollow">http://fluent.codeplex.com</a>). Fluent Ribbon is more MVVM-friendly, you can find MVVM sample there.</p> MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands) - aani http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1544 urn:md5:141e681e962246ef7ddf118db9eb838e Mon, 19 Apr 2010 08:01:01 +0200 aani <p>Could you please upload the demo project?</p> MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands) - hedi http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1399 urn:md5:761f97c914d46c9b01020f57b9102596 Sun, 28 Mar 2010 13:41:52 +0200 hedi <p>I'm developping an application which bases on PrismV2 and the designPattern MVVM.<br /> Thus I develop every module separately and I use a main interface to call them (Shell)<br /> My Shell contains OfficeRibbon<br /> I still have some problems to understand<br /> can you explain me how I have to use RibbonCommand?</p> MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands) - Jonathan ANTOINE http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1362 urn:md5:b3fcbf1a11239935aec58019794149c0 Thu, 25 Mar 2010 13:55:37 +0100 Jonathan ANTOINE <p>@<a href="http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1361" rel="nofollow">Emperor</a> :Thx, it works fine !</p> MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands) - Emperor http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1361 urn:md5:bbb4a6d16880451123ecbc3148c8da7e Thu, 25 Mar 2010 13:26:08 +0100 Emperor <p>@<a href="http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1360" rel="nofollow">Jonathan ANTOINE</a> : after you are finished with adding/removing/clearing Controls property call OnApplyTemplate() on RibbonGroup to update the visuals.</p> MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands) - Jonathan ANTOINE http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1360 urn:md5:d5afe5eca080ebf8534d7de7b6bd4996 Thu, 25 Mar 2010 11:55:46 +0100 Jonathan ANTOINE <p>@<a href="http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1359" rel="nofollow">Emperor</a> :The group visual does not update when you do this even if the list contains the items... <img src="themes/default/smilies/sad.png" alt=":-(" class="smiley" /></p> MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands) - Emperor http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1359 urn:md5:239d1c4e9c2f0ebacc95e97da58cf305 Thu, 25 Mar 2010 11:42:29 +0100 Emperor <p>Gigi070: Use Controls.Add() to dynamically add new buttons.</p> MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands) - Gigi070 http://blog.lexique-du-net.com/index.php?post/2010/02/28/MVVM-How-to-integrate-the-Office-Ribbon#c1351 urn:md5:531a58d9a189e9ad07f827679e0c9ecb Wed, 24 Mar 2010 18:48:13 +0100 Gigi070 <p>Thanks for your solution.</p> <p>Do you have a solution to dynamically load RibbonButtons of a RibbonGroup?</p> <p>I'm trying to do this ... but the Controls property of the RibbonGroup doesn't support a setter, just a getter.</p> <p>So even if you provide a method to hide a non dependency property or command, it's difficult to use it on a read-only property ....</p> <p>I'm hopping that you have a solution for me and I'm doing a big mistake in my post :D</p> <p>Guillaume.</p> MVVM - Creating ViewModel : create dynamic proxies with Castle (solution 3 of n) - Christophe Goetz http://blog.lexique-du-net.com/index.php?post/2010/03/11/MVVM-Creating-ViewModel-%3A-create-dynamic-proxies-with-Castle#c1339 urn:md5:9f23d004a21e6162e7b6ea6731b4f192 Mon, 15 Mar 2010 11:55:15 +0100 Christophe Goetz <p>Thank you for the idea!!<br /> After, you can easily use Josh Smith's idea of property observer to keep the View Model updated... =&gt; See <a href="http://joshsmithonwpf.wordpress.com/2009/07/11/one-way-to-avoid-messy-propertychanged-event-handling/" title="http://joshsmithonwpf.wordpress.com/2009/07/11/one-way-to-avoid-messy-propertychanged-event-handling/" rel="nofollow">http://joshsmithonwpf.wordpress.com...</a></p> <p>For silverlight you'll have to provide an implementation of System.Windows.PropertyChangedEventManager to have it work... =&gt; See <a href="http://peteohanlon.wordpress.com/2009/07/19/its-not-that-hard-to-add-the-missing-bits-to-silverlight/" title="http://peteohanlon.wordpress.com/2009/07/19/its-not-that-hard-to-add-the-missing-bits-to-silverlight/" rel="nofollow">http://peteohanlon.wordpress.com/20...</a></p> MVVM - Creating ViewModel : use XAML Power Toys (solution 2 of n). - Tof http://blog.lexique-du-net.com/index.php?post/2010/02/27/MVVM-Creating-ViewModel-%3A-use-a-tool-%28solution-2-of-n%29#c1338 urn:md5:d9f5a63f97ef9298b3e5f49c2440faeb Mon, 15 Mar 2010 11:22:45 +0100 Tof <p>Thanks for the tip.<br /> I am using MVVM light toolkit from Laurent Bugnion, and it is also very helpfull. Not as automated as the XAML power toys, but it has a nice collection off code snippets that I adapted a little bit to fit to my needs. You have to add one property at the time, but I find it really helpfull.</p>