Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Executor.cs
- Point3DValueSerializer.cs
- __FastResourceComparer.cs
- ObjectIDGenerator.cs
- BinaryObjectWriter.cs
- InstanceDataCollection.cs
- dsa.cs
- ProtectedConfigurationProviderCollection.cs
- ThemeDictionaryExtension.cs
- WindowsGraphicsCacheManager.cs
- SubMenuStyleCollectionEditor.cs
- SoapAttributeAttribute.cs
- DataGridViewTextBoxCell.cs
- SrgsSemanticInterpretationTag.cs
- AutomationElementCollection.cs
- RoleGroup.cs
- XmlSchemaFacet.cs
- RemotingHelper.cs
- Msec.cs
- ThumbAutomationPeer.cs
- InteropAutomationProvider.cs
- cryptoapiTransform.cs
- UiaCoreTypesApi.cs
- BindableTemplateBuilder.cs
- PenLineCapValidation.cs
- EventHandlerList.cs
- XmlEncodedRawTextWriter.cs
- EpmTargetTree.cs
- RtfToXamlLexer.cs
- SimpleType.cs
- HttpPostedFile.cs
- ConsumerConnectionPointCollection.cs
- DocobjHost.cs
- ReadOnlyDictionary.cs
- ElapsedEventArgs.cs
- TailCallAnalyzer.cs
- Button.cs
- FileReservationCollection.cs
- RequestUriProcessor.cs
- SEHException.cs
- ToolStripCustomTypeDescriptor.cs
- StyleCollectionEditor.cs
- smtpconnection.cs
- HtmlElementEventArgs.cs
- Rotation3DKeyFrameCollection.cs
- GroupQuery.cs
- AssemblyAttributes.cs
- AssemblySettingAttributes.cs
- TypeTypeConverter.cs
- TableDetailsCollection.cs
- CollectionBuilder.cs
- GenericTextProperties.cs
- XsltQilFactory.cs
- C14NUtil.cs
- Invariant.cs
- OutputCacheSection.cs
- DataBoundControl.cs
- tooltip.cs
- addressfiltermode.cs
- XmlTextReader.cs
- PriorityQueue.cs
- SiteMapNodeItemEventArgs.cs
- DesignerSerializerAttribute.cs
- PasswordRecoveryDesigner.cs
- OdbcException.cs
- ClientSession.cs
- ColorConvertedBitmap.cs
- MSAAEventDispatcher.cs
- EqualityArray.cs
- DragStartedEventArgs.cs
- NumericExpr.cs
- DomainUpDown.cs
- UriParserTemplates.cs
- DataServiceRequestOfT.cs
- ColorMatrix.cs
- SpecularMaterial.cs
- EntityViewGenerator.cs
- VectorCollectionValueSerializer.cs
- FunctionParameter.cs
- XmlDataSourceView.cs
- Message.cs
- JsonServiceDocumentSerializer.cs
- ParameterReplacerVisitor.cs
- CompilerTypeWithParams.cs
- StoragePropertyMapping.cs
- Matrix.cs
- PeerMessageDispatcher.cs
- TabPage.cs
- SqlPersonalizationProvider.cs
- CustomErrorsSectionWrapper.cs
- WindowsAltTab.cs
- TransformerTypeCollection.cs
- XmlHierarchicalDataSourceView.cs
- TranslateTransform3D.cs
- HelpProvider.cs
- Debug.cs
- DNS.cs
- QuadraticBezierSegment.cs
- EncodingTable.cs
- CaretElement.cs