Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
Apxov merged 2 commits into
mainfrom
u/cmcguire/RootContainerStyle
May 15, 2024
Merged

Move root container style override so that Margin override is possible#8913
Apxov merged 2 commits into
mainfrom
u/cmcguire/RootContainerStyle

Conversation

@Apxov

@Apxov Apxov commented May 14, 2024

Copy link
Copy Markdown
Contributor

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.

Comment thread source/uwp/SharedRenderer/lib/XamlBuilder.cpp Outdated
…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
@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