void Init() { _cursorBlinkTimer = new Timer(CursorBlinkHandler); _textProperty = new SProperty(typeof(string), string.Empty); _isPasswordProperty = new SProperty(typeof(bool), false); _caretIndexProperty = new SProperty(typeof(int), 0); _internalTextProperty = new SProperty(typeof(string), string.Empty); _colorProperty = new SProperty(typeof(Color), Color.Black); _preferredTextLengthProperty = new SProperty(typeof(int?), null); _textAlignProperty = new SProperty(typeof(HorizontalAlignmentEnum), HorizontalAlignmentEnum.Left); _cursorState = TextCursorState.Hidden; // Yes, we can have focus Focusable = true; }