Quantcast
Channel: Presentation Source
Browsing latest articles
Browse All 14 View Live

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 Article



Image may be NSFW.
Clik here to view.

Blurry 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 Article

Image may be NSFW.
Clik here to view.

Implementing 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 Article

Transparent 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 Article

Image may be NSFW.
Clik here to view.

Fun 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 Article


Mitigating 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 Article

Image may be NSFW.
Clik here to view.

Code 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
Browsing latest articles
Browse All 14 View Live




Latest Images