Yet another blog about WPF, Surface, SL, MVVM, NUI.... - Tag - XAML 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 Amazing WPF Controls / JetPack Theme updated ! urn:md5:88ead68957a351bbe11ed3474c8ea2f3 2011-06-13T13:56:00+02:00 2011-06-13T14:10:39+02:00 JonathanANTOINE@falsemail.com WPF animationcontrolsnewsTemplateWPFXAML <p>Hello, I have updated my previously introduced control library on codeplex. I received a lot of comments because the jetPack theme was not working fine bacause of some animation. It is now fixed and I want to thank everyone for the feedback !__ Here are the list of the available updates: JetPack Theme is now building and working fine at... <a href="http://blog.lexique-du-net.com/index.php?post/2011/06/13/Amazing-WPF-Controls-/-JetPack-Theme-updated-%21"><em>Read</em> Amazing WPF Controls / JetPack Theme updated !</a></p> http://blog.lexique-du-net.com/index.php?post/2011/06/13/Amazing-WPF-Controls-/-JetPack-Theme-updated-%21#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/76 How to create an hand writing to text control (ink recognizer) urn:md5:f9aea256e97acb32c48044cd92d26be4 2010-10-25T00:01:00+02:00 2011-03-24T21:57:03+01:00 JonathanANTOINE@falsemail.com MultiTouch apicontrolscustomdemohow tohow-tomanipulationmathmultitouchNatural User InterfacesampleTemplatetesttestingteststipstrickWindows Presentation FoundationWPFXAML <p>When building a (multi)touch application you may need one nice feature : translate hand-written text to real words. This open a whole new world full of possibilities like starting some actions when keywords are recognized or simply allow the users to write some text for later use.&nbsp;<br /><br /><strong>In this post we'll see all the step to create an hand writing to text control and how to tune it.</strong></p> <p>Specifications The HandWritingToText controls translate the text written with it's hand by the user into "computer text". The final purpose is to triggers some actions when a specific keyword is recognized and it'll so be able to recognize only one word at a time and not a whole text.   The recognized text will be published via an event and... <a href="http://blog.lexique-du-net.com/index.php?post/2010/09/19/How-to-create-an-hand-writing-to-text-control-%28ink-recognizer%29"><em>Read</em> How to create an hand writing to text control (ink recognizer)</a></p> http://blog.lexique-du-net.com/index.php?post/2010/09/19/How-to-create-an-hand-writing-to-text-control-%28ink-recognizer%29#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/55 Migrate the Jetpack theme from Silverlight to WPF urn:md5:b8f2e7c8b33b26254f7cc2e5daca903a 2010-10-14T12:54:00+02:00 2010-10-16T01:39:58+02:00 JonathanANTOINE@falsemail.com WPF MigrationSilverlightThemeWindows Presentation FoundationWPFXAML <p>There is a great theme named Jetpack available for Silverlight applications which can be found on the Tim Heuer web site. I was wondering if it can be used in WPF applications and the answer is yes ! Here are the modifications I had to do to make all this work :   SelectionBackground replace by SelectionBrush (except for the DatePicker) I... <a href="http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF"><em>Read</em> Migrate the Jetpack theme from Silverlight to WPF</a></p> http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/61 How to create your own control library (how-to + tips) urn:md5:9ed22011e4c8dd030431d70034af0342 2010-10-03T23:27:00+02:00 2010-10-04T17:42:57+02:00 JonathanANTOINE@falsemail.com WPF BindingContentControlcontrolscustomdataBindingDataTemplateDependencyPropertyeventsexamplehow tohow-toLibrarysampleTemplatetipstrickWindows Presentation FoundationWPFXAML <p>Reusability and factorizing are maybe the most commons things you want and use when you are developing applications. In WPF it often means creating controls library (i don’t mean UserControl) that will be easy to use in multiple applications. In this post we'll see all the step to create a control library useable in differents projects. The... <a href="http://blog.lexique-du-net.com/index.php?post/2010/10/04/How-to-create-your-own-control-library"><em>Read</em> How to create your own control library (how-to + tips)</a></p> http://blog.lexique-du-net.com/index.php?post/2010/10/04/How-to-create-your-own-control-library#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/59 How to create an animated expander urn:md5:2ae908d20a12760560980c024eaabac7 2010-09-21T14:02:00+02:00 2010-09-21T15:03:55+02:00 JonathanANTOINE@falsemail.com WPF animationContentControlexamplesamplescalescalingTemplatetipstrickWindows Presentation FoundationWPFXAML <p>The expander control can be used in a lot of situations but the one proposed by default is quite "rigid". In this post we will discover how to animate it quite simply just via XAML ! The WPF engine lets us redefine the template of the controls and we'll just do that. The goal aimed What we aim is to get the same functionnality as the... <a href="http://blog.lexique-du-net.com/index.php?post/2010/09/21/Create-an-animated-expander"><em>Read</em> How to create an animated expander</a></p> http://blog.lexique-du-net.com/index.php?post/2010/09/21/Create-an-animated-expander#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/56 UserControl/Control : how to get a reference to an element of the template urn:md5:31729ab6c8a50b35686f1411e6c53daa 2010-09-14T22:42:00+02:00 2010-09-20T17:40:23+02:00 JonathanANTOINE@falsemail.com WPF ContentControlcontrolscustomDataTemplateexceptionhow tohow-toTemplateWindows Presentation FoundationWPFXAML <p>When you want to create your own custom control you have two choices : create an UserControl or inherit from one of the "Control's classes" (ContentControl, ItemsControls or Control itself). When doing so, you'll surely need to access to the visual parts of your template from the code to add to it a nice behavior. In this post, we'll discover how... <a href="http://blog.lexique-du-net.com/index.php?post/2010/09/14/UserControl/Control-how-to-get-a-reference-to-an-element-of-the-template"><em>Read</em> UserControl/Control : how to get a reference to an element of the template</a></p> http://blog.lexique-du-net.com/index.php?post/2010/09/14/UserControl/Control-how-to-get-a-reference-to-an-element-of-the-template#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/54 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 [Performance tips] Use the system shadows instead of your own urn:md5:6ce9a6fcf6a9fa653286c4c02a507fc7 2010-04-27T23:52:00+02:00 2010-04-28T00:24:05+02:00 JonathanANTOINE@falsemail.com WPF aerodemoexamplehow tohow-toperformanceshadowshadowstipstrickWindows Presentation FoundationWPFXAML <p>Today a fast and easy tip about shadows and performance. In a project I have recently made, we've told the designer not to use BitmapEffects because they are performance killer. He so decided to create it's own shadows by duplicating each shape and make them looks like shadows(designer magic, voodoo things, etc...). I was then surprised to see... <a href="http://blog.lexique-du-net.com/index.php?post/2010/04/27/Performance-tips-Use-the-system-shadows-instead-of-your-own"><em>Read</em> [Performance tips] Use the system shadows instead of your own</a></p> http://blog.lexique-du-net.com/index.php?post/2010/04/27/Performance-tips-Use-the-system-shadows-instead-of-your-own#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/50 Freeze brushes directly in the XAML to improve your application's performances urn:md5:9e20a96580288c5ab39762cf98c5d356 2010-04-12T22:53:00+02:00 2010-04-14T18:10:46+02:00 JonathanANTOINE@falsemail.com WPF examplefreezehow tohow-toperformancetipstrickWindows Presentation FoundationWPFXAML <p>When you read the MSDN guidelines to improve WPF's performances you can find that it's a good idea to freeze Freezable objects. It's a quite easy thing to do via the code but it's quite harder to do it directly in the XAML. In this post we will see how to do so. What are freezable objects One upon a time, the MSDN said : A Freezable is a... <a href="http://blog.lexique-du-net.com/index.php?post/2010/04/12/Freeze-brushes-directly-in-the-XAML-to-improve-your-application-s-performances"><em>Read</em> Freeze brushes directly in the XAML to improve your application's performances</a></p> http://blog.lexique-du-net.com/index.php?post/2010/04/12/Freeze-brushes-directly-in-the-XAML-to-improve-your-application-s-performances#comment-form http://feeds.feedburner.com/JonathanAntoine/comments/49 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 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 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