private int selectionIndex; // 失去焦点时,光标的字符位置 public TextNode(MessageNodeList NodeList, string initText) : base(NodeList) { EditBox = new TextBox { Text = initText, TextWrapping = TextWrapping.Wrap, AcceptsReturn = true, Width = 600, HorizontalAlignment = HorizontalAlignment.Center, BorderThickness = new Thickness { Top = 2, Left = 2, Right = 2, Bottom = 2 }, BorderBrush = App.Current.Resources["SystemControlAltLowAcrylicElementBrush"] as Brush }; EditBox.GotFocus += GotFocus; EditBox.LostFocus += LostFocus; }
public PicTextEditor() { NodeList = new MessageNodeList(ReLayout); NodeList.Add(new TextNode(NodeList, "酷安 UWP 图文编辑器")); }
public NodeBase(MessageNodeList RootList) => this.RootList = RootList;