Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ValidatorAttribute.cs
- EnumerableRowCollectionExtensions.cs
- Invariant.cs
- Tokenizer.cs
- Variable.cs
- Vector3DAnimation.cs
- BitVector32.cs
- StorageModelBuildProvider.cs
- UnsafeNativeMethods.cs
- CombinedGeometry.cs
- TagNameToTypeMapper.cs
- EventLogEntry.cs
- Span.cs
- DataGrid.cs
- SafeNativeMethods.cs
- EntityCollection.cs
- UIElement3DAutomationPeer.cs
- WebScriptEnablingBehavior.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- XmlUtf8RawTextWriter.cs
- RegexFCD.cs
- XhtmlBasicLinkAdapter.cs
- IdentityModelStringsVersion1.cs
- HyperLinkStyle.cs
- PreProcessInputEventArgs.cs
- SharedHttpTransportManager.cs
- GeneralTransform3DCollection.cs
- ObjectItemCollection.cs
- bidPrivateBase.cs
- DocumentOrderQuery.cs
- FamilyTypeface.cs
- ListenerSessionConnection.cs
- UserInitiatedNavigationPermission.cs
- SslStream.cs
- SspiWrapper.cs
- shaperfactory.cs
- CodeMethodMap.cs
- TimersDescriptionAttribute.cs
- InitializerFacet.cs
- MeshGeometry3D.cs
- EventLogQuery.cs
- GlobalizationAssembly.cs
- Misc.cs
- TdsParameterSetter.cs
- SmiContextFactory.cs
- WorkflowEnvironment.cs
- OdbcUtils.cs
- Misc.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- EntityDataSourceView.cs
- OwnerDrawPropertyBag.cs
- IgnoreFlushAndCloseStream.cs
- LineInfo.cs
- RoleService.cs
- DocumentDesigner.cs
- DataGridViewHitTestInfo.cs
- ExpressionConverter.cs
- RenderDataDrawingContext.cs
- PerfCounterSection.cs
- FileSystemWatcher.cs
- IntersectQueryOperator.cs
- TextUtf8RawTextWriter.cs
- TextTreeTextNode.cs
- StateMachineWorkflowDesigner.cs
- HighlightComponent.cs
- CompatibleIComparer.cs
- PrinterSettings.cs
- WriteableOnDemandStream.cs
- RuleRef.cs
- DBSchemaRow.cs
- ChangeInterceptorAttribute.cs
- StringHandle.cs
- WmlControlAdapter.cs
- MatrixAnimationUsingPath.cs
- BitmapFrameDecode.cs
- SuppressIldasmAttribute.cs
- ThreadPool.cs
- RoleGroupCollectionEditor.cs
- HwndSubclass.cs
- WsiProfilesElementCollection.cs
- ScrollChrome.cs
- XmlMembersMapping.cs
- JapaneseCalendar.cs
- TreeWalkHelper.cs
- RuntimeHelpers.cs
- Cursors.cs
- RegexCompilationInfo.cs
- KeyBinding.cs
- SubpageParaClient.cs
- OpCopier.cs
- HandleCollector.cs
- DataGridView.cs
- RawMouseInputReport.cs
- TextParaClient.cs
- StructuralType.cs
- EntityDataSourceWrapper.cs
- XsdValidatingReader.cs
- WebPermission.cs
- Win32Exception.cs
- TextParagraph.cs