Inheritance: ObservableObject
Exemplo n.º 1
0
 public TextBox()
 {
     this.textState = new RichTextEditor();
     this.Height    = 1;
     CanFocus       = true;
     this.Focused.SubscribeForLifetime(TextBox_Focused, this.LifetimeManager);
     this.Unfocused.SubscribeForLifetime(TextBox_Unfocused, this.LifetimeManager);
     textState.SubscribeForLifetime(nameof(textState.CurrentValue), TextValueChanged, this.LifetimeManager);
     KeyInputReceived.SubscribeForLifetime(OnKeyInputReceived, this.LifetimeManager);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new text box
 /// </summary>
 public TextBox()
 {
     this.textState = new RichTextEditor();
     this.Height = 1;
     this.Width = 15;
     CanFocus = true;
     this.Focused.SubscribeForLifetime(TextBox_Focused, this.LifetimeManager);
     this.Unfocused.SubscribeForLifetime(TextBox_Unfocused, this.LifetimeManager);
     textState.SubscribeForLifetime(nameof(textState.CurrentValue), TextValueChanged, this.LifetimeManager);
     KeyInputReceived.SubscribeForLifetime(OnKeyInputReceived, this.LifetimeManager);
 }
Exemplo n.º 3
0
 public RichTextStateConsole(RichTextEditor state)
 {
     this.state = state;
 }
Exemplo n.º 4
0
 public RichTextStateConsole(RichTextEditor state)
 {
     this.state = state;
 }