wpf - Find the applied ScaleTransform on a Control or UIElement? -


i have control sitting somewhere in window. @ root of window grid named maingrid. have scaletransform applied on maingrid's layouttransform use zoom in on contents of window when window's size grows. however, 1 of controls usesbitmapcache on canvases optimize drawing performance. bitmapcache not take consideration scaletransforms might applied control, if i'm zoomed in, control appears blurry.

bitmapcache have renderatscale property can use increase scale of cached image. however, problem have don't know of elegant way find out scale value needs be. now, have property on control window can pass scale value control. however, if didn't need rely on external source passing in scale value.

is there way control can summary of scaletransforms applied it?

you can recursively go through of control's parents , sum scaletransform.

i don't think can other way.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -