Yet another blog about WPF, Surface, SL, MVVM, NUI.... - Tag - OnPropertyChanged - 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 Execute a command on a specified control when clicking on a button - JonathanANTOINE@falsemail.com http://blog.lexique-du-net.com/index.php?post/2010/06/16/Execute-a-command-on-a-specified-control-when-clicking-on-a-button#c3141 urn:md5:737067a8e99048e225e592dc519e84bc Fri, 06 Apr 2012 09:01:17 +0200 JonathanANTOINE@falsemail.com <p>You have to use the code in the&nbsp;<span style="background-color: rgb(238, 238, 238); font-family: monospace; line-height: 15px; text-align: left; ">ReceiveWeakEvent to do this <img src="themes/default/smilies/smile.png" alt=":)" class="smiley" /></span></p> Execute a command on a specified control when clicking on a button - Jeremy McLain http://blog.lexique-du-net.com/index.php?post/2010/06/16/Execute-a-command-on-a-specified-control-when-clicking-on-a-button#c3140 urn:md5:cf06e8b5892980812265fe5761445744 Thu, 05 Apr 2012 23:12:27 +0200 Jeremy McLain <p>How would you do this portion from code behind?</p> <pre> &lt;Button Content="Delete selected" tools:ExecuteCommandOnControl.RoutedCommand="{x:Static igDP:DataPresenterCommands.DeleteSelectedDataRecords}" tools:ExecuteCommandOnControl.Target="{Binding ElementName=dataGrid}" /&gt;</pre> 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] Execute a command on a specified control when clicking on a button - iAwaaz-News-by-People http://blog.lexique-du-net.com/index.php?post/2010/06/16/Execute-a-command-on-a-specified-control-when-clicking-on-a-button#c2211 urn:md5:53a534f71e0da8737f4549154b97afb4 Wed, 16 Jun 2010 15:39:19 +0200 iAwaaz-News-by-People <p><a href="http://www.iawaaz.com/Execute-a-command-on-a-specified-control-when-clicking-on-a-button">Execute a command on a specified control when clicking on a</a></p> <!-- TB --> <p>Thank you for submitting this cool story - Trackback from iAwaaz-News-by-People...</p> [ping] Execute a command on a specified control when clicking on a button - DotNetKicks.com http://blog.lexique-du-net.com/index.php?post/2010/06/16/Execute-a-command-on-a-specified-control-when-clicking-on-a-button#c2210 urn:md5:25d35bd4a8033e3623cf757d68b9cc76 Wed, 16 Jun 2010 15:36:31 +0200 DotNetKicks.com <p><a href="http://www.dotnetkicks.com/wpf/Execute_a_command_on_a_specified_control_when_clicking_on_a_button">Execute a command on a specified control when clicking on a</a></p> <!-- TB --> <p>You've been kicked (a good thing) - Trackback from DotNetKicks.com...</p> [ping] Execute a command on a specified control when clicking on a button - DotNetShoutout http://blog.lexique-du-net.com/index.php?post/2010/06/16/Execute-a-command-on-a-specified-control-when-clicking-on-a-button#c2209 urn:md5:ee77c82e5ecdffbbff9a3392bcf840c7 Wed, 16 Jun 2010 15:34:51 +0200 DotNetShoutout <p><a href="http://dotnetshoutout.com/Execute-a-command-on-a-specified-control-when-clicking-on-a-button">Execute a command on a specified control when clicking on a</a></p> <!-- TB --> <p>Thank you for submitting this cool story - Trackback from DotNetShoutout...</p> [ping] Binding on a Property which is not a DependencyProperty - iAwaaz-News-by-People http://blog.lexique-du-net.com/index.php?post/2010/03/31/Binding-on-a-Property-which-is-not-a-DependencyProperty#c1427 urn:md5:63cea8ec52cb1eb3b4c4c31de97a31d9 Mon, 05 Apr 2010 22:44:52 +0200 iAwaaz-News-by-People <p><a href="http://www.iawaaz.com/Binding-on-a-Property-which-is-not-a-DependencyProperty">Binding on a Property which is not a DependencyProperty</a></p> <!-- TB --> <p>Thank you for submitting this cool story - Trackback from iAwaaz-News-by-People...</p> [ping] Binding on a Property which is not a DependencyProperty - DotNetKicks.com http://blog.lexique-du-net.com/index.php?post/2010/03/31/Binding-on-a-Property-which-is-not-a-DependencyProperty#c1421 urn:md5:bc74f4a18f898aaf0e02dd76616efff2 Mon, 05 Apr 2010 14:51:37 +0200 DotNetKicks.com <p><a href="http://www.dotnetkicks.com/wpf/Binding_on_a_Property_which_is_not_a_DependencyProperty">Binding on a Property which is not a DependencyProperty</a></p> <!-- TB --> <p>You've been kicked (a good thing) - Trackback from DotNetKicks.com...</p> [ping] Binding on a Property which is not a DependencyProperty - DotNetShoutout http://blog.lexique-du-net.com/index.php?post/2010/03/31/Binding-on-a-Property-which-is-not-a-DependencyProperty#c1420 urn:md5:ee301926374e38045111cffd35ccdb40 Mon, 05 Apr 2010 14:50:03 +0200 DotNetShoutout <p><a href="http://dotnetshoutout.com/Binding-on-a-Property-which-is-not-a-DependencyProperty">Binding on a Property which is not a DependencyProperty</a></p> <!-- TB --> <p>Thank you for submitting this cool story - Trackback from DotNetShoutout...</p> [ping] DependencyProperties or INotifyPropertyChanged ? - DotNetKicks.com http://blog.lexique-du-net.com/index.php?post/2010/02/24/DependencyProperties-or-INotifyPropertyChanged#c1291 urn:md5:30439c578791aad989f4db113b6769cf Mon, 01 Mar 2010 12:43:21 +0100 DotNetKicks.com <p><a href="http://www.dotnetkicks.com/wpf/DependencyProperties_or_INotifyPropertyChanged">DependencyProperties or INotifyPropertyChanged ?</a></p> <!-- TB --> <p>You've been kicked (a good thing) - Trackback from DotNetKicks.com...</p> [ping] DependencyProperties or INotifyPropertyChanged ? - DotNetShoutout http://blog.lexique-du-net.com/index.php?post/2010/02/24/DependencyProperties-or-INotifyPropertyChanged#c1290 urn:md5:81392ba0ce19df6471ecb912aed890fc Mon, 01 Mar 2010 12:42:09 +0100 DotNetShoutout <p><a href="http://dotnetshoutout.com/DependencyProperties-or-INotifyPropertyChanged-">DependencyProperties or INotifyPropertyChanged ?</a></p> <!-- TB --> <p>Thank you for submitting this cool story - Trackback from DotNetShoutout...</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.#c1289 urn:md5:6ba1873a9d8ccf56d2993f2d31ff2009 Sat, 27 Feb 2010 23:18:39 +0100 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.#c1287" rel="nofollow">Yoann. B</a> :Merci, je vais regarder ça et cela sera peut être le sujet d'un prochain post ! (thx, I'll take a look and maybe write a post on it)</p> MVVM - Creating ViewModel : wrap your business object (solution 1 of n). - Yoann. B 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.#c1287 urn:md5:97b1f76b8ef80ae4bde9178d9a55f5e2 Sat, 27 Feb 2010 19:40:18 +0100 Yoann. B <p>Great Article.</p> <p>Another solution is to use AutoMapper to map Business Models to View Models.</p> <p>Take a look here : <a href="http://automapper.codeplex.com" title="http://automapper.codeplex.com" rel="nofollow">http://automapper.codeplex.com</a></p> [ping] MVVM - Creating ViewModel : wrap your business object (solution 1 of n). - DotNetShoutout 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.#c1279 urn:md5:0f728240081b9ce97bca4b9546a9b2da Wed, 24 Feb 2010 16:07:39 +0100 DotNetShoutout <p><a href="http://dotnetshoutout.com/MVVM-Creating-ViewModel-wrap-your-business-object-solution-1-of-n">MVVM - Creating ViewModel : wrap your business object</a></p> <!-- TB --> <p>Thank you for submitting this cool story - Trackback from DotNetShoutout...</p> [ping] MVVM - Creating ViewModel : wrap your business object (solution 1 of n). - DotNetKicks.com 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.#c1278 urn:md5:79009a1d52d6c609ec0d1d387718a7b5 Wed, 24 Feb 2010 16:05:42 +0100 DotNetKicks.com <p><a href="http://www.dotnetkicks.com/wpf/MVVM_Creating_ViewModel_wrap_your_business_object">MVVM - Creating ViewModel : wrap your business object</a></p> <!-- TB --> <p>You've been kicked (a good thing) - Trackback from DotNetKicks.com...</p> Use dataBinding and DependencyProperty with a non-WPF or extern object - Jonathan ANTOINE http://blog.lexique-du-net.com/index.php?post/2009/04/10/Use-dataBinding-and-DependencyProperty-with-a-non-WPF-or-extern-object#c180 urn:md5:b493eba83c7b0cc7cf53f3675704f3d5 Thu, 21 May 2009 18:13:58 +0200 Jonathan ANTOINE <p>@Inv : Strange, it works fine for me, but happy to help you <img src="themes/default/smilies/smile.png" alt=":-)" class="smiley" /> !</p> Use dataBinding and DependencyProperty with a non-WPF or extern object - Inv http://blog.lexique-du-net.com/index.php?post/2009/04/10/Use-dataBinding-and-DependencyProperty-with-a-non-WPF-or-extern-object#c179 urn:md5:5ad64b60cba69443cebf3f8f4d1960aa Thu, 21 May 2009 17:48:21 +0200 Inv <p>I used similar solution. The problem is that when you call _ogre.Camera.SetPosition from code, the CameraPosition is not updated. The other direction works thanks to the OnPropertyChanged handler.</p> [ping] Use dataBinding and DependencyProperty with a non-WPF or extern object - DotNetKicks.com http://blog.lexique-du-net.com/index.php?post/2009/04/10/Use-dataBinding-and-DependencyProperty-with-a-non-WPF-or-extern-object#c112 urn:md5:1fdc4b2dccbb9c40c9dbc9fe2ed532a2 Mon, 20 Apr 2009 10:13:43 +0200 DotNetKicks.com <p><a href="http://www.dotnetkicks.com/wpf/Use_dataBinding_and_DependencyProperty_with_a_non_WPF_or_extern_object">Use dataBinding and DependencyProperty with a non-WPF or</a></p> <!-- TB --> <p>You've been kicked (a good thing) - Trackback from DotNetKicks.com...</p>