Browse Source

UpDownBase: found issue in .NET 3.5 version with updating text.

pull/1645/head
brianlagunas_cp 16 years ago
parent
commit
a2ba2885ec
  1. 7
      ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/Core/Primitives/UpDownBase.cs

7
ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/Core/Primitives/UpDownBase.cs

@ -74,7 +74,7 @@ namespace Microsoft.Windows.Controls.Primitives
} }
protected virtual T OnCoerceValue(T value) protected virtual T OnCoerceValue(T value)
{ {
return value; return value;
} }
@ -92,7 +92,7 @@ namespace Microsoft.Windows.Controls.Primitives
RoutedPropertyChangedEventArgs<T> args = new RoutedPropertyChangedEventArgs<T>(oldValue, newValue); RoutedPropertyChangedEventArgs<T> args = new RoutedPropertyChangedEventArgs<T>(oldValue, newValue);
args.RoutedEvent = ValueChangedEvent; args.RoutedEvent = ValueChangedEvent;
RaiseEvent(args); RaiseEvent(args);
} }
#endregion //Value #endregion //Value
@ -259,7 +259,8 @@ namespace Microsoft.Windows.Controls.Primitives
#if VS2008 #if VS2008
//there is a bug in .NET 3.5 which will not correctly update the textbox text through binding. //there is a bug in .NET 3.5 which will not correctly update the textbox text through binding.
TextBox.Text = Text; if (TextBox != null)
TextBox.Text = Text;
#endif #endif
_isSyncingTextAndValueProperties = false; _isSyncingTextAndValueProperties = false;

Loading…
Cancel
Save