Search found 2 matches

by Astalozar
16 Mar 2021, 07:12
Forum: General Discussion
Replies: 4
Views: 1337

Re: Element scaling in C++

Problem solved, thank you!

I missed that I had to add the ScaleTrasnsform object in the .xaml file.
New to this language, there's a lot to take in

Thank you for you help!
by Astalozar
13 Mar 2021, 05:42
Forum: General Discussion
Replies: 4
Views: 1337

Element scaling in C++

I'm having trouble figuring out how to apply scale to elements through code in c++. I found this example in the Gallery sample ScaleTransform* rootScale = (ScaleTransform*)mLayoutRoot->GetLayoutTransform(); rootScale->SetScaleX(scale); rootScale->SetScaleY(scale); But it does nothing for me - the sc...