Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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);
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoubleCollectionConverter.cs
- DocumentViewerAutomationPeer.cs
- ThreadExceptionEvent.cs
- HttpHandlersInstallComponent.cs
- DocumentXmlWriter.cs
- controlskin.cs
- XmlMembersMapping.cs
- NativeMethods.cs
- SplitterPanelDesigner.cs
- ToolStripEditorManager.cs
- XPathLexer.cs
- SectionUpdates.cs
- StrokeFIndices.cs
- SingleResultAttribute.cs
- XPathScanner.cs
- XmlIgnoreAttribute.cs
- SoapEnumAttribute.cs
- PersonalizationState.cs
- HTTPNotFoundHandler.cs
- SoapHeader.cs
- SoapRpcMethodAttribute.cs
- UIElementIsland.cs
- SerTrace.cs
- TextServicesDisplayAttributePropertyRanges.cs
- MissingMemberException.cs
- ReferenceSchema.cs
- UTF7Encoding.cs
- InternalConfigRoot.cs
- RepeaterCommandEventArgs.cs
- DataViewListener.cs
- DataGridToolTip.cs
- EntityDataSource.cs
- MimeFormReflector.cs
- TextParagraphProperties.cs
- BamlRecordReader.cs
- GenericPrincipal.cs
- WeakReference.cs
- DefaultProxySection.cs
- TimeStampChecker.cs
- ConfigsHelper.cs
- TableDetailsRow.cs
- CopyAttributesAction.cs
- SqlTrackingService.cs
- GPPOINTF.cs
- RegexTree.cs
- TabItem.cs
- ConfigurationSection.cs
- OleDbRowUpdatedEvent.cs
- ColorConverter.cs
- ProfileService.cs
- AssemblyHash.cs
- DBConnectionString.cs
- ControlBindingsConverter.cs
- JavaScriptSerializer.cs
- EventTask.cs
- PersistChildrenAttribute.cs
- XmlSchemaFacet.cs
- ExpressionParser.cs
- FragmentQueryProcessor.cs
- PagesChangedEventArgs.cs
- ResourceDefaultValueAttribute.cs
- ModuleBuilder.cs
- BlockExpression.cs
- MsmqInputMessagePool.cs
- TreeNodeBinding.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- SQLString.cs
- OperatorExpressions.cs
- OutputCacheProfile.cs
- StyleSelector.cs
- PageTheme.cs
- SliderAutomationPeer.cs
- DataServiceHostFactory.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ScaleTransform.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DataConnectionHelper.cs
- SubMenuStyle.cs
- FontStretches.cs
- WebResourceUtil.cs
- XamlTemplateSerializer.cs
- invalidudtexception.cs
- XmlNode.cs
- SqlMultiplexer.cs
- Visual3D.cs
- RemotingAttributes.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- XPathDocumentBuilder.cs
- ReferentialConstraint.cs
- RequiredFieldValidator.cs
- ExpressionParser.cs
- UrlAuthFailedErrorFormatter.cs
- XmlSchemaGroup.cs
- XmlWhitespace.cs
- ObjectDataProvider.cs
- ExeContext.cs
- RedirectionProxy.cs
- TimeSpanOrInfiniteConverter.cs
- TagPrefixInfo.cs
- AesManaged.cs