Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move root container style override so that Margin override is possible #8913

Merged
merged 2 commits into from
May 15, 2024

Conversation

Apxov
Copy link
Collaborator

@Apxov Apxov commented May 14, 2024

Add a style override to the root container named "Adaptive.RootContainer" so that custom margins can be applied

Description

This style enables a host to set the margins of the container to be other than uniform. This enables the background of the panel to bleed up into the frame for a card that may be contained in UI that provides a title bar.

How Verified

Manually verified in a host that sets an OverrideStyles that contains a style with this name in its dictionary.

…BuildXamlTreeFromAdaptiveCard into CreateRootCardElement where it can test for style use and skip setting the margin from the host context.
@Apxov Apxov merged commit de73c98 into main May 15, 2024
7 checks passed
@Apxov Apxov deleted the u/cmcguire/RootContainerStyle branch May 15, 2024 18:42
@Apxov Apxov changed the title Add a style override to the root container named "Adaptive.RootContainer" Move root container style override so that Margin override is possible May 15, 2024
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.

4 participants