feat: Add XAML Fundamentals section with pages and examples #1661
+2,128
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces the "XAML Fundamentals" section, including pages and examples for Resources, ResourceDictionary, Theme Resources, XAML Styles, Binding, and Templates, main changes are:
Added
sample code files for Resources, ResourceDictionary, Theme Resources, XAML Styles, Binding, and Templates.Added
new assets for theme resource examples and updated control images.Updated
ControlInfoData.json
to include the new "XAML Fundamentals" section.Added
pages for Resources, ResourceDictionary, Theme Resources, XAML Styles, Binding, and Templates, each with practical examples.Updated
navigation to include the new section and handle its items programmatically.Motivation and Context
I noticed that many learners, especially those new to WinUI 3, often turn to the WinUI 3 Gallery application as their starting point. While the app provides excellent explanations of controls and code samples, it sometimes introduces concepts that may be unfamiliar to beginners.
To address this, I had created a dedicated section in the application called XAML Fundamentals. This section is organized into key topics, including: Resources, ResourceDictionary, Theme Resources, XAML Styles, Binding, and Templates.
The goal is to help learners better understand these foundational concepts by providing clear explanations, practical examples, and links to relevant documentation.
How Has This Been Tested?
This code was tested manually, and no issues were encountered during the testing. The changes are isolated to the new section and do not affect other areas of the app.
Screenshots:
Resouces Page
ResouceDictionary
Theme resources
XAML Styles
Binding
Templates
Types of changes