private static void CurrentNumberChanged(DependencyObject depObj, DependencyPropertyChangedEventArgs args) { ShowNumberControl s = (ShowNumberControl)depObj; Label theLabel = s.numberDisplay; theLabel.Content = args.NewValue.ToString(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mSNC = ((ITMO.WPF.WpfUserControl6_2.ShowNumberControl)(target)); return; } this._contentLoaded = true; }