From 16dd540052082602e5f99583c4c75c441c751327 Mon Sep 17 00:00:00 2001 From: anna-dingler <98650930+anna-dingler@users.noreply.github.com> Date: Wed, 22 Feb 2023 14:53:38 -0800 Subject: [PATCH] [UWP Renderer] Add title to action when icon is present (#8231) * Switch to gotFocus (#8148) (#8150) * Update custom.props * [UWP] Update custom.props for object model release (#8225) * Update custom.props for object model release * Updated Xcode version (#8222) * removed build step as they are redundant (#8201) * removed build step as they are redundant * added pod installation step Co-authored-by: Joseph Woo * [UWP Renderer] Add a null check to inline action rendering (#8228) * Update custom.props for object model release * Updated Xcode version (#8222) * removed build step as they are redundant (#8201) * removed build step as they are redundant * added pod installation step * Add a null check for inline Actions Co-authored-by: Joseph Woo * Add title to button --------- Co-authored-by: Joseph Woo --- source/uwp/SharedRenderer/lib/ActionHelpers.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/uwp/SharedRenderer/lib/ActionHelpers.cpp b/source/uwp/SharedRenderer/lib/ActionHelpers.cpp index 7526d9bd2f..8fde2003b4 100644 --- a/source/uwp/SharedRenderer/lib/ActionHelpers.cpp +++ b/source/uwp/SharedRenderer/lib/ActionHelpers.cpp @@ -158,6 +158,9 @@ namespace AdaptiveCards::Rendering::Xaml_Rendering::ActionHelpers XamlHelpers::AppendXamlElementToPanel(separator, buttonContentsStackPanel); } + // Add Text to stack panel + XamlHelpers::AppendXamlElementToPanel(buttonText, buttonContentsStackPanel); + // Finally, put the stack panel inside the final button button.Content(buttonContentsStackPanel); }