-
Notifications
You must be signed in to change notification settings - Fork 540
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
[UWP] Add support for action overflow #6150
Conversation
Should this file be added? It looks like it's a product of some compilation In reply to: 892048249 Refers to: source/uwp/AdaptiveCardsObjectModel/AdaptiveCards.ObjectModel.Uwp.h:1 in cd79747. [](commit_id = cd79747, deletion_comment = False) |
It should not. Unfortunately it was accidently added to this branch before it was added to .gitignore in another change list. Now i can't get git to notice I'm deleting it to remove it from this change list even if i take it out of the .gitignore. I might have to delete it in a separate change to un-confuse git. In reply to: 892048249 Refers to: source/uwp/AdaptiveCardsObjectModel/AdaptiveCards.ObjectModel.Uwp.h:1 in cd79747. [](commit_id = cd79747, deletion_comment = False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
largely looks good. this was a ton a work!
Co-authored-by: Paul Campbell <paulcam@microsoft.com>
Co-authored-by: Paul Campbell <paulcam@microsoft.com>
Co-authored-by: Paul Campbell <paulcam@microsoft.com>
* [UWP] Add support for action overflow * PR Feedback * Update source/uwp/Renderer/lib/ActionHelpers.cpp Co-authored-by: Paul Campbell <paulcam@microsoft.com> * Update source/uwp/Renderer/lib/ActionHelpers.cpp Co-authored-by: Paul Campbell <paulcam@microsoft.com> * Update source/uwp/Renderer/lib/AdaptiveHostConfig.cpp Co-authored-by: Paul Campbell <paulcam@microsoft.com> * PR feedback Co-authored-by: Paul Campbell <paulcam@microsoft.com>
Related Issue
Fixes #5494
Fixes #5495
Description
Add support for action overflow to UWP. The majority of the code in this PR is in aid of supporting the spec'd show card behavior where a show card in an overflow menu needs to switch places with the last primary button when invoked. This required more logic and bookkeeping around show card actions.
As part of that bookkeeping, more information needed to be registered with the render context via AddInlineShowCard. Because of that, that function started to feel more implementation specific than felt right for the public API surface. With this change, hosts who are custom rendering ActionSets (not individual actions) will need to manage their own inline show cards. This seems like a reasonable requirement for a host custom rendering the entire action set.
Sample Card
Moved the existing sample card to the Test directory and added some more cases to it. Created a new sample card in elements to be the sample for the webpage. With this change the two sample cards for overflow are:
\samples\v1.5\Elements\Action.Mode.json
samples\v1.5\Test\ActionModeTestCard.json
How Verified
Microsoft Reviewers: Open in CodeFlow