microsoft / microsoft/WinUI-Gallery

XAML STYLER as a Git-Hook

Open
#1,422 12 comments 0 reactions 0 assignees View on GitHub

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 set xml: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.
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.