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
- HtmlFormWrapper.cs
- CopyOnWriteList.cs
- Int32Collection.cs
- PageThemeParser.cs
- ExpressionPrefixAttribute.cs
- CompilerWrapper.cs
- IdnMapping.cs
- NativeMethodsCLR.cs
- CharacterMetricsDictionary.cs
- TakeOrSkipQueryOperator.cs
- glyphs.cs
- XmlnsDictionary.cs
- StatusBarItem.cs
- WorkflowServiceHost.cs
- ComAdminWrapper.cs
- GreaterThan.cs
- MouseEventArgs.cs
- WebServicesInteroperability.cs
- Image.cs
- ToolStripItemDataObject.cs
- XsltArgumentList.cs
- ProgressPage.cs
- CuspData.cs
- Rule.cs
- CharacterHit.cs
- SoapDocumentMethodAttribute.cs
- QueryComponents.cs
- contentDescriptor.cs
- SpellerInterop.cs
- NullRuntimeConfig.cs
- SettingsContext.cs
- TableHeaderCell.cs
- NetworkCredential.cs
- ObjectFullSpanRewriter.cs
- XmlSecureResolver.cs
- EmptyEnumerator.cs
- ProtocolsSection.cs
- ResolveNameEventArgs.cs
- SafeRightsManagementHandle.cs
- TextBounds.cs
- XmlSchemaDocumentation.cs
- LocatorManager.cs
- SamlAuthorityBinding.cs
- SafeLibraryHandle.cs
- SafeThemeHandle.cs
- FindCriteriaApril2005.cs
- CollectionDataContractAttribute.cs
- WinFormsSpinner.cs
- CanExecuteRoutedEventArgs.cs
- PersianCalendar.cs
- EventLogStatus.cs
- SignatureDescription.cs
- SystemBrushes.cs
- HuffmanTree.cs
- CopyNamespacesAction.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- ResolveNameEventArgs.cs
- TypeContext.cs
- HighlightComponent.cs
- Win32SafeHandles.cs
- LockCookie.cs
- SpecialNameAttribute.cs
- XmlnsCompatibleWithAttribute.cs
- FactoryId.cs
- BaseParaClient.cs
- DrawingState.cs
- TimeSpanStorage.cs
- PrincipalPermission.cs
- IsolatedStorageFilePermission.cs
- XmlSerializationGeneratedCode.cs
- XamlReaderConstants.cs
- RowToFieldTransformer.cs
- SQLMoneyStorage.cs
- assemblycache.cs
- InputReportEventArgs.cs
- TextTreeTextElementNode.cs
- SrgsElementFactoryCompiler.cs
- ProviderUtil.cs
- ConvertBinder.cs
- EncoderFallback.cs
- DPAPIProtectedConfigurationProvider.cs
- GetPageCompletedEventArgs.cs
- TaskFileService.cs
- _CookieModule.cs
- SHA512Managed.cs
- odbcmetadatacollectionnames.cs
- DLinqColumnProvider.cs
- SelectionPatternIdentifiers.cs
- TextParagraphView.cs
- ReadOnlyDataSource.cs
- TileBrush.cs
- ObjectComplexPropertyMapping.cs
- DrawingVisual.cs
- DataBoundControlActionList.cs
- SiteMapDataSourceDesigner.cs
- WebWorkflowRole.cs
- CharacterMetricsDictionary.cs
- _Connection.cs
- PlaceHolder.cs
- StoryFragments.cs