private static void HeightGridChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ReferentielControl control = d as ReferentielControl; if (control != null) { control.dg.SetValue(DataGrid.HeightProperty, Convert.ToDouble(e.NewValue)); } }
private static void HeightControlChampChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ReferentielControl control = d as ReferentielControl; if (control != null) { if (control.Resources["vm"] is ReferentielControlVM) { (control.Resources["vm"] as ReferentielControlVM).ControlChamps.Height = Convert.ToInt32(e.NewValue); } } }
private static void ObserverChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ReferentielControl refControl = d as ReferentielControl; if (refControl != null) { ReferentielControlVM vm = refControl.Resources["vm"] as ReferentielControlVM; if (vm != null) { vm.Client = e.NewValue as IComposantModification; } } }
private static void ChampsUpdated(DependencyObject d, DependencyPropertyChangedEventArgs e) { ReferentielControl refControl = d as ReferentielControl; if (refControl != null) { ReferentielControlVM vm = refControl.Resources["vm"] as ReferentielControlVM; if (vm != null) { vm.ControlChamps.CollectionChamps = e.NewValue as Champs; } } }