/// <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);
        }
示例#2
0
 public void SetDisplay(TFrameworkElement view, string display)
 {
     view.Visibility = display == "none" ? Visibility.Collapsed : Visibility.Visible;
     AccessibilityHelper.OnElementChanged(view, UIElement.VisibilityProperty);
 }