microsoft / microsoft/WinUI-Gallery
XAML STYLER as a Git-Hook
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 756
- Avg merge
- 17h 51m
- Merged PRs (30d)
- 14
Description
Issue type
enhancement
Which version of the app?
WinUI 3 Gallery
Description
https://github.com/Xavalon/XamlStyler/wiki/Git-Hook
Additional context
- Do we need a Settings.XamlStyler file? If yes, which settings would be different?
### Tasks
- [ ] ❔ Settings.XamlStyler file
- [ ] prepare <elements> with `space=preserve`
- [ ] let XamlStyler do its magic* 🪄
- [ ] check content of <elements> ... think manual line endings and LineBreaks 🕵🏻♂️
[!NOTE]
Need to setxml:space="preserve"in elements first, in order to prevent the following:
In a paragraph of text, a <Hyperlink> or a <Bold> will be stripped of a preceding space. By contrast, a period following a </Hyperlink> or a </Bold> wil be placed on a new line. This will insert a [space] in the UI.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the XAML Styler Git-Hook and whitespace references linked in the issue, then inspect the Gallery’s XAML content and any existing Settings.XamlStyler configuration. Determine whether settings are needed, preserve spaces around inline elements, and verify line endings and rendered text. Done means the hook formats the relevant content without changing displayed spacing.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100