XAML Custom Textbox Events and Properties not Updating in Real Time
问题 After a creating and changing my custom Win 8.1/UWP TextBox control to inherit from TextBox and wiring up the TextChanged event, the Text property is not accurate when subscribing to the TextChanged event. Here's my control: [TemplatePart(Name = "PART_ctlTextBox", Type = typeof(TextBox))] public class CustomTextBox : Control { public CustomTextBox() { DefaultStyleKey = typeof(CustomTextBox); } protected override void OnApplyTemplate() { base.OnApplyTemplate(); var textBox = GetTemplateChild(