Element scaling in C++
Posted: 13 Mar 2021, 05:42
I'm having trouble figuring out how to apply scale to elements through code in c++.
I found this example in the Gallery sample
But it does nothing for me - the scale of the element doesn't change and if I call immediately after I set scale, it returns the old value.
Could you point me to the right way of doing this?
I found this example in the Gallery sample
Code: Select all
ScaleTransform* rootScale = (ScaleTransform*)mLayoutRoot->GetLayoutTransform();
rootScale->SetScaleX(scale);
rootScale->SetScaleY(scale);Code: Select all
rootScale->GetScaleX()Could you point me to the right way of doing this?
