EnglishFrenchGermanItalianPortugueseRussianSpanish

Building custom controls in WPF C#

Reusability is one of the most underrated aspects of software development. The focus on meeting functional requirements in a product as quickly as possible often overshadows the reusability and maintainability part. Code duplication, poor adherence to design are often symptoms of such development which increase costs in the long term in favour of short term [...]

Automated UI Testing of WPF applications using Microsoft UI Automation library

Testing the user interface has to be the most boring part of testing software. Not only is it not fun, it can be horribly repetitive as well with you having to check the same functionality over and over again. The time spent on it could be put to use to far better purposes. Automated Testing [...]

Integrating WinForms and WPF using ElementHost

I didn’t know this was possible until a few days back when a user asked about it on one of the MSDN forums. The query was on how to integrate Winforms and WPF i.e. how to display WPF user controls in Winform application. This feature can be extremely useful because some elements and [...]

WPF through the C# command line compiler csc.exe

I don’t have the Visual Studio 2008 IDE at work. To get around that I write WPF entirely though code in Notepad and compile it with the command line compiler installed with the Framework. Painful, yeah, but it makes for much better learning. The IDE makes things much easier through intellisense, code generation which makes [...]

Nested Controls in WPF

Unlike conventional windows Forms applications, WPF supports Nested controls. i.e. one control can reside inside other controls, something that is not possible in Windows Forms where all the controls belong to one container. Lets see how this is Possible. Many controls in WPF has a content property. The Content property is what the control displays. [...]