{"schemaVersion":1,"id":"microsoft-wpf-samples","name":"Microsoft WPF-Samples","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/microsoft-wpf-samples/","officialUrl":"https://github.com/microsoft/WPF-Samples","isCatalog":false,"description":"An official collection of small WPF projects covering API use, data binding, controls, and sample applications. It provides useful source context for Codex when creating or fixing specific WPF behavior.","tasks":["Find a working example of data binding and control behavior.","Compare your implementation with an official sample before changing your own project.","Build one relevant C# sample with dotnet build and examine the diagnostics.","Use WPF-Samples with .NET skills and Microsoft Learn MCP to retain the WPF stack."],"categoryIds":["apps","frontend"],"subcategoryIds":["apps.windows","apps.wpf","frontend.templates"],"tags":["XAML","C#","WPF","Codex"],"aliases":[],"platforms":["Windows"],"stack":["C# / .NET","WinUI / XAML","WPF"],"compatibility":null,"pricing":"free","freeUsage":"The official samples are available free of charge without registration.","paidUsage":"Your chosen AI client, publishing, and third-party services may carry separate costs.","license":"MIT, unless a particular sample specifies otherwise.","selectionGuide":{"purpose":"Find a working example of data binding and control behavior.","chooseWhen":["Find a working example of data binding and control behavior.","Compare your implementation with an official sample before changing your own project.","Build one relevant C# sample with dotnet build and examine the diagnostics."],"considerInstead":[],"requirements":["Choose the branch, SDK, and solution according to the current README; use MSBuild/Visual Studio for the C++ solution."],"limitations":["Costs and limits of free use: Your chosen AI client, publishing, and third-party services may carry separate costs.","Terms of use: MIT, unless a particular sample specifies otherwise.","The README warns that some samples do not reflect accessibility best practices.","C++ projects in WPF-Samples.msbuild.sln require MSBuild/Visual Studio and cannot be built with dotnet build.","The README retains a general section mentioning Visual Studio 2022; it does not replace the separate prerequisites for current main."],"faq":[{"question":"What can you use for free in Microsoft WPF-Samples?","answer":"The official samples are available free of charge without registration."},{"question":"What additional costs might arise with Microsoft WPF-Samples?","answer":"Your chosen AI client, publishing, and third-party services may carry separate costs."},{"question":"What terms of use matter for Microsoft WPF-Samples?","answer":"MIT, unless a particular sample specifies otherwise."},{"question":"Which environment can you use Microsoft WPF-Samples in?","answer":"Tech stack: C# / .NET, WinUI / XAML, WPF. Environment: Windows."},{"question":"How do you get started with Microsoft WPF-Samples?","answer":"Choose the sample and branch that match the project's version. Run a suitable example and transfer only the required technique into your XAML/C# code. Check actual behavior, keyboard input, and bindings in your application."},{"question":"What should you consider when choosing Microsoft WPF-Samples?","answer":"main targets .NET 10; the README specifies Visual Studio 2026 18.1 and the current SDK. Release branches cover earlier .NET versions, while netframework covers .NET Framework."},{"question":"How does building current WPF-Samples differ from building an older release branch?","answer":"Current main targets .NET 10 and Visual Studio 2026 18.1; older release/x.x branches specify different SDK/VS requirements. WPF-Samples.sln is intended for dotnet build. WPF-Samples.msbuild.sln includes C++ projects and therefore must be built with MSBuild or Visual Studio: dotnet build does not support C++."}],"related":[],"sources":["https://github.com/microsoft/WPF-Samples/blob/main/README.md","https://github.com/microsoft/WPF-Samples/blob/main/LICENSE","https://developers.openai.com/codex/windows","https://raw.githubusercontent.com/microsoft/WPF-Samples/HEAD/README.md","https://raw.githubusercontent.com/microsoft/WPF-Samples/HEAD/LICENSE"]},"selectionCheckedAt":null,"applicationGuide":{"inputs":["A specific data binding or WPF control behavior to implement.","The project's .NET version and a small reproducible example."],"steps":["Choose the sample and branch that match the project's version.","Run a suitable example and transfer only the required technique into your XAML/C# code.","Check actual behavior, keyboard input, and bindings in your application."],"checks":["The build uses the appropriate SDK and tool; C++ samples are not mixed with ordinary dotnet build.","The sample is not treated as a finished architecture or a guarantee of application accessibility."],"goal":"Example workflow with Microsoft WPF-Samples: Find a working example of data binding and control behavior."},"sources":["https://github.com/microsoft/WPF-Samples/blob/main/README.md","https://github.com/microsoft/WPF-Samples/blob/main/LICENSE","https://developers.openai.com/codex/windows","https://raw.githubusercontent.com/microsoft/WPF-Samples/HEAD/README.md","https://raw.githubusercontent.com/microsoft/WPF-Samples/HEAD/LICENSE"],"checkedAt":"2026-10-03","reviewScope":"Purpose and published terms were reviewed against the cited primary sources. This product page does not confirm execution or testing in every environment.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Official WPF samples","kind":"library","pricingNote":"The official samples are available free of charge without registration. Your chosen AI client, publishing, and third-party services may carry separate costs.","notes":"main targets .NET 10; the README specifies Visual Studio 2026 18.1 and the current SDK. Release branches cover earlier .NET versions, while netframework covers .NET Framework. The README warns that some samples do not reflect accessibility best practices. C++ projects in WPF-Samples.msbuild.sln require MSBuild/Visual Studio and cannot be built with dotnet build. These are examples of APIs and behavior, rather than a complete product architecture.","labeledSources":[{"url":"https://github.com/microsoft/WPF-Samples/blob/main/README.md","label":"Documentation"},{"url":"https://github.com/microsoft/WPF-Samples/blob/main/LICENSE","label":"License"},{"url":"https://developers.openai.com/codex/windows","label":"Documentation"},{"url":"https://raw.githubusercontent.com/microsoft/WPF-Samples/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/microsoft/WPF-Samples/HEAD/LICENSE","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}