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
- BatchParser.cs
- DmlSqlGenerator.cs
- Char.cs
- MediaContextNotificationWindow.cs
- Freezable.cs
- HandledMouseEvent.cs
- ContentType.cs
- ToolStripSystemRenderer.cs
- WizardPanelChangingEventArgs.cs
- ISO2022Encoding.cs
- TextBoxRenderer.cs
- TraceContextEventArgs.cs
- StringInfo.cs
- DataGridCellAutomationPeer.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XmlKeywords.cs
- PassportAuthenticationEventArgs.cs
- DebugView.cs
- SchemaMerger.cs
- NotifyCollectionChangedEventArgs.cs
- TagElement.cs
- TreeIterators.cs
- AbstractSvcMapFileLoader.cs
- DateTimeStorage.cs
- TextReader.cs
- _SSPIWrapper.cs
- BindableAttribute.cs
- BridgeDataRecord.cs
- UIElementIsland.cs
- StreamInfo.cs
- TcpConnectionPool.cs
- WebPartConnectionsConnectVerb.cs
- InheritanceAttribute.cs
- AdPostCacheSubstitution.cs
- ApplicationDirectory.cs
- XmlSchemaSequence.cs
- StdValidatorsAndConverters.cs
- SmiRecordBuffer.cs
- Resources.Designer.cs
- PanelContainerDesigner.cs
- InvalidOleVariantTypeException.cs
- TransformPatternIdentifiers.cs
- AssemblyUtil.cs
- ContentHostHelper.cs
- PresentationAppDomainManager.cs
- ResourceReferenceExpressionConverter.cs
- DbLambda.cs
- LinkLabel.cs
- Floater.cs
- OutputCacheSection.cs
- BindingContext.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- TabItemAutomationPeer.cs
- versioninfo.cs
- EditorPartChrome.cs
- HelpProvider.cs
- SoapTypeAttribute.cs
- CustomSignedXml.cs
- DataGridColumnCollection.cs
- grammarelement.cs
- DrawingAttributeSerializer.cs
- EnumMemberAttribute.cs
- WebPartDesigner.cs
- SessionParameter.cs
- Accessible.cs
- BaseResourcesBuildProvider.cs
- manifestimages.cs
- Compiler.cs
- URLMembershipCondition.cs
- EdmToObjectNamespaceMap.cs
- WebPartChrome.cs
- ActivationWorker.cs
- WorkflowDesigner.cs
- ResXFileRef.cs
- FramingFormat.cs
- DynamicResourceExtensionConverter.cs
- XMLSchema.cs
- MouseActionValueSerializer.cs
- CompilationSection.cs
- StorageRoot.cs
- ClientRolePrincipal.cs
- QueryExpr.cs
- FormsAuthenticationCredentials.cs
- GacUtil.cs
- WsatEtwTraceListener.cs
- PropertyBuilder.cs
- SqlUtil.cs
- Privilege.cs
- MenuItemBindingCollection.cs
- TreeViewTemplateSelector.cs
- ResourcePart.cs
- TextOutput.cs
- _ScatterGatherBuffers.cs
- BindingUtils.cs
- DataPagerFieldItem.cs
- SequenceDesignerAccessibleObject.cs
- ContractMapping.cs
- SignedXml.cs
- SqlSupersetValidator.cs
- CodeTypeDelegate.cs