private static void ModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ControlChamps control = d as ControlChamps;

            if (control != null && e.NewValue is MODE_COMPOSANT_REFERENTIIEL)
            {
                control.ModeChanged((MODE_COMPOSANT_REFERENTIIEL)e.NewValue);
            }
        }
        private static void CollectionChampsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ControlChamps controlChamps = d as ControlChamps;

            if (controlChamps != null)
            {
                controlChamps.BuildChampControl(e.NewValue as Champs);
                controlChamps.ModeChanged(controlChamps.Mode);
            }
        }