XAML
<TextBox TextChanged="textChangedEventHandler">
Here is the initial text in my TextBox. Each time the contents of this TextBox are changed,
the TextChanged event fires and textChangedEventHandler is called.
</TextBox>
CS
// TextChangedEventHandler delegate method.
private void textChangedEventHandler(object sender, TextChangedEventArgs args)
{
// Omitted Code: Insert code that does something whenever
// the text changes...
} // end textChangedEventHandler
'프로그래밍 > C#' 카테고리의 다른 글
[C#] 리스트에서 랜덤으로 값 가져오기 (0) | 2022.10.11 |
---|---|
[WPF] INotifyPropertyChanged 구현 (0) | 2022.10.07 |
[C#] 디자인패턴-싱글톤 패턴(Singleton Pattern) (0) | 2022.07.03 |
[C#] ? 와 ?? 연산자 (0) | 2022.06.22 |
[C#] 의존성 주입 (Dependency Injection) (0) | 2022.06.06 |