protected override void OnPropertyChanged([CallerMemberName] string propertyName = null) { base.OnPropertyChanged(propertyName); if (propertyName == "Text" && int.TryParse(Text, out int result)) { Text = Mechanics.GetAttributeString(result); } }