Skip to content

Commit

Permalink
[XAML] Fix exception in WholeItemsPanel (#8839)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcam206 committed Feb 29, 2024
1 parent d583aea commit f04be02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/uwp/SharedRenderer/lib/WholeItemsPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ namespace winrt::AdaptiveCards::Rendering::Xaml_Rendering::implementation
for (auto child : panel.Children())
{
// Subgroups (columns) are implemented with WholeItemsPanel
if (auto childAsWholeItemPanel = child.as<winrt::WholeItemsPanel>())
if (auto childAsWholeItemPanel = child.try_as<winrt::WholeItemsPanel>())
{
if (childAsWholeItemPanel.IsTruncated())
{
Expand Down

0 comments on commit f04be02

Please sign in to comment.