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 .
ファイルを表示 Open project: vortexwolf/2ch-Browser-WP7

Public Properties

Property Type Description
UpdateSourceOnChangeProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetUpdateSourceOnChange ( DependencyObject obj ) : bool
SetUpdateSourceOnChange ( DependencyObject obj, bool value ) : void

Private Methods

Method 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 method

public static GetUpdateSourceOnChange ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

SetUpdateSourceOnChange() public static method

public static SetUpdateSourceOnChange ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
return void

Property Details

UpdateSourceOnChangeProperty public_oe static_oe property

public static DependencyProperty,System.Windows UpdateSourceOnChangeProperty
return System.Windows.DependencyProperty