private void SelectionChanged() { if (Tokens == null) return; // CoerceValueCallback is not available in Windows Phone (FrameworkPropertyMetadata is not available) CaretIndex = SelectionEnd; UpdateStyles(); }