public void Refresh(bool forceRefreshEvenIfFocused = false) { // If the user is editing a value, we don't want to change // the value under the cursor // If we're default, then go ahead and change the value bool canRefresh = this.TextBox.IsFocused == false || forceRefreshEvenIfFocused || mTextBoxLogic.InstanceMember.IsDefault; if (canRefresh) { SuppressSettingProperty = true; mTextBoxLogic.RefreshDisplay(); this.Label.Text = InstanceMember.DisplayName; this.RefreshContextMenu(TextBox.ContextMenu); HintTextBlock.Visibility = !string.IsNullOrEmpty(InstanceMember?.DetailText) ? Visibility.Visible : Visibility.Collapsed; HintTextBlock.Text = InstanceMember?.DetailText; RefreshIsEnabled(); SuppressSettingProperty = false; } }
public void Refresh() { SuppressSettingProperty = true; mTextBoxLogic.RefreshDisplay(); this.Label.Content = InstanceMember.DisplayName; this.RefreshContextMenu(TextBox.ContextMenu); SuppressSettingProperty = false; }
public void Refresh(bool forceRefreshEvenIfFocused = false) { SuppressSettingProperty = true; mTextBoxLogic.RefreshDisplay(); this.Label.Text = InstanceMember.DisplayName; this.RefreshContextMenu(TextBox.ContextMenu); SuppressSettingProperty = false; }
public void Refresh(bool forceRefreshEvenIfFocused = false) { // If the user is editing a value, we don't want to change // the value under the cursor // If we're default, then go ahead and change the value bool canRefresh = this.TextBox.IsFocused == false || forceRefreshEvenIfFocused || mTextBoxLogic.InstanceMember.IsDefault; if (canRefresh) { SuppressSettingProperty = true; mTextBoxLogic.RefreshDisplay(); this.Label.Text = InstanceMember.DisplayName; SuppressSettingProperty = false; } }