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
- _NestedMultipleAsyncResult.cs
- CultureSpecificStringDictionary.cs
- _OSSOCK.cs
- ProjectionCamera.cs
- StringUtil.cs
- AssociationEndMember.cs
- AlternateView.cs
- CompressedStack.cs
- ColorMap.cs
- MatrixCamera.cs
- MarshalDirectiveException.cs
- ParsedAttributeCollection.cs
- FlowDocumentReaderAutomationPeer.cs
- IntSecurity.cs
- VisualCollection.cs
- QuerySubExprEliminator.cs
- AttributeProviderAttribute.cs
- DynamicRenderer.cs
- DoubleLinkListEnumerator.cs
- DataGridHyperlinkColumn.cs
- CompressStream.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- FtpCachePolicyElement.cs
- GroupLabel.cs
- KeyEventArgs.cs
- _SecureChannel.cs
- XmlSchemaAnnotated.cs
- ValueSerializerAttribute.cs
- ZipIORawDataFileBlock.cs
- BitmapDownload.cs
- GenericsInstances.cs
- SqlDataSourceQueryEditor.cs
- BinaryUtilClasses.cs
- TableRowsCollectionEditor.cs
- WCFModelStrings.Designer.cs
- Events.cs
- AttributeEmitter.cs
- DispatcherHookEventArgs.cs
- StringAnimationBase.cs
- HttpContextServiceHost.cs
- DispatcherObject.cs
- QilStrConcat.cs
- DataServiceRequestException.cs
- MembershipPasswordException.cs
- SmtpReplyReader.cs
- DynamicQueryStringParameter.cs
- ProcessActivityTreeOptions.cs
- SQLDateTimeStorage.cs
- _NestedMultipleAsyncResult.cs
- TypeUtil.cs
- DateTimeFormat.cs
- EventBookmark.cs
- MemberDomainMap.cs
- FileChangeNotifier.cs
- BasicCellRelation.cs
- DataConnectionHelper.cs
- EmptyEnumerable.cs
- ProxyWebPart.cs
- ITreeGenerator.cs
- PropertyGroupDescription.cs
- PropertyPathWorker.cs
- EncodingInfo.cs
- BookmarkScope.cs
- Bold.cs
- WebPartRestoreVerb.cs
- EditorZoneBase.cs
- ScriptRegistrationManager.cs
- XXXInfos.cs
- FeatureSupport.cs
- WindowsHyperlink.cs
- InheritablePropertyChangeInfo.cs
- BitmapCodecInfoInternal.cs
- WebPartConnectionsCloseVerb.cs
- PieceNameHelper.cs
- HttpWebResponse.cs
- Token.cs
- GuidTagList.cs
- PixelFormats.cs
- RenderData.cs
- SqlTriggerContext.cs
- AbstractSvcMapFileLoader.cs
- InternalRelationshipCollection.cs
- CommonGetThemePartSize.cs
- AttributeXamlType.cs
- JoinTreeNode.cs
- InvocationExpression.cs
- BinaryObjectReader.cs
- BamlRecordReader.cs
- ObjectViewFactory.cs
- PackageStore.cs
- RequestCachePolicyConverter.cs
- ViewCellRelation.cs
- PropertyEmitter.cs
- XmlIlGenerator.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- NativeMethodsOther.cs
- SmtpReplyReaderFactory.cs
- SmtpLoginAuthenticationModule.cs
- XPathSingletonIterator.cs
- Int16Animation.cs