I have a grid with many text fields, and I want to call a method NotifyPropertyChanged()to update some other controls every time one of these text fields changes value = lost focus ( I don't want > to use PropertyChangedhow UpdateSourceTrigger)
NotifyPropertyChanged()
PropertyChanged
UpdateSourceTrigger
This is what I can do:
<Grid TextBoxBase.TextChanged="My_TextChanged" > ... </Grid>
I need something like:
TextBoxBase.OnLostFocus
Use Lost Focus Event
TextBox.LostFocus="OnTextBoxLostFocus"
Filter by text fields;)
private void OnTextBoxLostFocus(object sender, RoutedEventArgs e) { if(!(e.OriginalSource is TextBox)) return; //Do stuff }
, . , , LostFocus .
!
TextBoxBase.LostFocus, , , .
TextBoxBase.LostFocus
: http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.textboxbase_events.aspx - UIElement - UIElement.LostFocus, .
UIElement
UIElement.LostFocus
Source: https://habr.com/ru/post/1751381/More articles:Клавиатура WPF HwndHost - winapiDatabase crash in SQL Server using template - sql-server-2008How to suppress a warning in protected IE mode - uacWindows Services and Multiple Registered Users - .netHow to get related item from ASP.NET repeater - c #The difference between std :: tr1 :: array and boost :: array - c ++Is the HTTPS client-server security method "fairly secure"? - securityReading and Writing Calendar - androidHashtable sorting using (possibly not unique) values - hashtableLua C api: How to load lua files defined as modules? - cAll Articles