Skip to content

Add opt-in AP to control margins in menu variants#3760

Merged
Keboo merged 2 commits intomasterfrom
fix3747
Jan 8, 2025
Merged

Add opt-in AP to control margins in menu variants#3760
Keboo merged 2 commits intomasterfrom
fix3747

Conversation

@nicolaihenriksen
Copy link
Contributor

Fixes #3747

This PR adds an attached property, MenuAssist.MenuItemsPresenterMargin, which can be used to control the "margin on the ItemsPresenter" of the menu variants. Technically it is applied on a Grid one level above, but the effect is the same.

This allows consumers to control the margin as they see fit. The AP defaults to "0, 16" which was the value previously hardcoded in the templates.

I have also aligned the "menus" pages of the demo apps, and showcased usage of the new AP in there.

@nicolaihenriksen nicolaihenriksen changed the title Fix3747 Add opt-in AP to control margins in menu variants Jan 7, 2025
@Keboo Keboo added this to the 5.2.1 milestone Jan 8, 2025
@Keboo Keboo merged commit aca6b24 into master Jan 8, 2025
2 checks passed
@Keboo Keboo deleted the fix3747 branch January 8, 2025 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the space for the scrollbar in MenuTemplate

2 participants