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
- CustomAttributeSerializer.cs
- ContentElementAutomationPeer.cs
- CodeMemberMethod.cs
- CollectionViewGroupInternal.cs
- BasicCommandTreeVisitor.cs
- SafeNativeMethodsMilCoreApi.cs
- DbgCompiler.cs
- FamilyCollection.cs
- SqlDataSourceSelectingEventArgs.cs
- Int32EqualityComparer.cs
- WebPartsPersonalizationAuthorization.cs
- VisualTarget.cs
- CodeThrowExceptionStatement.cs
- TextRangeSerialization.cs
- DataFormats.cs
- PathSegmentCollection.cs
- mediaeventargs.cs
- DataServiceQueryProvider.cs
- HashSet.cs
- TextViewBase.cs
- PropertyReferenceExtension.cs
- sqlstateclientmanager.cs
- TextRenderer.cs
- DataGridColumnEventArgs.cs
- IndexerReference.cs
- StreamedWorkflowDefinitionContext.cs
- DrawingGroup.cs
- FacetChecker.cs
- AuthenticatedStream.cs
- CustomAssemblyResolver.cs
- PenCursorManager.cs
- ParagraphResult.cs
- PersonalizationState.cs
- SafeNativeMemoryHandle.cs
- RegexGroupCollection.cs
- relpropertyhelper.cs
- WebServiceEndpoint.cs
- FlowPosition.cs
- TransactionCache.cs
- TransformGroup.cs
- clipboard.cs
- RoutingExtensionElement.cs
- WebDescriptionAttribute.cs
- CellCreator.cs
- AdornerHitTestResult.cs
- xml.cs
- MetadataSerializer.cs
- TargetConverter.cs
- Types.cs
- DataGridViewColumn.cs
- FrameworkElement.cs
- CalendarDayButton.cs
- ProcessExitedException.cs
- __ConsoleStream.cs
- PrinterSettings.cs
- DesignerRegionMouseEventArgs.cs
- HtmlForm.cs
- ReceiveActivity.cs
- DBConnection.cs
- EntityContainerEmitter.cs
- Substitution.cs
- WebPartDisplayMode.cs
- DoubleAnimation.cs
- CharacterMetrics.cs
- ComponentCollection.cs
- DefaultAutoFieldGenerator.cs
- SourceItem.cs
- LineGeometry.cs
- PrintEvent.cs
- ExpandCollapsePattern.cs
- DataControlButton.cs
- GacUtil.cs
- PrinterSettings.cs
- LinearKeyFrames.cs
- SharedHttpTransportManager.cs
- ObjectDataSourceEventArgs.cs
- DoubleAnimationUsingPath.cs
- LocalBuilder.cs
- Table.cs
- OdbcUtils.cs
- ClientSponsor.cs
- CellParaClient.cs
- Function.cs
- handlecollector.cs
- LongAverageAggregationOperator.cs
- PassportAuthentication.cs
- BitmapMetadataEnumerator.cs
- SHA1CryptoServiceProvider.cs
- TreeNodeMouseHoverEvent.cs
- WebServiceMethodData.cs
- Font.cs
- ProviderConnectionPoint.cs
- GenericFlowSwitchHelper.cs
- IISMapPath.cs
- DataError.cs
- FormsAuthenticationCredentials.cs
- ProvidersHelper.cs
- TextSpanModifier.cs
- Geometry.cs
- TrackingProfileSerializer.cs