Presentation Source

Digging into WPF

  • Presentation Source

    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, and it is perfectly fine for objects to live on...
  • Presentation Source

    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, which I'll discuss in this post. Layered Windows...
  • Presentation Source

    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 unit (like inches). When you specify coordinates in...
  • Presentation Source

    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 interface for bitmap processing in WIC is IWICBitmapSource...
  • Presentation Source

    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 CPU/GPU horsepower was much more limited than it is...
  • Presentation Source

    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 math is something we deal with constantly. ...
  • Presentation Source

    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 your test strategy, but if you do want to accurately...
Page 1 of 1 (7 items)