void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.PageSpotsRoot = ((UrbexProject.UsersControl.SpotsPage)(target)); return; case 2: this.grid1 = ((System.Windows.Controls.Grid)(target)); return; case 3: this.listeRegion = ((System.Windows.Controls.ListBox)(target)); #line 23 "..\..\..\UsersControl\SpotsPage.xaml" this.listeRegion.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listeRegion_SelectionChanged); #line default #line hidden return; case 4: this.content1 = ((System.Windows.Controls.ContentControl)(target)); return; case 5: this.contentSpot = ((System.Windows.Controls.ContentControl)(target)); return; case 6: this.contentSpot2 = ((System.Windows.Controls.ContentControl)(target)); return; } this._contentLoaded = true; }
private static void OnMaPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { SpotsPage control = source as SpotsPage; control.TestConnexion(); }