Here il est écrit:Wpf Geometry.Transform La propriété peut être TransformCollection?
Property Value
Transform
The transformation applied to the Geometry. Note that this value may be a single Transform or a TransformCollection cast as a Transform.
Mais mon code donne une erreur:
myGeometry.Transform = (Transform)new TransformCollection(new Transform[] {
new TranslateTransform(33, 22),
new ScaleTransform(2, 1)
});
Cannot convert type 'System.Windows.Media.TransformCollection' to 'System.Windows.Media.Transform'
Quelqu'un at-il une explication? J'ai peut-être tort?