Fix toolbar label placement #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/toolbar-labels"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
Fixes a cosmetic toolbar bug where the field labels rendered on the wrong side of their input boxes. Out of the box the toolbar showed
[*.log] Pattern: [0] Lines: ..., making it look likePattern:labelled the Lines box andLines:labelled the Subfolders checkbox.Root cause: the toolbar controls were each
DockPanel.Dock="Right". ADockPanelplaces right-docked children from the right edge inward in XAML order, so the box (written after its label) rendered to the left of its label. The result was every label appearing to belong to the field on its right instead of its left.The fix wraps the right-hand controls in a single horizontal
StackPanellisted in natural left-to-right order, which renders as:Control names and
Clickhandlers are unchanged - this is a layout-only change with no logic impact.How was this tested?
dotnet build Tayler.slnx -c Debug- 0 errors, 0 warnings (WarningsAsErrors active; Release builds clean too).StackPanellays children out left-to-right in declared order, so each label now precedes its field.Checklist