Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TextureBrush.cs
- BaseProcessor.cs
- IResourceProvider.cs
- AggregateNode.cs
- NavigatorOutput.cs
- SamlAuthorizationDecisionStatement.cs
- ValueSerializer.cs
- OleDbRowUpdatedEvent.cs
- XamlClipboardData.cs
- DependencyPropertyConverter.cs
- ItemChangedEventArgs.cs
- ReliabilityContractAttribute.cs
- UnknownWrapper.cs
- ServerIdentity.cs
- Container.cs
- SafeFileMappingHandle.cs
- BufferBuilder.cs
- TypeRefElement.cs
- XPathArrayIterator.cs
- Pair.cs
- SapiInterop.cs
- XmlRawWriter.cs
- AttributeCollection.cs
- IISMapPath.cs
- PasswordTextContainer.cs
- DataRowIndexBuffer.cs
- ActivityValidator.cs
- QuadraticEase.cs
- DeploymentSection.cs
- ScriptingWebServicesSectionGroup.cs
- DropDownList.cs
- CorrelationActionMessageFilter.cs
- XmlSchemaComplexContentRestriction.cs
- UrlPath.cs
- FileDialogPermission.cs
- exports.cs
- ToolboxBitmapAttribute.cs
- DecoderNLS.cs
- Condition.cs
- PackageDigitalSignature.cs
- Accessible.cs
- LocationUpdates.cs
- _SingleItemRequestCache.cs
- XmlAnyAttributeAttribute.cs
- AutoGeneratedFieldProperties.cs
- sqlmetadatafactory.cs
- ImageSourceValueSerializer.cs
- ELinqQueryState.cs
- MSAAWinEventWrap.cs
- CurrentChangingEventManager.cs
- InvalidOleVariantTypeException.cs
- ContentPathSegment.cs
- UIElement3D.cs
- TreeSet.cs
- LogAppendAsyncResult.cs
- WebPartCloseVerb.cs
- ProcessModelSection.cs
- TimeSpan.cs
- GridViewColumnCollection.cs
- XmlSchemaValidationException.cs
- Vector3DAnimation.cs
- HitTestDrawingContextWalker.cs
- TextServicesCompartmentEventSink.cs
- Point3DAnimation.cs
- TimelineClockCollection.cs
- HttpListenerContext.cs
- ArrangedElementCollection.cs
- TimeZoneNotFoundException.cs
- securestring.cs
- NotConverter.cs
- MenuEventArgs.cs
- Errors.cs
- WeakRefEnumerator.cs
- DbXmlEnabledProviderManifest.cs
- PropertyTabChangedEvent.cs
- ScrollContentPresenter.cs
- PrintingPermission.cs
- FixedSOMPage.cs
- _AutoWebProxyScriptEngine.cs
- CodeAttributeDeclaration.cs
- OutputCacheProfileCollection.cs
- EventHandlerList.cs
- HttpInputStream.cs
- _SSPISessionCache.cs
- IPipelineRuntime.cs
- AccessibleObject.cs
- KeyedHashAlgorithm.cs
- PropertyCondition.cs
- HtmlInputPassword.cs
- Vector3DAnimationBase.cs
- SecurityContext.cs
- SessionSwitchEventArgs.cs
- oledbconnectionstring.cs
- TreeNodeStyleCollectionEditor.cs
- DesignerAdapterAttribute.cs
- BCryptNative.cs
- TextTreePropertyUndoUnit.cs
- DataGridTextBox.cs
- activationcontext.cs
- ValidationManager.cs