# WPF

WPF is a Windows Presentation Foundation UI framework in .NET for building Windows applications, offering XAML, controls, data binding, layout, graphics, animation, and related application-development features.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Syncfusion Essential Studio Adds Day-One Support for .NET 11

DevFeed: [Syncfusion Essential Studio Adds Day-One Support for .NET 11](<https://devfeed.tech/articles/syncfusion-essential-studio-adds-day-one-support-for-net-11-129648.md>)

Original publisher: [Read original article](<https://www.syncfusion.com/blogs/post/syncfusion-dotnet-11-support>)

Author: Manikanda Akash Munisamy

Published: 2026-11-11T12:33:11Z

Content type: release

Language: en

Sources: [Syncfusion](<https://devfeed.tech/sources/syncfusion-blogs.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [Blazor](<https://devfeed.tech/topics/blazor.md>), [.NET MAUI](<https://devfeed.tech/topics/net-maui.md>), [WinForms](<https://devfeed.tech/topics/winforms.md>), [Windows UI Library (WinUI)](<https://devfeed.tech/topics/winui.md>), [WPF](<https://devfeed.tech/topics/wpf.md>), [SDK](<https://devfeed.tech/topics/sdk.md>)

Tags: [blazor](<https://devfeed.tech/tags/blazor.md>), [blazor-net-11-support](<https://devfeed.tech/tags/blazor-net-11-support.md>), [c-sharp-15](<https://devfeed.tech/tags/c-sharp-15.md>), [day-one](<https://devfeed.tech/tags/day-one.md>), [document-sdk](<https://devfeed.tech/tags/document-sdk.md>), [essential-studio-net-11-support](<https://devfeed.tech/tags/essential-studio-net-11-support.md>), [guidance](<https://devfeed.tech/tags/guidance.md>), [net-11](<https://devfeed.tech/tags/net-11.md>), [net-11-document-sdk](<https://devfeed.tech/tags/net-11-document-sdk.md>), [net-11-ui-components](<https://devfeed.tech/tags/net-11-ui-components.md>), [net-development](<https://devfeed.tech/tags/net-development.md>), [net-development-syncfusion](<https://devfeed.tech/tags/net-development-syncfusion.md>), [net-maui](<https://devfeed.tech/tags/net-maui.md>), [net-maui-net-11-support](<https://devfeed.tech/tags/net-maui-net-11-support.md>), [syncfusion](<https://devfeed.tech/tags/syncfusion.md>), [syncfusion-essential-studio](<https://devfeed.tech/tags/syncfusion-essential-studio.md>), [syncfusion-net-11-support](<https://devfeed.tech/tags/syncfusion-net-11-support.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>), [what-s-new](<https://devfeed.tech/tags/what-s-new.md>), [winforms](<https://devfeed.tech/tags/winforms.md>), [winforms-net-11-support](<https://devfeed.tech/tags/winforms-net-11-support.md>), [winui](<https://devfeed.tech/tags/winui.md>), [winui-net-11-support](<https://devfeed.tech/tags/winui-net-11-support.md>), [wpf](<https://devfeed.tech/tags/wpf.md>), [wpf-net-11-support](<https://devfeed.tech/tags/wpf-net-11-support.md>)

### AI overview

Syncfusion Essential Studio supports .NET 11 across .NET MAUI, Blazor, WPF, WinForms, WinUI, and Document SDK libraries, allowing teams to begin evaluating upgrades with compatible Syncfusion packages. Upgrade steps include installing the final .NET 11 SDK, retargeting the project, aligning related Syncfusion package versions, reviewing Microsoft's breaking changes, and testing platform specific and business critical scenarios before production. A successful build alone does not establish behavioral compatibility. .NET 11 is an STS release, and Runtime Async remains a preview feature. Runtime and JIT improvements may help some workloads, but performance varies; Syncfusion reports lower times in selected Document SDK operations and little or no change in others, and recommends benchmarking representative workloads.

### Source excerpt

Syncfusion Essential Studio now supports .NET 11 across .NET MAUI, Blazor, WPF, WinForms, WinUI, and Document SDK libraries. Explore compatibility, key .NET 11 updates, and upgrade guidance.

## Announcing .NET 11

DevFeed: [Announcing .NET 11](<https://devfeed.tech/articles/announcing-net-11-127116.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/dotnet/announcing-dotnet-11/>)

Author: .NET Team

Published: 2026-11-10T16:11:00Z

Content type: release

Language: en

Sources: [.NET Blog](<https://devfeed.tech/sources/net-blog.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [ASP.NET Core](<https://devfeed.tech/topics/asp-net-core.md>), [.NET MAUI](<https://devfeed.tech/topics/net-maui.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Microsoft.Extensions.AI](<https://devfeed.tech/topics/microsoft-extensions-ai.md>), [efcore](<https://devfeed.tech/topics/efcore.md>), [system.text.json](<https://devfeed.tech/topics/system-text-json.md>), [WinForms](<https://devfeed.tech/topics/winforms.md>), [WPF](<https://devfeed.tech/topics/wpf.md>), [.NET Conf](<https://devfeed.tech/topics/net-conf.md>)

Tags: [ag-ui](<https://devfeed.tech/tags/ag-ui.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-apps](<https://devfeed.tech/tags/ai-apps.md>), [apps](<https://devfeed.tech/tags/apps.md>), [asp-net-core](<https://devfeed.tech/tags/asp-net-core.md>), [blazor](<https://devfeed.tech/tags/blazor.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [c-sharp-15](<https://devfeed.tech/tags/c-sharp-15.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [entity-framework](<https://devfeed.tech/tags/entity-framework.md>), [f-sharp](<https://devfeed.tech/tags/f-sharp.md>), [faster](<https://devfeed.tech/tags/faster.md>), [featured](<https://devfeed.tech/tags/featured.md>), [featured-post](<https://devfeed.tech/tags/featured-post.md>), [improvements](<https://devfeed.tech/tags/improvements.md>), [library](<https://devfeed.tech/tags/library.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [net](<https://devfeed.tech/tags/net.md>), [net-11](<https://devfeed.tech/tags/net-11.md>), [net-conf](<https://devfeed.tech/tags/net-conf.md>), [net-maui](<https://devfeed.tech/tags/net-maui.md>), [net-sdk](<https://devfeed.tech/tags/net-sdk.md>), [nuget](<https://devfeed.tech/tags/nuget.md>), [performance](<https://devfeed.tech/tags/performance.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [tools](<https://devfeed.tech/tags/tools.md>), [web](<https://devfeed.tech/tags/web.md>), [winforms](<https://devfeed.tech/tags/winforms.md>), [wpf](<https://devfeed.tech/tags/wpf.md>)

### AI overview

.NET 11 introduces C# 15 union types and closed hierarchies, SDK and runtime performance improvements, and updates across web, mobile, desktop, AI, and libraries. The SDK's Native AOT CLI host and warm MSBuild server reduce startup overhead; runtime optimizations affect generated code, though performance gains depend on workload. New capabilities include ASP.NET Core asynchronous validation and OpenAPI 3.2, MAUI's CoreCLR default, Zstandard compression, and richer JSON support. Several features remain preview, experimental, or prerelease, including Runtime Async, MAUI XAML Incremental Hot Reload, Android Native AOT, and Blazor AI components. .NET 11 has two years of support; .NET 10 remains a supported LTS option. Upgrading requires retargeting projects, updating compatible packages and workloads, reviewing breaking changes and minimum CPU requirements, then testing and measuring under representative conditions.

### Source excerpt

.NET 11 is here with C# 15, faster developer tools, runtime and library improvements, and new capabilities for web, mobile, desktop, and AI apps. The post Announcing .NET 11 appeared first on .NET Blog.

## A brief history of Windows scroll bar shortcuts

DevFeed: [A brief history of Windows scroll bar shortcuts](<https://devfeed.tech/articles/a-brief-history-of-windows-scroll-bar-shortcuts-58961.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/oldnewthing/20260922-00/?p=112719/>)

Author: Raymond Chen

Published: 2026-09-22T14:00:00Z

Content type: opinion

Language: en

Sources: [Raymond Chen](<https://devfeed.tech/sources/raymond-chen.md>)

Topics: [Windows](<https://devfeed.tech/topics/windows.md>), [win32](<https://devfeed.tech/topics/win32.md>), [Electron](<https://devfeed.tech/topics/electron.md>), [Windows UI Library (WinUI)](<https://devfeed.tech/topics/winui.md>), [WPF](<https://devfeed.tech/topics/wpf.md>), [Qt](<https://devfeed.tech/topics/qt.md>), [GUI](<https://devfeed.tech/topics/gui.md>), [Chromium](<https://devfeed.tech/topics/chromium.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [electron](<https://devfeed.tech/tags/electron.md>), [old-new-thing](<https://devfeed.tech/tags/old-new-thing.md>), [scroll](<https://devfeed.tech/tags/scroll.md>), [shortcuts](<https://devfeed.tech/tags/shortcuts.md>), [windows](<https://devfeed.tech/tags/windows.md>), [xaml](<https://devfeed.tech/tags/xaml.md>)

### AI overview

The post traces Windows scroll bar interactions from basic mouse operations to the "Scroll Here" context-menu command and the Shift-click shortcut. It compares support for these behaviors across Win32, Chromium, WPF, WinUI, and Qt, highlighting fragmentation among modern application frameworks.

### Source excerpt

Right-clicking and shift-clicking. The post A brief history of Windows scroll bar shortcuts appeared first on The Old New Thing.

## TCLBANKER: Brazilian Banking Trojan Spreading via WhatsApp and Outlook

DevFeed: [TCLBANKER: Brazilian Banking Trojan Spreading via WhatsApp and Outlook](<https://devfeed.tech/articles/tclbanker-brazilian-banking-trojan-spreading-via-whatsapp-and-outlook-49117.md>)

Original publisher: [Read original article](<https://www.elastic.co/security-labs/threat-command/tclbanker-brazilian-banking-trojan>)

Author: Jia Yu Chan,Daniel Stepanic,Seth Goodwin,Terrance DeJesus

Published: 2026-05-07T00:00:00Z

Content type: article

Language: en

Sources: [Elastic Security Labs](<https://devfeed.tech/sources/elastic-security-labs.md>)

Topics: [Malware](<https://devfeed.tech/topics/malware.md>), [Security](<https://devfeed.tech/topics/security.md>), [WPF](<https://devfeed.tech/topics/wpf.md>), [C2](<https://devfeed.tech/topics/c2.md>), [Cloudflare Workers](<https://devfeed.tech/topics/cloudflare-workers.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>), [Social engineering](<https://devfeed.tech/topics/social-engineering.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [c2](<https://devfeed.tech/tags/c2.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [credential-harvesting](<https://devfeed.tech/tags/credential-harvesting.md>), [malware](<https://devfeed.tech/tags/malware.md>), [malware-analysis](<https://devfeed.tech/tags/malware-analysis.md>), [outlook](<https://devfeed.tech/tags/outlook.md>), [phishing](<https://devfeed.tech/tags/phishing.md>), [security](<https://devfeed.tech/tags/security.md>), [trojan](<https://devfeed.tech/tags/trojan.md>), [whatsapp](<https://devfeed.tech/tags/whatsapp.md>)

### AI overview

Elastic Security Labs reports on TCLBANKER, a Brazilian banking trojan delivered through a trojanized Logitech installer. The malware uses environment-gated payloads, anti-analysis protections, WPF fraud overlays, browser monitoring, WebSocket command and control, and self-propagating WhatsApp and Outlook modules.

### Source excerpt

REF3076 uses a trojanized Logitech installer to deploy TCLBANKER, a Brazilian banking trojan with environment-gated payloads, WPF fraud overlays, and self-propagating WhatsApp and Outlook worm modules.

## Keygenning with KLEE

DevFeed: [Keygenning with KLEE](<https://devfeed.tech/articles/keygenning-with-klee-39699.md>)

Original publisher: [Read original article](<https://doar-e.github.io/blog/2015/08/18/keygenning-with-klee/>)

Author: Michele "brt\_device" Bertasi

Published: 2015-08-19T05:12:00Z

Content type: tutorial

Language: en

Sources: [Diary of a reverse-engineer](<https://devfeed.tech/sources/diary-of-a-reverse-engineer.md>)

Topics: [Software](<https://devfeed.tech/topics/software.md>), [Code](<https://devfeed.tech/topics/code.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [gcc](<https://devfeed.tech/topics/gcc.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [Script](<https://devfeed.tech/topics/script.md>), [WPF](<https://devfeed.tech/topics/wpf.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [gcc](<https://devfeed.tech/tags/gcc.md>), [ida](<https://devfeed.tech/tags/ida.md>), [ida-pro](<https://devfeed.tech/tags/ida-pro.md>), [linux](<https://devfeed.tech/tags/linux.md>), [reverse-engineering](<https://devfeed.tech/tags/reverse-engineering.md>), [scripting](<https://devfeed.tech/tags/scripting.md>), [software](<https://devfeed.tech/tags/software.md>), [symbolic-execution](<https://devfeed.tech/tags/symbolic-execution.md>), [virtual-machine](<https://devfeed.tech/tags/virtual-machine.md>), [windbg](<https://devfeed.tech/tags/windbg.md>)

### AI overview

This article examines the reverse engineering of a software serial-number validation process and describes using the KLEE symbolic virtual machine to build a key generator. It also discusses tools and practices including IDA Pro, WinDbg, Linux, gcc, Bash scripting, and a WPF application.

### Source excerpt

Introduction In the past weeks I enjoyed working on reversing a piece of software (don't ask me the name), to study how serial numbers are validated. The story the user has to follow is pretty common: download the trial, pay, get the serial number, use it in the annoying nag ...

## Setting up a WPF Application With PRISM

DevFeed: [Setting up a WPF Application With PRISM](<https://devfeed.tech/articles/setting-up-a-wpf-application-with-prism-21199.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2013/06/setup-wpf-with-prism/>)

Published: 2013-06-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [WPF](<https://devfeed.tech/topics/wpf.md>), [developer setup](<https://devfeed.tech/topics/developer-setup.md>), [App](<https://devfeed.tech/topics/app.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [application](<https://devfeed.tech/tags/application.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [building](<https://devfeed.tech/tags/building.md>), [client](<https://devfeed.tech/tags/client.md>), [design-patterns](<https://devfeed.tech/tags/design-patterns.md>), [design-principles](<https://devfeed.tech/tags/design-principles.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [easy](<https://devfeed.tech/tags/easy.md>), [extensibility](<https://devfeed.tech/tags/extensibility.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [modular](<https://devfeed.tech/tags/modular.md>), [next](<https://devfeed.tech/tags/next.md>), [nuget](<https://devfeed.tech/tags/nuget.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [planning](<https://devfeed.tech/tags/planning.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [plugins](<https://devfeed.tech/tags/plugins.md>), [provides](<https://devfeed.tech/tags/provides.md>), [setup](<https://devfeed.tech/tags/setup.md>)

### AI overview

The excerpt outlines setting up a modular WPF client with Prism and MEF. It recommends creating a plain WPF project, adding Prism dependencies through NuGet--including Prism.MEFExtensions for extensibility--and creating a bootstrapper to assemble and launch the application shell. The shell is renamed to reflect its role as a container for modules and plugins; the excerpt then describes adapting the bootstrapper to create and display it, adding a MEF reference for an extension method, and exporting the shell and configuring MEF's registry. Several code names and details are omitted, so the excerpt does not provide a complete implementation.

### Source excerpt

Lorem ipsum dolor sit amet

## Designing GitHub for Windows

DevFeed: [Designing GitHub for Windows](<https://devfeed.tech/articles/designing-github-for-windows-70420.md>)

Original publisher: [Read original article](<https://github.blog/news-insights/the-library/designing-github-for-windows/>)

Author: Timothy Clem

Published: 2012-06-07T23:46:27Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [User interface design](<https://devfeed.tech/topics/ui-design.md>), [WPF](<https://devfeed.tech/topics/wpf.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [MahApps.Metro](<https://devfeed.tech/topics/mahapps.md>)

Tags: [accessible](<https://devfeed.tech/tags/accessible.md>), [article](<https://devfeed.tech/tags/article.md>), [color](<https://devfeed.tech/tags/color.md>), [components](<https://devfeed.tech/tags/components.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [github](<https://devfeed.tech/tags/github.md>), [news-insights](<https://devfeed.tech/tags/news-insights.md>), [the-library](<https://devfeed.tech/tags/the-library.md>)

### AI overview

The article describes GitHub's design and development process for its Windows desktop client. It covers iterative design reviews, collaboration between designers and developers, XAML and WPF-based interface construction, custom controls and window behavior, UI responsiveness, and ways the application presents Git version-control concepts to users.

### Source excerpt

This article hasn't been updated in a while. For the most current information, please refer to the docs and the Desktop website. Today, I thought it would be fun to...

## Building advanced MVVM commands, Part 1

DevFeed: [Building advanced MVVM commands, Part 1](<https://devfeed.tech/articles/building-advanced-mvvm-commands-part-1-38403.md>)

Original publisher: [Read original article](<https://khmylov.com/2010/11/building-advanced-mvvm-commands-part-1/>)

Author: Andrew Khmylov

Published: 2010-11-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Despite the odds](<https://devfeed.tech/sources/despite-the-odds.md>)

Topics: [MVVM](<https://devfeed.tech/topics/mvvm.md>), [WPF](<https://devfeed.tech/topics/wpf.md>), [async](<https://devfeed.tech/topics/async.md>), [cancellation](<https://devfeed.tech/topics/cancellation.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [applications](<https://devfeed.tech/tags/applications.md>), [async](<https://devfeed.tech/tags/async.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [cancellation](<https://devfeed.tech/tags/cancellation.md>), [exception-handling](<https://devfeed.tech/tags/exception-handling.md>), [mvvm](<https://devfeed.tech/tags/mvvm.md>), [thread](<https://devfeed.tech/tags/thread.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

This tutorial presents an advanced DelegateCommand implementation for WPF and Silverlight applications using the MVVM pattern. It covers asynchronous execution, command states, cancellation, progress tracking, exception handling, UI updates through Dispatcher, and helper support for property-change notifications.

### Source excerpt

If you follow the MVVM pattern while developing your WPF/Silverlight applications, then you are probably familiar with DelegateCommand (or RelayCommand, as it is called sometimes) model. In brief: it is an implementation of WPF/Silverlight ICommand that allows you to specify what the command should do by passing some delegate that performs execution logic (instead of using CommandBindings). Pretty simple, but powerful pattern. Dealing with MVVM a lot, I've build my own implementation of this pattern that lets you simplify its usage. Here are some common features, that you have to handle on your own by using classic DelegateCommand: Support for asynchronous execution (usually solved by generating additional code in ViewModel that handles async calls and free/busy indicator). Different command states (Free/Busy/Failed with exception) + UI reactions for those states. Support for execution cancellation and progress tracking (required for asynchronous commands) Before we start, I offer you to imagine a common command execution timeline. In my opinion it looks like: Initialize some data (generally, UI settings - clear collections, set some indicators,...) Perform main execution logic (can be synchronous or asynchronous) Perform some actions after execution (update UI based on execution result) And don't forget about exception handling and correct cross-thread calls for asynchronous commands (all UI changes have to be performed through Dispatcher). Let's start with a little helper class, that I called PropertyChangedNotifier. It's just a wrapper around IPropertyChangedNotifier that has OnPropertyChanged(string propertyName) method. This method raises underlying IPropertyChangedNotifier.PropertyChanged event. Also this class has VerifyPropertyName method that verifies if specified string corresponds to the actual property (this method is marked with [Conditional("DEBUG")] attribute and is only used while debugging your applications to find out possible bugs with invalid prope

## WPF/Silverlight visual states with DataTemplates

DevFeed: [WPF/Silverlight visual states with DataTemplates](<https://devfeed.tech/articles/wpf-silverlight-visual-states-with-datatemplates-38405.md>)

Original publisher: [Read original article](<https://khmylov.com/2010/11/wpf-silverlight-visual-states-with-datatemplates/>)

Author: Andrew Khmylov

Published: 2010-11-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Despite the odds](<https://devfeed.tech/sources/despite-the-odds.md>)

Topics: [WPF](<https://devfeed.tech/topics/wpf.md>), [XAML](<https://devfeed.tech/topics/xaml.md>), [MVVM](<https://devfeed.tech/topics/mvvm.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [mvvm](<https://devfeed.tech/tags/mvvm.md>), [progress](<https://devfeed.tech/tags/progress.md>), [screen](<https://devfeed.tech/tags/screen.md>), [state](<https://devfeed.tech/tags/state.md>), [threading](<https://devfeed.tech/tags/threading.md>), [xaml](<https://devfeed.tech/tags/xaml.md>)

### AI overview

This tutorial presents a WPF technique for switching among page, window, or control states by defining different DataTemplates. It contrasts this approach with VisualStateManager and Silverlight Activity Control, then demonstrates a welcome screen and a busy-progress state backed by a ViewModel.

### Source excerpt

Consider a common task - you need to switch between different screens in your application, that represent various states (e.g. Normal/Loading/Error). How are you going to implement this? You can start with VisualStateManager and define appropriate visual states. Well, this will surely do the thing, but you will have to create lots of controls and manage their Visibility or Opacity. And what if you have a complex markup? And I suppose that switching the state will not remove invisible items from the visual tree. And even more, with VisualStateManager you are bound to Expression Blend, because, you know, it's not very convenient to edit VSM settings by hands in XAML (which I prefer, but it is a topic for another article). The second option that may fit well, if you just need something like "I'm busy!" overlay is Silverlight Activity Control. Works like a charm with RIA services, but I find it limited for complex scenarios (and it's not available for WPF). I've found another approach (it becomes especially useful with MVVM and improved DelegateCommand implementations - I will blog about this in a few days). The idea behind this technique is quite simple. You define different templates for different page/window/control states. Yeah, that's it. Let's start with our implementation. Our application will have only one page with 2 different states: A welcome screen, that hosts a button to start 'the heavy' calculation. Busy window" that shows information about the current processing progress. I decided to create a simple ViewModel as a backing storage for our UI properties. It has two properties - IsBusy that says whether some hard work is executing now, and Progress - simple execution progress indicator. Method StartCalculation runs a new thread executes a number of loop steps. On each step the executing thread is suspended for 100ms (to imitate a slow operation). Normally you will create a DelegateCommand that will handle all the execution logic, but I decided to keep thin

## WPF Explorer TreeView with SelectedPath binding

DevFeed: [WPF Explorer TreeView with SelectedPath binding](<https://devfeed.tech/articles/wpf-explorer-treeview-with-selectedpath-binding-38404.md>)

Original publisher: [Read original article](<https://khmylov.com/2010/11/wpf-explorer-treeview-with-selectedpath-binding/>)

Author: Andrew Khmylov

Published: 2010-11-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Despite the odds](<https://devfeed.tech/sources/despite-the-odds.md>)

Topics: [WPF](<https://devfeed.tech/topics/wpf.md>), [Filesystems](<https://devfeed.tech/topics/filesystems.md>), [lazy loading](<https://devfeed.tech/topics/lazy-loading.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [file](<https://devfeed.tech/tags/file.md>), [lazy-loading](<https://devfeed.tech/tags/lazy-loading.md>)

### AI overview

This tutorial describes a custom WPF TreeView control for browsing file systems and exposing a SelectedPath property for two-way binding. It uses lazy loading to populate drives and subfolders, and synchronizes the TreeView selection with the selected path.

### Source excerpt

While working on one of my projects, I had to implement a control for displaying file system. I found pretty good articles over the web ("A Simple WPF Explorer Tree" by Sacha Barber and some replies to it), but they were all about displaying folders. It was pretty easy to track currently selected folder, but there were some issues with its dynamic changes. So I decided to build my own control from scratch that will have some property like SelectedPath that will allow you to use TwoWay bindings to get and set selected folder at the tree. When user selects a node from the TreeView, text in the address bar is updated. When user enters address and clicks Update, TreeView selection gets updated. I have started with a simple CustomControl and inherited it from WPF TreeView: public class ExplorerTreeView: TreeView { public const string SelectedPathPropertyName = "SelectedPath"; public static readonly DependencyProperty SelectedPathProperty = DependencyProperty.Register( SelectedPathPropertyName, typeof (String), typeof (ExplorerTreeView)); public String SelectedPath { get { return (String) GetValue(SelectedPathProperty); } set { SetValue(SelectedPathProperty, value); } } } We will use some lazy-loading techniques to fill our TreeView with data. When control is loaded, it will display only drives on the user machine. Let's write a method for creating initial drive nodes: public void InitExplorer() { Items.Clear(); foreach (var drive in DriveInfo.GetDrives()) { Items.Add(GenerateDriveNode(drive)); } } private static TreeViewItem GenerateDriveNode(DriveInfo drive) { var item = new TreeViewItem { Tag = drive, Header = drive.ToString() }; item.Items.Add("*"); return item; } GenerateDriveNode method takes DriveInfo argument and builds TreeViewItem for it. Note that we are adding a dummy child node (the one with 'the star' header text). If we don't do this, then the user will not see a small button for expanding/collapsing for generated tree view item (it may look like '+' charac