Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / controlskin.cs / 1 / controlskin.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Reflection; using System.Security.Permissions; namespace System.Web.UI { [EditorBrowsable(EditorBrowsableState.Advanced)] public delegate System.Web.UI.Control ControlSkinDelegate(Control control); [EditorBrowsable(EditorBrowsableState.Advanced)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ControlSkin { private Type _controlType; private ControlSkinDelegate _controlSkinDelegate; public ControlSkin(Type controlType, ControlSkinDelegate themeDelegate) { _controlType = controlType; _controlSkinDelegate = themeDelegate; } public Type ControlType { get { return _controlType; } } public void ApplySkin(Control control) { _controlSkinDelegate(control); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Reflection; using System.Security.Permissions; namespace System.Web.UI { [EditorBrowsable(EditorBrowsableState.Advanced)] public delegate System.Web.UI.Control ControlSkinDelegate(Control control); [EditorBrowsable(EditorBrowsableState.Advanced)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ControlSkin { private Type _controlType; private ControlSkinDelegate _controlSkinDelegate; public ControlSkin(Type controlType, ControlSkinDelegate themeDelegate) { _controlType = controlType; _controlSkinDelegate = themeDelegate; } public Type ControlType { get { return _controlType; } } public void ApplySkin(Control control) { _controlSkinDelegate(control); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SystemIPInterfaceProperties.cs
- PageSetupDialog.cs
- ToolStripControlHost.cs
- IdleTimeoutMonitor.cs
- HtmlTableRow.cs
- GB18030Encoding.cs
- PageRequestManager.cs
- TimeSpanConverter.cs
- IPGlobalProperties.cs
- DataControlLinkButton.cs
- BrowserPolicyValidator.cs
- Activation.cs
- RadioButtonList.cs
- FamilyMapCollection.cs
- SystemNetworkInterface.cs
- AsymmetricSignatureFormatter.cs
- ObjectDataSourceStatusEventArgs.cs
- HandleCollector.cs
- DataServiceQueryOfT.cs
- PresentationAppDomainManager.cs
- Html32TextWriter.cs
- InkCanvasAutomationPeer.cs
- MemoryRecordBuffer.cs
- BaseResourcesBuildProvider.cs
- COM2ComponentEditor.cs
- AddInStore.cs
- SecureUICommand.cs
- DataSourceView.cs
- CuspData.cs
- StreamGeometry.cs
- InternalConfigEventArgs.cs
- SchemaConstraints.cs
- FamilyMapCollection.cs
- NetworkInterface.cs
- WinEventQueueItem.cs
- BinaryFormatter.cs
- PackagePartCollection.cs
- OleAutBinder.cs
- HtmlPageAdapter.cs
- LineGeometry.cs
- FormatStringEditor.cs
- DataDocumentXPathNavigator.cs
- NamespaceDisplay.xaml.cs
- FrameworkContentElement.cs
- EntityKeyElement.cs
- transactioncontext.cs
- DrawItemEvent.cs
- StylusPointCollection.cs
- QilStrConcatenator.cs
- GraphicsState.cs
- OracleLob.cs
- ManualResetEvent.cs
- SqlSelectStatement.cs
- DataRecordInfo.cs
- ListItemConverter.cs
- BindingManagerDataErrorEventArgs.cs
- MaskedTextBoxDesigner.cs
- Pkcs7Recipient.cs
- FrameworkContentElement.cs
- TextTreeTextNode.cs
- _LoggingObject.cs
- RegistrySecurity.cs
- DesignSurfaceManager.cs
- PhonemeConverter.cs
- newinstructionaction.cs
- RotateTransform3D.cs
- FixedSOMTableRow.cs
- Int32Converter.cs
- TableLayoutColumnStyleCollection.cs
- KeyGesture.cs
- SqlServer2KCompatibilityCheck.cs
- HttpException.cs
- AppDomainFactory.cs
- UIPermission.cs
- WaitHandle.cs
- Fx.cs
- util.cs
- SafeNativeMethods.cs
- ClientRuntimeConfig.cs
- Material.cs
- BinaryParser.cs
- ObfuscateAssemblyAttribute.cs
- ManagementQuery.cs
- PaperSize.cs
- TimeSpanConverter.cs
- BaseUriWithWildcard.cs
- WebZone.cs
- GregorianCalendar.cs
- ClassHandlersStore.cs
- StackSpiller.Temps.cs
- PageSetupDialog.cs
- IRCollection.cs
- XamlFigureLengthSerializer.cs
- MimeObjectFactory.cs
- CustomLineCap.cs
- ToolStripGripRenderEventArgs.cs
- SponsorHelper.cs
- Atom10FormatterFactory.cs
- DeferredTextReference.cs
- RegexParser.cs