TryApplyToInstance() public method

public TryApplyToInstance ( ) : ApplyValueResult
return ApplyValueResult
        private void TextBox_LostFocus_1(object sender, RoutedEventArgs e)
        {
            var result = mTextBoxLogic.TryApplyToInstance();

            if (result == ApplyValueResult.NotSupported)
            {
                this.IsEnabled = false;
            }
        }
Beispiel #2
0
        private void ApplyTextBoxText()
        {
            //todo: set the slider value==


            // This also applies to instance, but it stores
            // the value in the text box logic so ESC works properly
            mTextBoxLogic.TryApplyToInstance();
        }
        private void ApplyTextBoxText()
        {
            float value;

            if (float.TryParse(this.TextBox.Text, out value))
            {
                Angle = value;
            }

            // This also applies to instance, but it stores
            // the value in the text box logic so ESC works properly
            mTextBoxLogic.TryApplyToInstance();
        }
Beispiel #4
0
        private void TextBox_LostFocus_1(object sender, RoutedEventArgs e)
        {
            lastApplyValueResult = mTextBoxLogic.TryApplyToInstance();

            RefreshIsEnabled();
        }