Yet another blog about WPF, Surface, SL, MVVM, NUI.... - .NET 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 ! 2021-06-10T22:58:33+02:00 Jonathan ANTOINE urn:md5:627146f22bec1346990949372a159bfa Dotclear MANGO live tile: use a picture in the IsolatedStorage as a background for your tile urn:md5:1ba25c47ca659e570c8e3640f409b2f7 2011-08-03T14:25:00+02:00 2011-08-04T16:51:35+02:00 JonathanANTOINE@falsemail.com .NET <p>One on the nice feature coming with WP7's mango is "live tiles". You can create tiles directly from your application and update them from a background agent. Here is the sample which creates a "secondary tile" for your application: //This is a .Net class named StandardTileData var theTile= new StandardTileData { Title = "Secondary... <a href="http://blog.lexique-du-net.com/index.php?post/2011/08/03/MANGO-live-tile%3A-use-a-picture-in-the-IsolatedStorage-as-a-background-for-your-tile"><em>Read</em> MANGO live tile: use a picture in the IsolatedStorage as a background for your tile</a></p> http://blog.lexique-du-net.com/index.php?post/2011/08/03/MANGO-live-tile%3A-use-a-picture-in-the-IsolatedStorage-as-a-background-for-your-tile#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/77 [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 VS Tip : how to locate the active document in the solution explorer using a shortcut urn:md5:8528a0336d20cda80f60db7cdd7f5ce3 2010-11-04T12:39:00+01:00 2010-11-04T13:44:05+01:00 JonathanANTOINE@falsemail.com .NET examplehow tohow-totipstrickVisual Studio <p>When you have multiple projects in your solution, you often want to locate the active document in the solution explorer. There is a great option in Visual Studio which can do it for you all the time : “View.TrackActivityInSolutionExplorer”.   But if you do not want (as me) to turn it on all the time, there is no specific option or shortcut. So I... <a href="http://blog.lexique-du-net.com/index.php?post/2010/11/04/VS-Tip-%3A-how-to-locate-the-active-document-in-the-solution-explorer-using-a-shortcut"><em>Read</em> VS Tip : how to locate the active document in the solution explorer using a shortcut</a></p> http://blog.lexique-du-net.com/index.php?post/2010/11/04/VS-Tip-%3A-how-to-locate-the-active-document-in-the-solution-explorer-using-a-shortcut#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/65 Simple properties Mapper by reflection : stop copying manually each property of your objects ! urn:md5:c953a7caee3d6372fc5d0b3b3150e49b 2010-04-08T23:14:00+02:00 2010-04-09T01:32:10+02:00 JonathanANTOINE@falsemail.com .NET demoexamplehow tohow-totipstrickWCFWindows Presentation FoundationWPF <p>There is time when you have to copy each property of an object to one another. This is called mapping and it's very fastidious to do it by hand. In this post we'll see how to create a method extension which do it for you in one line of code ! When can it be useful Here is a non exhaustive list of usage you can find to this snippet: You want... <a href="http://blog.lexique-du-net.com/index.php?post/2010/04/08/Simple-properties-Mapper-by-reflection"><em>Read</em> Simple properties Mapper by reflection : stop copying manually each property of your objects !</a></p> http://blog.lexique-du-net.com/index.php?post/2010/04/08/Simple-properties-Mapper-by-reflection#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/48 Sync framework - choose your primary keys type carefully urn:md5:f03061bd8b71e7fe141447d38e94fd42 2010-03-05T00:44:00+01:00 2010-03-05T02:49:01+01:00 JonathanANTOINE@falsemail.com .NET how tohow-toSync Frameworktipstrick <p>Do you know the Sync Framework ? This is an amazing framework that enables roaming, sharing of data, and taking data offline ! One usage You can imagine is to sync some local clients databases with a big distant one. Each client taking its data with him and each client was abble to edit/create/delete data. The scenarii where the problem... <a href="http://blog.lexique-du-net.com/index.php?post/2010/03/05/Sync-framework-choose-your-primary-keys-type-carefully"><em>Read</em> Sync framework - choose your primary keys type carefully</a></p> http://blog.lexique-du-net.com/index.php?post/2010/03/05/Sync-framework-choose-your-primary-keys-type-carefully#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/41 Serialize DependencyObject : it's easy ! urn:md5:085b7a76ed982ac0066c2e0a72e0937f 2010-03-01T01:37:00+01:00 2010-03-01T01:37:00+01:00 JonathanANTOINE@falsemail.com .NET <p>You often read on the web that the DependencyObjects are not marked as serializable and that this is a major drawback of them... But there is a easy way to perform a serialization of these object : use XAMLWriter and XAMLReader : public class MyDependencyObject : DependencyObject { public static readonly DependencyProperty... <a href="http://blog.lexique-du-net.com/index.php?post/2010/02/25/Serialize-DependencyObject-it-s-easy"><em>Read</em> Serialize DependencyObject : it's easy !</a></p> http://blog.lexique-du-net.com/index.php?post/2010/02/25/Serialize-DependencyObject-it-s-easy#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/35