Skip to content

Commit e36e499

Browse files
authored
[XAML] Fix exception in WholeItemsPanel (#8839)
1 parent 7c0f6d7 commit e36e499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/uwp/SharedRenderer/lib/WholeItemsPanel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ namespace winrt::AdaptiveCards::Rendering::Xaml_Rendering::implementation
354354
for (auto child : panel.Children())
355355
{
356356
// Subgroups (columns) are implemented with WholeItemsPanel
357-
if (auto childAsWholeItemPanel = child.as<winrt::WholeItemsPanel>())
357+
if (auto childAsWholeItemPanel = child.try_as<winrt::WholeItemsPanel>())
358358
{
359359
if (childAsWholeItemPanel.IsTruncated())
360360
{

0 commit comments

Comments
 (0)