Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- HTMLTextWriter.cs
- SizeChangedInfo.cs
- FilteredXmlReader.cs
- BamlTreeNode.cs
- ImportRequest.cs
- DataObject.cs
- SpotLight.cs
- Message.cs
- BitmapSourceSafeMILHandle.cs
- ExternalFile.cs
- FixedSOMTable.cs
- PersianCalendar.cs
- AnnouncementEndpoint.cs
- HtmlElement.cs
- SessionEndedEventArgs.cs
- ObjectSet.cs
- DesignerTransactionCloseEvent.cs
- TargetParameterCountException.cs
- EdmPropertyAttribute.cs
- APCustomTypeDescriptor.cs
- AssemblyBuilder.cs
- AttachedAnnotation.cs
- TimersDescriptionAttribute.cs
- NoneExcludedImageIndexConverter.cs
- StylusPlugin.cs
- ListBase.cs
- NativeActivity.cs
- CompilationRelaxations.cs
- FormDocumentDesigner.cs
- DateTimeFormatInfoScanner.cs
- IndexedString.cs
- StorageMappingFragment.cs
- Hash.cs
- XhtmlBasicSelectionListAdapter.cs
- DatePickerAutomationPeer.cs
- HtmlInputRadioButton.cs
- SoapInteropTypes.cs
- ByteAnimationUsingKeyFrames.cs
- ScriptControlDescriptor.cs
- WebPartCloseVerb.cs
- ExtensionDataReader.cs
- Knowncolors.cs
- JumpList.cs
- TreeViewEvent.cs
- ArgIterator.cs
- DataServiceBehavior.cs
- TraceFilter.cs
- DataGridViewRowPostPaintEventArgs.cs
- DivideByZeroException.cs
- XmlElementList.cs
- InstanceKeyCompleteException.cs
- SerializerProvider.cs
- SrgsGrammar.cs
- XhtmlBasicPhoneCallAdapter.cs
- IsolatedStorageFile.cs
- SolidColorBrush.cs
- Site.cs
- Image.cs
- UnsignedPublishLicense.cs
- LoginName.cs
- ValidationRuleCollection.cs
- RC2.cs
- DomainConstraint.cs
- SerializationInfoEnumerator.cs
- XmlHelper.cs
- PageCatalogPart.cs
- OperationParameterInfo.cs
- Underline.cs
- CodeGeneratorAttribute.cs
- AnimationTimeline.cs
- XMLSchema.cs
- BasePropertyDescriptor.cs
- Vars.cs
- CodeGen.cs
- DiscoveryRequestHandler.cs
- TraceListeners.cs
- PieceDirectory.cs
- LassoSelectionBehavior.cs
- RepeaterItemEventArgs.cs
- Calendar.cs
- ControlType.cs
- TimeSpanFormat.cs
- lengthconverter.cs
- ClientScriptManager.cs
- IPAddress.cs
- AbstractDataSvcMapFileLoader.cs
- Process.cs
- HtmlTextArea.cs
- ScrollEvent.cs
- Accessible.cs
- GenericTextProperties.cs
- PageMediaType.cs
- SerializationEventsCache.cs
- Memoizer.cs
- CompiledQuery.cs
- DataGridViewTopRowAccessibleObject.cs
- OverflowException.cs
- SQLSingleStorage.cs
- WasEndpointConfigContainer.cs
- CodeDomLoader.cs