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
- Camera.cs
- RowCache.cs
- TransactionFlowAttribute.cs
- MetaChildrenColumn.cs
- NetCodeGroup.cs
- ZipIOLocalFileBlock.cs
- X509Certificate2Collection.cs
- FileDetails.cs
- SymmetricSecurityProtocol.cs
- Point4D.cs
- HtmlImage.cs
- Context.cs
- DataGridViewLayoutData.cs
- PageThemeParser.cs
- XmlNotation.cs
- InputElement.cs
- DocumentViewer.cs
- PackageDigitalSignature.cs
- XamlTreeBuilder.cs
- BufferBuilder.cs
- ContextBase.cs
- UInt64.cs
- ZipIOModeEnforcingStream.cs
- RequiredFieldValidator.cs
- DbConnectionPoolGroup.cs
- PropertyEntry.cs
- CursorConverter.cs
- UndoEngine.cs
- PositiveTimeSpanValidatorAttribute.cs
- TypeValidationEventArgs.cs
- MetabaseSettings.cs
- Pen.cs
- SQLByte.cs
- Rotation3D.cs
- UnsafeNativeMethodsMilCoreApi.cs
- BufferedWebEventProvider.cs
- HtmlShimManager.cs
- DesignerCategoryAttribute.cs
- DiffuseMaterial.cs
- ConnectionPoint.cs
- ImageClickEventArgs.cs
- RelationshipEntry.cs
- DataSet.cs
- PreservationFileReader.cs
- XmlNamespaceDeclarationsAttribute.cs
- UnknownBitmapEncoder.cs
- CultureTableRecord.cs
- PagePropertiesChangingEventArgs.cs
- LineBreakRecord.cs
- XmlValueConverter.cs
- Rect3DValueSerializer.cs
- XsdBuildProvider.cs
- TTSVoice.cs
- AudioStateChangedEventArgs.cs
- Dynamic.cs
- SettingsAttributes.cs
- HttpPostedFileBase.cs
- documentsequencetextview.cs
- TextAction.cs
- InfiniteTimeSpanConverter.cs
- XmlSchemaSimpleContent.cs
- LicenseManager.cs
- GridViewEditEventArgs.cs
- RegexCharClass.cs
- SupportsEventValidationAttribute.cs
- AdornedElementPlaceholder.cs
- UnionQueryOperator.cs
- DPCustomTypeDescriptor.cs
- ErrorLog.cs
- TreeNodeBinding.cs
- RuleElement.cs
- SettingsPropertyCollection.cs
- ProfileBuildProvider.cs
- TreeNode.cs
- WindowVisualStateTracker.cs
- _LazyAsyncResult.cs
- UrlMappingsSection.cs
- VectorAnimation.cs
- SynchronizationHandlesCodeDomSerializer.cs
- HwndSourceParameters.cs
- Math.cs
- ParameterElementCollection.cs
- ClusterRegistryConfigurationProvider.cs
- MetadataFile.cs
- DbConnectionHelper.cs
- VisualStyleRenderer.cs
- TemplateKey.cs
- SqlError.cs
- TokenBasedSet.cs
- BinaryObjectInfo.cs
- FixedSOMPage.cs
- DbProviderFactoriesConfigurationHandler.cs
- SocketInformation.cs
- TemplateParser.cs
- Merger.cs
- Stacktrace.cs
- NavigationCommands.cs
- DynamicObjectAccessor.cs
- Transform.cs
- LogSwitch.cs