c# - One ScaleTransform to a group of layers -


here's want - given couple of [image] layers inside scrollviewer, i'd apply same scaling factor layers.

in xaml, have scroll viewer hosts grid hosts 2 image controls. have checkbox controls visibility of top image. right now, have scaletransform each image, , apply same scale both.

is there way unify scaling in 1 container?

sure can apply scale transform @ higher level, e.g. apply grid.

    <grid.layouttransform>       <transformgroup>         <scaletransform scalex="1.0" scaley="1.0"/>       </transformgroup>     </grid.layouttransform> 

that automatically propagate transform down child ends inside grid.

regards, donovan


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -