Closed HppZ closed 5 years ago
Read about it here:
https://github.com/Microsoft/WindowsCompositionSamples/issues/145#issuecomment-240457826
and here (at the bottom, Translation Property section):
This was added after Composition came out. That is why Offset exists alongside Translation. Translation does not exist on a Visual, SetIsTranslationEnabled
injects the property instead.
thanks @Massimo37
👍
why don't you just add Translation property on Visual? and
ElementCompositionPreview.SetIsTranslationEnabled
this API looks strange.visual.StartAnimation("Translation.Y", animation);
since there is no Translation on Visual, why we can StartAnimation on Translation.Y?