// ! TextBlock
        public static void Bind(TextBlock tb)
        {
            var textContainer = TextContainerProperty.GetValue(tb);

            var editor = new InternalTextEditorHacker(textContainer, tb, false);

            IsReadOnlyProperty.SetValue(editor._internalTextEditor, true);
            TextViewProperty.SetValue(editor._internalTextEditor, TextContainerTextViewProperty.GetValue(textContainer));
        }
Esempio n. 2
0
 set => SetValue(TextViewProperty, value);