예제 #1
0
        private TruncatedConeVisual3D Lier([NotNull] TruncatedConeVisual3D forme, [NotNull] ConeWrapper source)
        {
            BindingOperations.SetBinding(forme, TruncatedConeVisual3D.HeightProperty, new Binding(nameof(source.Hauteur))
            {
                Source = source, Mode = BindingMode.TwoWay
            });
            BindingOperations.SetBinding(forme, TruncatedConeVisual3D.BaseRadiusProperty, new Binding(nameof(source.RayonBase))
            {
                Source = source, Mode = BindingMode.TwoWay
            });
            BindingOperations.SetBinding(forme, TruncatedConeVisual3D.TopRadiusProperty, new Binding(nameof(source.RayonTop))
            {
                Source = source, Mode = BindingMode.TwoWay
            });
            BindingOperations.SetBinding(forme, TruncatedConeVisual3D.ThetaDivProperty, new Binding(nameof(source.ThetaDiv))
            {
                Source = source, Mode = BindingMode.TwoWay
            });

            return((TruncatedConeVisual3D)_Lier(forme, source));
        }
예제 #2
0
 private TruncatedConeVisual3D Convertir([NotNull] ConeWrapper forme) => Lier(new TruncatedConeVisual3D(), forme);