internal void ApplyTheme ()
{
#if MONO_TRACE
TraceContext trace = (Context != null && Context.Trace.IsEnabled) ? Context.Trace : null;
string type_name = null;
if (trace != null) {
type_name = GetType ().Name;
trace.Write ("control", String.Concat ("ApplyThemeRecursive ", _userId, " ", type_name));
}
#endif
Page page = Page;
if (page != null && page.PageTheme != null && EnableTheming) {
ControlSkin controlSkin = page.PageTheme.GetControlSkin (GetType (), SkinID);
if (controlSkin != null)
controlSkin.ApplySkin (this);
}
#if MONO_TRACE
if (trace != null)
trace.Write ("control", String.Concat ("End ApplyThemeRecursive ", _userId, " ", type_name));
#endif
}