Service Locator and Xaml
Consider a problem: in Prism, the service injection is being resolved using a ServiceLocator class (or you can access a Unity container directly, which is not advised). But how you doing this in Xaml?...
View ArticleXAML to raster, using RenderTargetBitmap class
Hi guys, It’s been a while since I wrote last time – I changed my job three months ago, so I was a quite busy. Due to lack of time I was not writing and even worst – I forgot most of what I wanted to...
View ArticleWPF Thumb control capturing mouse!
In this post I would like to point to some peculiarity of the WPF thumb control, knowing which may save you hours of debugging. I was trying to make a custom control, which template was a thumb...
View ArticleLecture 1: Windows graphical interfaces
Recently I was asked to lecture in my company, Netformx, about WPF. My goal was to make this lecture different from what you usually may see in WPF courses and events – instead of saying good sounding...
View ArticleSometimes Dependency Properties piss me off
Generally speaking, I like the concept of dependency properties – the ability to attach data to something is very handly. However, I don’t like how this implemented. Lets put a side their syntax – even...
View ArticleLecture 2- Windows UI Frameworks and introduction to WPF
This is a second lecture in the WPF series. In the previous one, we discussed about two Windows Graphical interfaces: GDI and DirectX. We compared these two technologies, and showed advantages and...
View ArticleLecture 3: WPF architecture
This is a third lecture about WPF. In first one we discussed about the Windows graphical interfaces (namely GDI and DirectX), in the second we talked about different frameworks wrapping these...
View ArticleOvercoming the limitation of having MultiBinding inside another MultiBinding
Right now, WPF 4.0 is not allowing to have one MultiBinding inside another. If you will try to do that, you will get an exception: BindingCollection does not support items of type MultiBinding. Only...
View ArticleWatermark TextBox Behavior (Silverlight 4)
Introduction Recently I implemented a behavior, which is adds to any TextBox control an ability of watermark. But before I going to implementation details, let’s explain what the watermark is. The...
View ArticleError: Cannot resolve dependency to assembly ‘System.Windows, Version=5.0.5.0
Today I got a Silverlight 5 solution from my customer. When I tried to compile it, it was crying about missing reference (some third party library). When I found and referenced the required assembly,...
View Article