Browse by Tags
All Tags »
WPF (
RSS)
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...
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...
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...
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...
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...
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...
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...
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...
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() {...
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