Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RuntimeEnvironment.cs
- CommandLibraryHelper.cs
- XmlCountingReader.cs
- MetaChildrenColumn.cs
- BinaryFormatterWriter.cs
- SystemParameters.cs
- MessageEncodingBindingElementImporter.cs
- LastQueryOperator.cs
- RequestBringIntoViewEventArgs.cs
- RIPEMD160.cs
- DataGridCellItemAutomationPeer.cs
- HttpTransportSecurityElement.cs
- TableStyle.cs
- WebPartMovingEventArgs.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SwitchCase.cs
- ErrorFormatterPage.cs
- Expression.cs
- XmlSchemaAll.cs
- SequenceDesigner.xaml.cs
- TransactionBridgeSection.cs
- NominalTypeEliminator.cs
- ConstrainedDataObject.cs
- EnvelopedPkcs7.cs
- Transform3D.cs
- AutomationElement.cs
- SelectionWordBreaker.cs
- ShellProvider.cs
- GZipDecoder.cs
- LabelDesigner.cs
- HeaderedContentControl.cs
- FamilyTypeface.cs
- Switch.cs
- XmlSchemaGroup.cs
- QuaternionAnimation.cs
- DataGridTextBoxColumn.cs
- FixedSchema.cs
- FixedSOMLineRanges.cs
- GridToolTip.cs
- BookmarkEventArgs.cs
- SHA256.cs
- TextTreeTextElementNode.cs
- SqlCommandSet.cs
- InternalEnumValidatorAttribute.cs
- WebBrowserSiteBase.cs
- SchemaUtility.cs
- RuntimeEnvironment.cs
- storepermissionattribute.cs
- RelatedView.cs
- BuildProvider.cs
- DigitShape.cs
- InstanceCreationEditor.cs
- ServerIdentity.cs
- DictionaryContent.cs
- Events.cs
- RequestCachingSection.cs
- XD.cs
- SqlExpander.cs
- ScrollableControl.cs
- AccessDataSourceWizardForm.cs
- IItemProperties.cs
- ElementProxy.cs
- CompiledRegexRunner.cs
- ISAPIApplicationHost.cs
- ImportedPolicyConversionContext.cs
- AsymmetricSecurityBindingElement.cs
- XmlSchemaGroupRef.cs
- DataRelationPropertyDescriptor.cs
- AutomationProperties.cs
- EventTrigger.cs
- ObjectDataSourceFilteringEventArgs.cs
- ParentQuery.cs
- _IPv4Address.cs
- Convert.cs
- FormViewDeletedEventArgs.cs
- Substitution.cs
- Listbox.cs
- WebServiceErrorEvent.cs
- FilterQuery.cs
- MultiTargetingUtil.cs
- ImageConverter.cs
- ToolStripDropDownButton.cs
- RelationshipSet.cs
- TailCallAnalyzer.cs
- WebPartChrome.cs
- DataGridViewColumnCollection.cs
- _UriTypeConverter.cs
- EncodingNLS.cs
- SubclassTypeValidatorAttribute.cs
- Mutex.cs
- LifetimeServices.cs
- Predicate.cs
- DoWorkEventArgs.cs
- BackStopAuthenticationModule.cs
- DataSourceHelper.cs
- SimplePropertyEntry.cs
- MemoryMappedFileSecurity.cs
- SystemIPAddressInformation.cs
- AnnotationAdorner.cs
- HttpPostServerProtocol.cs