Please ignore the previous patch, review the new patch instead. Sorry for the inconvenience.
The previous patch did not handle the situation when StyleSheetTheme should affect a control created by template (as ImageButton inside LoginView). To find out the correct flow, I subclassed an ImageButton in dotnet, and watched the order in which the following methods were called: EnsureChildControls, OnPreRender, OnLoad, OnInit, ApplyStyleSheetSkin, set_ImageUrl In current mono implementation theme is applied for all the control hierarchy before applying the master page. But at this stage many controls still don't exist. My previous patch solved problem with master page, but not with contols created during PreRerderRecursiveInternal. This patch solves the problem and removes code duplication for recursion. If no one objects, I will commit. Thank you. Andrew. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Andrew Skiba > Sent: Sunday, April 23, 2006 11:46 > To: mono-devel-list@lists.ximian.com > Subject: [Mono-dev] System.Web.UI.Page patch > > The attached patch fixes the flow for themes combined with > master pages. > If no one objects, I will commit. >
ApplyTheme.patch
Description: ApplyTheme.patch
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list