Build a WinUI task app with an AI coding assistant

See how an AI coding assistant can help you plan, generate, review, and refine a WinUI task app while you stay in control of every change.

AI-assisted WinUI

In this tutorial overview, you learn how to:

  • Define the app requirements and technical boundaries before code generation.
  • Prompt an AI coding assistant to make small, reviewable changes.
  • Review generated C# and XAML before accepting each change.
  • Build and test every stage to find problems early.
  • Verify local persistence, accessibility, and adaptive layout behavior.
  • Diagnose a verified failure and request the smallest focused repair.
See full tutorial See code on GitHub
The finished Task Tally app keeps task entry, status, and actions together in one adaptive window.
AI-assisted workflow

Move from an idea to working WinUI code

Use an AI coding assistant to clarify the plan, generate focused C# and XAML changes, and review the result before you accept it.
Plan the app Turn the user goal into a clear scope, technical boundaries, file plan, and measurable result before asking the assistant to write code. Learn prompt engineering Generate C# and XAML Use focused requests and the current project context to draft WinUI models, views, bindings, and supporting code in Visual Studio. Use Copilot in Visual Studio Review and refine Build and test the app, inspect the generated diff, and ask for the smallest focused correction to each verified issue. Use Copilot code review
What you'll need

Prepare your AI-assisted development environment

Prepare these three things before you begin. Use only an AI coding assistant approved for your project and data.
A Windows PC Use a supported Windows device where you can build and run the packaged WinUI app locally. Explore Surface PCs Visual Studio 2026 Install Visual Studio with the WinUI application development workload and confirm that a blank packaged app runs. Download Visual Studio An approved AI coding assistant Use an assistant that follows your organization's privacy and source-code policies. Learn AI-assisted development

Ready to build the Task Tally app?

Follow the maintained tutorial on Microsoft Learn to build the WinUI app with an AI coding assistant and review each generated change.

See full tutorial