>> I'll play with this on the weekend as well and I'll report when I find
the answer.

 

Wondering if you worked this out.

 

I am using a scale transform on a window which has a number of embedded user
controls.

The window and user controls scales ok when I resize the window.

However if a client scales the window I would like to save and assert this
when they close and open the application again.

I need to apply the transform and all the user controls have finished being
rendered.

 

I tried using several events (loaded, activated, IsVisibleChanged) but the
scaling of some user controls did not render correctly.

I need to handle this once after the application has finished loading the
window and user controls and these  are all visible.

 

Is there a simple way to handle this?

 

Regards Peter

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Greg Keogh
Sent: Thursday, 7 July 2011 4:26 PM
To: 'ozDotNet'
Subject: RE: WPF Setting ScaleTransform values

 

imgWatermark.RenderTransform).Children[1] = new ScaleTransform(0,0,0,0);

 

Sadly, it didn't work, neither did calling the Setter methods.

 

Matt, oh boy! ... I'll play with this on the weekend as well and I'll report
when I find the answer. It's not blocking my progress of course, but I'll
return to the problem when my spirits are higher, or I'm high on spirits.

 

Greg

Reply via email to