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
- ServiceModelConfigurationSectionGroup.cs
- PropertyGridEditorPart.cs
- LayoutEditorPart.cs
- ListViewCommandEventArgs.cs
- XmlQueryOutput.cs
- UnaryNode.cs
- FormClosingEvent.cs
- SecurityKeyIdentifierClause.cs
- ByteStorage.cs
- CallbackValidator.cs
- ResourceProperty.cs
- QueryTask.cs
- WebPartEditorCancelVerb.cs
- NativeMethodsCLR.cs
- xmlformatgeneratorstatics.cs
- RequestCachePolicyConverter.cs
- ItemsControl.cs
- ReturnType.cs
- DbConnectionHelper.cs
- SerializationEventsCache.cs
- XmlRootAttribute.cs
- ApplicationProxyInternal.cs
- FamilyMapCollection.cs
- VectorCollectionValueSerializer.cs
- FontStyles.cs
- CodeParameterDeclarationExpression.cs
- XpsPartBase.cs
- LocalIdKeyIdentifierClause.cs
- HTMLTagNameToTypeMapper.cs
- unitconverter.cs
- TemplateControlCodeDomTreeGenerator.cs
- ConnectionProviderAttribute.cs
- QuaternionRotation3D.cs
- ExpressionNode.cs
- ResourceWriter.cs
- CommandExpr.cs
- DataSourceSelectArguments.cs
- DataPagerFieldItem.cs
- EmptyStringExpandableObjectConverter.cs
- OneOfElement.cs
- UnsafeNativeMethodsTablet.cs
- TimeIntervalCollection.cs
- CellParaClient.cs
- BitmapDecoder.cs
- OdbcStatementHandle.cs
- ProfileProvider.cs
- HotCommands.cs
- DtcInterfaces.cs
- ConfigurationHandlersInstallComponent.cs
- WindowsListViewItemStartMenu.cs
- BamlLocalizableResourceKey.cs
- UnknownBitmapEncoder.cs
- MetafileHeaderWmf.cs
- ObjectViewFactory.cs
- TabItem.cs
- Figure.cs
- DiscoveryClientChannelFactory.cs
- ListMarkerSourceInfo.cs
- Base64Stream.cs
- DashStyle.cs
- DbConnectionHelper.cs
- ConfigurationLocationCollection.cs
- ChannelPoolSettings.cs
- DataControlFieldCollection.cs
- EventLogEntry.cs
- DataTemplateKey.cs
- StagingAreaInputItem.cs
- IndexOutOfRangeException.cs
- ReachSerializer.cs
- TemplateEditingVerb.cs
- UserControlAutomationPeer.cs
- DataSourceControl.cs
- TypeDescriptionProviderAttribute.cs
- UnsafeNativeMethods.cs
- ExpressionTextBox.xaml.cs
- ControlBuilder.cs
- BitmapCacheBrush.cs
- WebPartAuthorizationEventArgs.cs
- AvTraceDetails.cs
- SystemInformation.cs
- DataObjectCopyingEventArgs.cs
- DynamicResourceExtension.cs
- PopupControlService.cs
- InvariantComparer.cs
- CmsInterop.cs
- ConsoleTraceListener.cs
- MimeBasePart.cs
- WsatConfiguration.cs
- PolyQuadraticBezierSegment.cs
- PermissionSet.cs
- GridViewDesigner.cs
- IfJoinedCondition.cs
- CommandBinding.cs
- MediaEntryAttribute.cs
- Vector3D.cs
- TempFiles.cs
- CompoundFileStreamReference.cs
- EmptyQuery.cs
- Parser.cs
- DefaultCommandExtensionCallback.cs