Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LogConverter.cs
- Version.cs
- WebPartsSection.cs
- TrackingMemoryStreamFactory.cs
- GeometryHitTestResult.cs
- GeneralTransform3DTo2DTo3D.cs
- ObjectIDGenerator.cs
- ListSortDescriptionCollection.cs
- StaticContext.cs
- GeneralTransform2DTo3D.cs
- ObjectPersistData.cs
- MetadataPropertyCollection.cs
- RegisteredExpandoAttribute.cs
- Stylus.cs
- VSWCFServiceContractGenerator.cs
- TileBrush.cs
- assemblycache.cs
- WorkflowRuntimeServiceElementCollection.cs
- AssemblySettingAttributes.cs
- OleDbCommand.cs
- TypeUsage.cs
- DynamicActivityProperty.cs
- Viewport2DVisual3D.cs
- SendParametersContent.cs
- _RequestLifetimeSetter.cs
- HttpCapabilitiesBase.cs
- ListChangedEventArgs.cs
- ForwardPositionQuery.cs
- XmlTextReaderImplHelpers.cs
- RenderCapability.cs
- XmlSignatureManifest.cs
- OutputCacheModule.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- FormViewRow.cs
- Int32CollectionConverter.cs
- WebConfigurationHostFileChange.cs
- BindingWorker.cs
- TraceListener.cs
- ConnectionAcceptor.cs
- shaperfactory.cs
- TcpTransportSecurityElement.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- XmlAttributeCache.cs
- SecurityPermission.cs
- StreamResourceInfo.cs
- PeerNameRecord.cs
- Html32TextWriter.cs
- DrawingCollection.cs
- PageFunction.cs
- log.cs
- GenericPrincipal.cs
- EventMappingSettingsCollection.cs
- QueryOutputWriter.cs
- RenderCapability.cs
- CodeTypeMember.cs
- CodeLinePragma.cs
- LocatorPart.cs
- DecimalConverter.cs
- ColorContext.cs
- FileFormatException.cs
- SubMenuStyleCollection.cs
- Oci.cs
- DataControlExtensions.cs
- XPathQilFactory.cs
- ListViewDeleteEventArgs.cs
- AppDomainAttributes.cs
- UnwrappedTypesXmlSerializerManager.cs
- DispatcherSynchronizationContext.cs
- ThreadSafeList.cs
- EdmFunction.cs
- SHA512Managed.cs
- EntityContainer.cs
- Privilege.cs
- SqlMethodTransformer.cs
- ReflectionTypeLoadException.cs
- TrustManagerPromptUI.cs
- ContractNamespaceAttribute.cs
- PackageProperties.cs
- SizeAnimation.cs
- GroupBoxRenderer.cs
- TcpDuplicateContext.cs
- TextServicesContext.cs
- ProfileEventArgs.cs
- BuiltInExpr.cs
- ViewCellSlot.cs
- Evaluator.cs
- CaseInsensitiveComparer.cs
- FreezableDefaultValueFactory.cs
- SocketPermission.cs
- NavigationCommands.cs
- ToolStripContentPanel.cs
- UnescapedXmlDiagnosticData.cs
- DataGridDesigner.cs
- FrameworkObject.cs
- WorkflowInstance.cs
- Identity.cs
- ParseNumbers.cs
- FixedSOMTable.cs
- Section.cs
- BamlBinaryWriter.cs