private static void OnIsValidateChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { ValidateTextBox validateTextBox = (ValidateTextBox)sender; if (e.Property == IsValidateProperty) { if (Convert.ToBoolean(e.NewValue)) { validateTextBox.BeginValidate(); } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TagTextBox = ((ZdfFlatUI.TagTextBox)(target)); #line 49 "..\..\MainWindow.xaml" this.TagTextBox.AddItem += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.TagTextBox_AddItem); #line default #line hidden return; case 2: this.validateTextBox1 = ((ZdfFlatUI.ValidateTextBox)(target)); return; case 3: this.validateTextBox4 = ((ZdfFlatUI.ValidateTextBox)(target)); return; case 4: this.validateTextBox2 = ((ZdfFlatUI.ValidateTextBox)(target)); return; case 5: this.validateTextBox3 = ((ZdfFlatUI.ValidateTextBox)(target)); return; case 6: this.beginValidate = ((System.Windows.Controls.Button)(target)); #line 77 "..\..\MainWindow.xaml" this.beginValidate.Click += new System.Windows.RoutedEventHandler(this.beginValidate_Click); #line default #line hidden return; case 7: this.button1 = ((System.Windows.Controls.Button)(target)); #line 78 "..\..\MainWindow.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click); #line default #line hidden return; case 8: this.ShowInfo = ((System.Windows.Controls.Button)(target)); #line 82 "..\..\MainWindow.xaml" this.ShowInfo.Click += new System.Windows.RoutedEventHandler(this.Show_Click); #line default #line hidden return; case 9: this.ShowWarn = ((System.Windows.Controls.Button)(target)); #line 84 "..\..\MainWindow.xaml" this.ShowWarn.Click += new System.Windows.RoutedEventHandler(this.Show_Click); #line default #line hidden return; case 10: this.ShowError = ((System.Windows.Controls.Button)(target)); #line 86 "..\..\MainWindow.xaml" this.ShowError.Click += new System.Windows.RoutedEventHandler(this.Show_Click); #line default #line hidden return; case 11: this.ShowSuccess = ((System.Windows.Controls.Button)(target)); #line 88 "..\..\MainWindow.xaml" this.ShowSuccess.Click += new System.Windows.RoutedEventHandler(this.Show_Click); #line default #line hidden return; case 12: this.noticeMessage = ((ZdfFlatUI.NoticeMessage)(target)); return; } this._contentLoaded = true; }