Yet another blog about WPF, Surface, SL, MVVM, NUI.... - Tag - Windows Presentation Foundation - 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> Migrate the Jetpack theme from Silverlight to WPF - Fredrik Duwell http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3121 urn:md5:da93773210002931355e537526bb4bda Mon, 01 Aug 2011 17:01:40 +0200 Fredrik Duwell <p>Isn't there any other way to make it work? I've been trying to make it expand, but when I click on the expander the arrow toggles, but the content doesn't show up!</p> Migrate the Jetpack theme from Silverlight to WPF - Jonathan ANTOINE http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3120 urn:md5:80d6df6900191684cd3ad76a8c6ed0b2 Sun, 31 Jul 2011 22:06:18 +0200 Jonathan ANTOINE <p>@<a href="http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3118" rel="nofollow">Fredrik Duwell</a>&nbsp;: Hey, the Expander can't be migrated because it does not have the same property thant the SL's one. You may try using the one is the amazingWPFControls codeplex project...&nbsp;</p> Migrate the Jetpack theme from Silverlight to WPF - Fredrik Duwell http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3118 urn:md5:f9a174f178f088a3fc53f1f7f6df64b1 Sun, 31 Jul 2011 20:53:54 +0200 Fredrik Duwell <p>Hi again!<br /> Couldn't you complete this UI? I'd need the expander, but it doesn't work - any ideas?</p> <p>/ Fredrik</p> Migrate the Jetpack theme from Silverlight to WPF - Jonathan ANTOINE http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3112 urn:md5:ddb02b325faa917e1457627d7a4b1581 Mon, 13 Jun 2011 13:49:44 +0200 Jonathan ANTOINE <p>@<a href="http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c2961" rel="nofollow">CK</a>&nbsp;: Hey, I updated the project on codeplex, it should be working now <img src="themes/default/smilies/smile.png" alt=":)" class="smiley" /></p> UIAutomation, Coded UI tests, AutomationPeer and WPF/silverlight custom controls - Jonathan ANTOINE http://blog.lexique-du-net.com/index.php?post/2011/03/23/UIAutomation%2C-Coded-UI-tests%2C-AutomationPeer-and-WPF-custom-controls#c3111 urn:md5:de5748c7944f74a3795e3c9c411723c4 Mon, 13 Jun 2011 13:48:07 +0200 Jonathan ANTOINE <p>@<a href="http://blog.lexique-du-net.com/index.php?post/2011/03/23/UIAutomation%2C-Coded-UI-tests%2C-AutomationPeer-and-WPF-custom-controls#c3110" rel="nofollow">Nina</a>&nbsp;: Hello, Sorry I can't help you on coded UI test for web application. I only test them with WPF <img src="themes/default/smilies/sad.png" alt=":-(" class="smiley" /></p> UIAutomation, Coded UI tests, AutomationPeer and WPF/silverlight custom controls - Nina http://blog.lexique-du-net.com/index.php?post/2011/03/23/UIAutomation%2C-Coded-UI-tests%2C-AutomationPeer-and-WPF-custom-controls#c3110 urn:md5:6ea0e46764a9998f8b7d3ba43ac06365 Tue, 07 Jun 2011 02:43:56 +0200 Nina <p>If your web application using dynamic custom control which will only generate at runtime, what should be the best way to record these control in coded UI? i'm new to Code UI and we are currently having problem when those dynamic control is changing causing the Code UI Test fail and we have to re-record again.</p> UIAutomation, Coded UI tests, AutomationPeer and WPF/silverlight custom controls - Jonathan ANTOINE http://blog.lexique-du-net.com/index.php?post/2011/03/23/UIAutomation%2C-Coded-UI-tests%2C-AutomationPeer-and-WPF-custom-controls#c3095 urn:md5:f5e60915965f719cc202f31a32e033ea Tue, 31 May 2011 22:37:13 +0200 Jonathan ANTOINE <p>@<a href="http://blog.lexique-du-net.com/index.php?post/2011/03/23/UIAutomation%2C-Coded-UI-tests%2C-AutomationPeer-and-WPF-custom-controls#c3089" rel="nofollow">Dave</a>&nbsp;: I have no clue on how to do this.</p> <p>Maybe you can create your own customcontrol copying the BorderControl and put an AutomationPeer in it ?</p> Migrate the Jetpack theme from Silverlight to WPF - Jonathan ANTOINE http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3094 urn:md5:4d841e662a4d0ff56be43437efc0e490 Tue, 31 May 2011 22:36:31 +0200 Jonathan ANTOINE <p>@<a href="http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3077" rel="nofollow">alessandro</a>&nbsp;: Thank you, you are welcome <img src="themes/default/smilies/smile.png" alt=":)" class="smiley" /></p> Migrate the Jetpack theme from Silverlight to WPF - Jonathan ANTOINE http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3093 urn:md5:83e3f7eef69bcc294124c07564f55725 Tue, 31 May 2011 22:35:57 +0200 Jonathan ANTOINE <p>@<a href="http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3068" rel="nofollow">Fredrik</a>&nbsp;: I will do my best to fix it as soon as possible !</p> UIAutomation, Coded UI tests, AutomationPeer and WPF/silverlight custom controls - Dave http://blog.lexique-du-net.com/index.php?post/2011/03/23/UIAutomation%2C-Coded-UI-tests%2C-AutomationPeer-and-WPF-custom-controls#c3089 urn:md5:def4364f7fbab02fa94e81f0cd1de2e1 Mon, 30 May 2011 16:18:50 +0200 Dave <p>Hey, cool post. thanks.<br /> One question:</p> <p>How can I create an automation peer for a border? By default, border is not supported for automation peers. But I will check in a coded UI test whether a specific background color in the border has been set or not.</p> <p>thanks for any help.</p> Migrate the Jetpack theme from Silverlight to WPF - alessandro http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3077 urn:md5:79e66d88f5195b0cccfdd97b72d21b70 Wed, 25 May 2011 12:23:02 +0200 alessandro <p>Johnathan, excellent! This is a great contribution indeed and saves us the conversion effort. I am happy.<br /> Many thanks!</p> Migrate the Jetpack theme from Silverlight to WPF - Fredrik http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c3068 urn:md5:f7d14ebebf731710ff4a8f756848c5e1 Sat, 21 May 2011 14:16:31 +0200 Fredrik <p>Hey!<br /> There's a problem with the tabcontrol.. It says:</p> <p>System.Reflection.TargetInvocationException<br /> Exception has been thrown by the target of an invocation.</p> <pre> at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct&amp; sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)</pre> <p>Thank you!</p> Migrate the Jetpack theme from Silverlight to WPF - CK http://blog.lexique-du-net.com/index.php?post/2010/10/14/Migrate-the-Jetpack-theme-from-Silverlight-to-WPF#c2961 urn:md5:a4908bdc9454010c58a33b0ce6ccb51f Sun, 10 Apr 2011 20:54:05 +0200 CK <p>Hello Jonathan,<br /> Thanks for converting this style I was actually doing this myself last night then found your blog and it saved me the trouble. However I am having a few issues with your conversion.</p> <p>ProgressBars set to IsIndeterminate cause the editor to error saying:<br /> Cannot resolve all property references in the property path '(0).(1).(2)[ 0 ].X'.</p> <p>Which is on line 1448 of CoreStyles.xaml</p> <p>Another issue I found was with TabItems, Which is throwing this error:<br /> System.Windows.Media.Animation.ColorAnimationUsingKeyFrames' animation object cannot be used to animate property 'Foreground' because it is of incompatible type 'System.Windows.Media.Brush'.</p> <p>Which is on line 3013 of SDKStyles.xaml.</p> <p>I'm using Visual Studio 2010 with all the latest updates and such, along with the Windows Phone toolkit installed. I'm fairly new to WPF so figuring out how to fix these issues alone is proving troublesome. Any help would be greatly appreciated.</p> <p>On a side note, the application will still run when compiled, it just wont show in the designer due to these errors.</p> <p>Thanks,<br /> CK</p> [Performance tips] Use the system shadows instead of your own - Jonathan ANTOINE http://blog.lexique-du-net.com/index.php?post/2010/04/27/Performance-tips-Use-the-system-shadows-instead-of-your-own#c2660 urn:md5:29b985fcf9dc7f164a6033261ae123ab Mon, 28 Mar 2011 21:09:11 +0200 Jonathan ANTOINE <p>@<a href="http://blog.lexique-du-net.com/index.php?post/2010/04/27/Performance-tips-Use-the-system-shadows-instead-of-your-own#c2646" rel="nofollow">Nirvi</a>&nbsp;: I think it will still work because we use a specific control (the shadow) in a specific assembly and not the theme system as a whole.</p> [ping] What ? Dynamic resources creates Memory leaks in WPF 3.5 (SP1) ??? - DotNetShoutout http://blog.lexique-du-net.com/index.php?post/2011/03/27/What-Dynamic-resources-creates-Memory-leaks-in-WPF-3.5-%28SP1%29#c2652 urn:md5:a2e21ccdb578c4671a31d1eedf2eb364 Sun, 27 Mar 2011 18:16:26 +0200 DotNetShoutout <p><a href="http://dotnetshoutout.com/What-Dynamic-resources-creates-Memory-leaks-in-WPF-35-SP1-">What ? Dynamic resources creates Memory leaks in WPF 3.5</a></p> <!-- TB --> <p>Thank you for submitting this cool story - Trackback from DotNetShoutout...</p> [Performance tips] Use the system shadows instead of your own - Nirvi http://blog.lexique-du-net.com/index.php?post/2010/04/27/Performance-tips-Use-the-system-shadows-instead-of-your-own#c2646 urn:md5:a959b69f409d69562826c6c23794f17c Sun, 27 Mar 2011 13:41:24 +0200 Nirvi <p>What if the user runs on XP SP3 with some of the freaky themes, will the Shadow Chrome appear?</p> [ping] UIAutomation, Coded UI tests, AutomationPeer and WPF/silverlight custom controls - DotNetKicks.com http://blog.lexique-du-net.com/index.php?post/2011/03/23/UIAutomation%2C-Coded-UI-tests%2C-AutomationPeer-and-WPF-custom-controls#c2620 urn:md5:1f64191d83596336a8de38ba34352415 Thu, 24 Mar 2011 00:11:52 +0100 DotNetKicks.com <p><a href="http://www.dotnetkicks.com/wpf/UIAutomation_Coded_UI_tests_and_WPF_silverlight_custom_controls">UIAutomation, Coded UI tests and WPF/silverlight custom</a></p> <!-- TB --> <p>You've been kicked (a good thing) - Trackback from DotNetKicks.com...</p> [ping] UIAutomation, Coded UI tests, AutomationPeer and WPF/silverlight custom controls - DotNetShoutout http://blog.lexique-du-net.com/index.php?post/2011/03/23/UIAutomation%2C-Coded-UI-tests%2C-AutomationPeer-and-WPF-custom-controls#c2619 urn:md5:8d86e2c9ca36c45cd279a709f65cf272 Thu, 24 Mar 2011 00:10:32 +0100 DotNetShoutout <p><a href="http://dotnetshoutout.com/UIAutomation-Coded-UI-tests-AutomationPeer-and-WPFsilverlight-custom-controls">UIAutomation, Coded UI tests, AutomationPeer and</a></p> <!-- TB --> <p>Thank you for submitting this cool story - Trackback from DotNetShoutout...</p>