Thanks very much that works (or at least it does with my limited testing) Can't see how I missed this event. It's what I was looking for.
Must need to get my eyes checked again. It is visible before it is triggered. It would be better if it wasn't but you can have everything. Regards Peter From: [email protected] [mailto:[email protected]] On Behalf Of Matt Siebert Sent: Monday, 11 July 2011 6:25 AM To: ozDotNet Subject: Re: WPF Setting ScaleTransform values Try the Window.ContentRendered <http://msdn.microsoft.com/en-us/library/system.windows.window.contentrender ed.aspx> event. When this even fires all the layout should be done, but I'm not sure if it'll be visible to the user before resizing. On Sun, Jul 10, 2011 at 9:52 PM, Peter Maddin <[email protected]> wrote: >> 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
