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; } }
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(); }
private void TextBox_LostFocus_1(object sender, RoutedEventArgs e) { lastApplyValueResult = mTextBoxLogic.TryApplyToInstance(); RefreshIsEnabled(); }