private void Update() { var text = Text; if (string.IsNullOrEmpty(text)) { SetPlaceholder(); } else { SetValue(TextBlock.TextProperty, text); } }