C# Class DvachBrowser.Assets.Controls.TextBinding

Supports a PropertyChanged-Trigger for DataBindings Works for only TextBoxes and PasswordBoxes <TextBox Text="{Binding FirstName, Mode=TwoWay}" local:TextBinding.UpdateSourceOnChange="True" /> Code is based by Thomas Huber http://www.thomasclaudiushuber.com/blog/2009/07/17/here-it-is-the-updatesourcetrigger-for-propertychanged-in-silverlight/ Idea for allowing PasswordBox as well is from Dele Olowoyo http://www.pragmaticpattern.wordpress.com http://www.dcubeapps.com .
Afficher le fichier Open project: vortexwolf/2ch-Browser-WP7

Méthodes publiques

Свойство Type Description
UpdateSourceOnChangeProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
GetUpdateSourceOnChange ( DependencyObject obj ) : bool
SetUpdateSourceOnChange ( DependencyObject obj, bool value ) : void

Private Methods

Méthode Description
GetDependancyPropertyForText ( object sender ) : DependencyProperty
HandleUpdateSourceOnChangeEventAppend ( object sender, bool value ) : void
HandleUpdateSourceOnChangeEventAppendPassword ( object sender, bool value ) : void
HandleUpdateSourceOnChangeEventAppendTextBox ( object sender, bool value ) : void
OnUpdateSourceOnChangePropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void
UpdateSourceOnChangePropertyChanged ( object sender, RoutedEventArgs e ) : void

Method Details

GetUpdateSourceOnChange() public static méthode

public static GetUpdateSourceOnChange ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Résultat bool

SetUpdateSourceOnChange() public static méthode

public static SetUpdateSourceOnChange ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

Property Details

UpdateSourceOnChangeProperty public_oe static_oe property

public static DependencyProperty,System.Windows UpdateSourceOnChangeProperty
Résultat System.Windows.DependencyProperty