4 using System
.Windows
.Controls
;
5 using System
.Windows
.Documents
;
10 public partial class Window1
: Window
13 // This is a counter for the number of times the TextChanged fires
14 // for the tbCountingChanges TextBox.
15 private int uiChanges
= 0;
20 // Note that a call to InitializeComponent fires the TextChanged event when tbCountingChnages
21 InitializeComponent();
25 // Event handler for TextChanged Event.
26 private void textChangedEventHandler(object sender
, TextChangedEventArgs args
)
30 tbCounterText
.Text
= uiChanges
.ToString();
32 } // end setChangedFlag