RefreshDisplay() public method

public RefreshDisplay ( ) : void
return void
Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        public void Refresh()
        {
            SuppressSettingProperty = true;

            mTextBoxLogic.RefreshDisplay();

            this.Label.Content = InstanceMember.DisplayName;
            this.RefreshContextMenu(TextBox.ContextMenu);

            SuppressSettingProperty = false;
        }
Exemplo n.º 3
0
        public void Refresh(bool forceRefreshEvenIfFocused = false)
        {
            SuppressSettingProperty = true;

            mTextBoxLogic.RefreshDisplay();


            this.Label.Text = InstanceMember.DisplayName;
            this.RefreshContextMenu(TextBox.ContextMenu);

            SuppressSettingProperty = false;
        }
Exemplo n.º 4
0
        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;
            }
        }