protected SemanticHeadingLevel GetSemanticHeading(IViewHandler viewHandler) => (SemanticHeadingLevel)AutomationProperties.GetHeadingLevel((FrameworkElement)viewHandler.NativeView);
/// <summary> /// Provides a value for UIAutomation's HeadingLevel property /// Reads <see cref="AutomationProperties.HeadingLevelProperty"/> and returns the value /// </summary> override protected AutomationHeadingLevel GetHeadingLevelCore() { return(AutomationProperties.GetHeadingLevel(_owner)); }