Strongly typed helper for toast notifications
A developer creates a strongly-typed C# wrapper for the cumbersome Windows 8 toast notification API, simplifying template usage.
Thomas Levesque is a French software developer and long-time .NET expert with 20 years of experience, specializing in C#, ASP.NET Core, and open-source development. He is a core maintainer of FakeItEasy and a former Microsoft MVP.
109 articles from this blog
A developer creates a strongly-typed C# wrapper for the cumbersome Windows 8 toast notification API, simplifying template usage.
A developer details a bug and solution for displaying images in WinRT SearchBox result suggestions, involving the correct IRandomAccessStreamReference type.
Explains how to securely store passwords in .NET using Windows Data Protection API (DPAPI) and the ProtectedData class.
A technical guide on detecting dependency property changes in WinRT using a binding-based workaround, presented as a reusable extension method.
Explains how to use C# 5 caller info attributes like CallerMemberName when targeting older .NET Framework versions (e.g., 4.0, 3.5) by defining custom attributes.
Explores under-the-radar improvements in Visual Studio 2012 RC, including better Edit and Continue for lambdas and optimized autocompletion.
A technical guide on using LINQ queries to filter, sort, and group data in a WPF CollectionView for a more type-safe and readable approach.
A technical guide on using attached properties to create parameterized styles for WPF controls like CheckBox and RadioButton.
Explores a new WPF 4.5 feature allowing event subscription via markup extensions, with a focus on MVVM pattern integration.
Explains tail recursion optimization in C#, its absence in the compiler, and workarounds like the trampoline technique to prevent stack overflows.
A technical guide on implementing proper animated GIF support in WPF applications, addressing common pitfalls and providing a clean solution.
Explains how to bind data in WPF when the DataContext is not inherited, using the Freezable class as a workaround.
Explains how to use lambda expressions with Entity Framework's Include method for type-safe eager loading, avoiding string-based property paths.
A tutorial on creating a simplified WPF Grid control using custom XAML attribute syntax to reduce boilerplate code.
Explains memory leaks from .NET events and presents a custom WeakEvent pattern implementation using WeakDelegate to avoid strong references.
Explains how to use C# LINQ expressions to automatically generate null-safe property access, eliminating repetitive null-check code.
Visual Studio 2010 beta 2 adds binding support to WPF InputBindings, simplifying MVVM development by allowing direct command binding.
A guide to creating custom dynamic objects in C# 4.0 by inheriting from the DynamicObject class and overriding key methods.
Explains how to fix WPF markup extensions that fail to update targets when used inside ControlTemplates, with a focus on deferred evaluation.
A tutorial on enhancing a WPF GridView with automatic sorting and visual sort glyph indicators using adorners and custom images.