private static void TextBoxWFElementChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { logger.I("Amun's properties changed: from " + e.OldValue + " to " + e.NewValue); AmunTextBox ctrl = d as AmunTextBox; ctrl.SetupTextBoxWFProperties(); }
private static void TabStopSourceCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { logger.I("Amun's tab stop source changed!"); AmunTextBox ctrl = d as AmunTextBox; IEnumerable <int> oldValue = (IEnumerable <int>)e.OldValue; IEnumerable <int> newValue = (IEnumerable <int>)e.NewValue; ctrl.OnTabStopSourceChanged(oldValue, newValue); }
private static void TextChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { AmunTextBox ctrl = d as AmunTextBox; logger.I("Amun's Text changed: IsNeedUpdateTextBoxWFElement = " + ctrl.IsNeedUpdateTextBoxWFElement); if (ctrl.IsNeedUpdateTextBoxWFElement) { ctrl.UpdateText(e.NewValue as string); } }