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
- DetailsViewInsertedEventArgs.cs
- XmlDesignerDataSourceView.cs
- MethodMessage.cs
- MappingMetadataHelper.cs
- OleDbStruct.cs
- BitHelper.cs
- ListViewDeletedEventArgs.cs
- SecUtil.cs
- ISessionStateStore.cs
- ToolboxItemFilterAttribute.cs
- Invariant.cs
- ProviderConnectionPoint.cs
- FlowLayoutPanel.cs
- Calendar.cs
- ActivityXRefConverter.cs
- ProfileService.cs
- EntityContainer.cs
- HierarchicalDataTemplate.cs
- DataPagerField.cs
- TextLineResult.cs
- InvalidOleVariantTypeException.cs
- RubberbandSelector.cs
- Triplet.cs
- MobileSysDescriptionAttribute.cs
- CompensationParticipant.cs
- ProjectedSlot.cs
- NameValueConfigurationElement.cs
- DefaultBinder.cs
- AnnotationComponentManager.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ProtocolsConfiguration.cs
- LoadGrammarCompletedEventArgs.cs
- CacheMode.cs
- RegexGroup.cs
- CacheChildrenQuery.cs
- KnownBoxes.cs
- PersistenceIOParticipant.cs
- GatewayDefinition.cs
- SoapSchemaExporter.cs
- BuildManager.cs
- DBConnection.cs
- dbdatarecord.cs
- TextServicesPropertyRanges.cs
- GridViewDeletedEventArgs.cs
- BoundPropertyEntry.cs
- TextViewBase.cs
- BinaryNode.cs
- ImpersonateTokenRef.cs
- UriParserTemplates.cs
- MonthCalendarDesigner.cs
- EntitySqlQueryBuilder.cs
- JournalNavigationScope.cs
- MimeBasePart.cs
- ConsumerConnectionPoint.cs
- DSACryptoServiceProvider.cs
- Converter.cs
- Paragraph.cs
- DispatchWrapper.cs
- Frame.cs
- CallbackValidator.cs
- MDIClient.cs
- SoapDocumentServiceAttribute.cs
- FacetDescription.cs
- CodeIdentifiers.cs
- EndpointDiscoveryElement.cs
- KernelTypeValidation.cs
- contentDescriptor.cs
- HashUtility.cs
- TraceSwitch.cs
- ActivityDesignerLayoutSerializers.cs
- MediaContext.cs
- Instrumentation.cs
- ProjectionPruner.cs
- CatalogPartCollection.cs
- AuthenticationModuleElement.cs
- PhoneCall.cs
- HtmlInputPassword.cs
- CorrelationValidator.cs
- Base64Stream.cs
- MarkedHighlightComponent.cs
- XmlBinaryReader.cs
- ClientSettingsProvider.cs
- TimerElapsedEvenArgs.cs
- CodeLinePragma.cs
- SystemResources.cs
- TextDecorationLocationValidation.cs
- PerformanceCounterNameAttribute.cs
- CommunicationObjectAbortedException.cs
- MsmqIntegrationChannelFactory.cs
- MenuRenderer.cs
- SiteMap.cs
- SqlFacetAttribute.cs
- BitmapEffectDrawingContent.cs
- ColorContext.cs
- TextSelectionHighlightLayer.cs
- ChtmlCommandAdapter.cs
- BroadcastEventHelper.cs
- LinqDataSourceSelectEventArgs.cs
- WhitespaceRuleLookup.cs
- Peer.cs