Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
MartyIX committed Jul 26, 2024
1 parent dc0c065 commit 84ed8e9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ public static void SetAutomationPropertiesAutomationId(this FrameworkElement Con

var newValue = _defaultAutomationPropertiesAccessibilityView;

var elemValue = (bool?)Element.GetValue(AutomationProperties.IsInAccessibleTreeProperty);
bool? elemValue = null;

if (!Element.IsPlatformViewNew)
{
elemValue = (bool?)Element.GetValue(AutomationProperties.IsInAccessibleTreeProperty);
}

if (elemValue == true)
{
Expand Down

0 comments on commit 84ed8e9

Please sign in to comment.