Multithreaded UI: HostVisual
Background: The WPF Threading Model In general, objects in WPF can only be accessed from the thread that created them. Sometimes this restriction is confused with the UI thread, but this is not true,...
View ArticleBlurry Bitmaps
Background: resolution independence WPF was designed from the start to be resolution independent. So instead of designing your UI in terms of pixels, you are encouraged to use a physical measuring...
View ArticleImplementing A Custom BitmapSource
Windows Imaging Component WPF uses the Windows Imaging Component (WIC) library to process bitmap data. WIC presents a data flow for bitmap processing that is both simple and powerful. The basic...
View ArticleTransparent Windows in WPF
Introduction WPF can obviously render transparent elements within its own window, but it also supports rendering the entire window with per-pixel transparency. This feature comes with a few issues,...
View ArticleFun with floating point
Introduction WPF uses double-precision floating point numbers (double in C#) in much of its public API and it uses single-precision floating point for much of its internal rendering. So floating point...
View ArticleMitigating Airspace Issues In WPF Applications
Introduction WPF offers a modern approach for building Windows applications, but it builds directly on Win32 – the traditional UI infrastructure in Windows. Because Win32 was developed in an era where...
View ArticleCode Coverage with Async Await
It may be a fools errand, but it is sometimes tempting to chase the elusive goal of achieving 100% code-coverage with unit tests. I’m not going to argue the merits of using code coverage as part of...
View Article
More Pages to Explore .....