/// <summary> /// Receive extra updates from the shadow node. /// </summary> /// <param name="root">The root view.</param> /// <param name="extraData">The extra data.</param> public override void UpdateExtraData(RichTextBlock root, object extraData) { base.UpdateExtraData(root, extraData); if (extraData is ReactTextShadowNode textNode) { textNode.UpdateTextBlock(root); } AccessibilityHelper.OnElementChanged(root); }
public void SetDisplay(TFrameworkElement view, string display) { view.Visibility = display == "none" ? Visibility.Collapsed : Visibility.Visible; AccessibilityHelper.OnElementChanged(view, UIElement.VisibilityProperty); }