private static void OnSomeValuePropertyChanged(
            DependencyObject target, DependencyPropertyChangedEventArgs e)
        {
            NumericBox numericBox = target as NumericBox;

            numericBox.TextBoxValue.Text = e.NewValue.ToString();
        }
Пример #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 9 "..\..\ObrasWin.xaml"
     ((Obras.ObrasWin)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.PanelCentral = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.TxtTitulo = ((System.Windows.Controls.TextBox)(target));
     
     #line 28 "..\..\ObrasWin.xaml"
     this.TxtTitulo.LostFocus += new System.Windows.RoutedEventHandler(this.TxtsLostFocus);
     
     #line default
     #line hidden
     return;
     case 4:
     this.TxtNumMaterial = ((System.Windows.Controls.TextBox)(target));
     
     #line 41 "..\..\ObrasWin.xaml"
     this.TxtNumMaterial.LostFocus += new System.Windows.RoutedEventHandler(this.TxtsLostFocus);
     
     #line default
     #line hidden
     
     #line 42 "..\..\ObrasWin.xaml"
     this.TxtNumMaterial.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.TxtsPreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 43 "..\..\ObrasWin.xaml"
     this.TxtNumMaterial.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TxtNumMaterial_PreviewTextInput);
     
     #line default
     #line hidden
     return;
     case 5:
     this.CbxPresentacion = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 6:
     this.TxtNumVolumen = ((NumericUpDownControl.NumericBox)(target));
     return;
     case 7:
     this.TxtIsbn = ((System.Windows.Controls.TextBox)(target));
     
     #line 79 "..\..\ObrasWin.xaml"
     this.TxtIsbn.LostFocus += new System.Windows.RoutedEventHandler(this.TxtIsbn_LostFocus);
     
     #line default
     #line hidden
     
     #line 80 "..\..\ObrasWin.xaml"
     this.TxtIsbn.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.TxtsPreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 81 "..\..\ObrasWin.xaml"
     this.TxtIsbn.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TxtIsbn_PreviewTextInput);
     
     #line default
     #line hidden
     return;
     case 8:
     this.CbxTipoObra = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 9:
     this.TxtYear = ((NumericUpDownControl.NumericBox)(target));
     return;
     case 10:
     this.TxtYear_Copy = ((NumericUpDownControl.NumericBox)(target));
     return;
     case 11:
     this.BtnSalir = ((System.Windows.Controls.Button)(target));
     
     #line 144 "..\..\ObrasWin.xaml"
     this.BtnSalir.Click += new System.Windows.RoutedEventHandler(this.BtnSalir_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.BtnGuardar = ((System.Windows.Controls.Button)(target));
     
     #line 153 "..\..\ObrasWin.xaml"
     this.BtnGuardar.Click += new System.Windows.RoutedEventHandler(this.BtnGuardar_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }