Thomas Lebrun

All you need about WPF, Silverlight & LINQ !

Browse by Tags

All Tags » WPF (RSS)
[WPF / MVVM] How to get data in “design time” ?
When you are working with WPF and MVVM Pattern , you can regret that the designer doesn’t get data, in design time, that allow him to simply modified the graphical interface. To help my developments, I’ve created a little attached property which will...
Posted: May 04 2009, 03:00 AM by Thomas Lebrun | with 12 comment(s)
Filed under: , ,
[WPF] An addin to quickly generate your business objects compatible with WPF !
When I work on projects, I often need to create business objects (Customer, Country, etc.) and I would like to be able to done this step very quickly. So I’ve created a little addin to Visual Studio 2008 that allow me to easily create my business objects...
[WPF] How to bind a control to a property defined in the Settings ?
Settings are a very powerful feature of .NET applications that allows developers to store some values in the settings of the application: If you want to know how to bind a control to a property defined in the settings, it’s pretty simple. First, you need...
Posted: Mar 26 2009, 09:23 AM by Thomas Lebrun | with 17 comment(s)
Filed under: ,
[WPF] How to develop and editable Textblock ?
Here is another request that a friend of mine asked me recently. To achieve this, I’ve just create a custom control that contains a TextBlock and a TextBox (which is hidden) controls. When user double clic on the TextBlock, the Textbox appears. So here...
Posted: Mar 24 2009, 08:16 AM by Thomas Lebrun | with 19 comment(s)
Filed under: ,
[Blend] XAML & Code Intellisense in Expression Blend 3
Version 3 of Expression Blend , which is available since last week, comes with a lot of new features. In this features, we can find Intellisense in XAML files: So it’s just a real please for people who, like me, modify the XAML code: no need to open Visual...
[WPF] Another sample of WPF application using the pattern MVVM
To help new developers, here is a sample WPF application (that use the Northwind database) developed by using the pattern MVVM ( Model View ViewModel ). The goal of this little application is just to give another example that will help to understand this...
Posted: Mar 17 2009, 10:29 AM by Thomas Lebrun | with 13 comment(s)
Filed under: , ,
[WPF] How to assign a dynamic resource from code-behind ?
When working on WPF projects, it’s mandatory to assign resources to user interface controls. When you work in XAML, it’s pretty simple: you just need to use the MarkupExtension named StaticResource (or DynamicResource if the resource is going to be modified...
Posted: Mar 11 2009, 11:46 AM by Thomas Lebrun | with 5 comment(s)
Filed under: ,
[WPF] How to gray the icon of a MenuItem ?
Here is a question that a friend of mine asked me recently. Indeed, as a beginner with WPF, it thought that setting the property IsEnabled = false, on the MenuItem, will disable it. So, the following code: <MenuItem Header= "Edit" > <MenuItem...
Posted: Mar 03 2009, 09:40 AM by Thomas Lebrun | with 14 comment(s)
Filed under: ,
[WPF] How to be notified when an internal DependencyProperty is modified ?
When you create your own Dependency Properties, you can define some callbacks that will be called when the value of the property is modified. But, how to do the same with an internal Dependency Property of WPF ? Here is a sample: public MyControl() {...
Posted: Feb 27 2009, 10:12 AM by Thomas Lebrun | with no comments
Filed under: ,
Welcome to my English blog !
Hello everybody, This is my first post on this blog so I’ll try to present myself to let you know who I’m ! My name is Thomas LEBRUN and I’m currently a consultant and trainer (MCT) at Winwise in Paris (France). I started to use .NET in 2002, in particular...
More Posts