void Detach() { _textProperty.Detach(OnTextChanged); _isPasswordProperty.Detach(OnTextChanged); _internalTextProperty.Detach(OnInternalTextChanged); _caretIndexProperty.Detach(OnCaretIndexChanged); _colorProperty.Detach(OnColorChanged); _preferredTextLengthProperty.Detach(OnCompleteLayoutGetsInvalid); HasFocusProperty.Detach(OnHasFocusChanged); FontFamilyProperty.Detach(OnFontChanged); FontSizeProperty.Detach(OnFontChanged); }
void Detach() { _contentProperty.Detach(OnContentChanged); _wrapProperty.Detach(OnLayoutPropertyChanged); _scrollProperty.Detach(OnLayoutPropertyChanged); HorizontalAlignmentProperty.Detach(OnLayoutPropertyChanged); VerticalAlignmentProperty.Detach(OnLayoutPropertyChanged); FontFamilyProperty.Detach(OnFontChanged); FontSizeProperty.Detach(OnFontChanged); HorizontalContentAlignmentProperty.Detach(OnLayoutPropertyChanged); VerticalContentAlignmentProperty.Detach(OnLayoutPropertyChanged); }