private void button1_Click(object sender, RoutedEventArgs e) { SAO_Widget saoSpecturm = new SpectrumWidget(saoPlayer); attach(saoSpecturm); saoSpecturm.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window = ((SAO_Player.SpectrumWidget)(target)); return; case 2: this.specturm = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }