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
- Literal.cs
- CollectionDataContract.cs
- WebBrowserBase.cs
- BufferBuilder.cs
- DataServices.cs
- DependencyPropertyDescriptor.cs
- ConnectionManagementElement.cs
- CodeRemoveEventStatement.cs
- StrongNameKeyPair.cs
- SqlProviderServices.cs
- TypeTypeConverter.cs
- TraceContextEventArgs.cs
- CodePageUtils.cs
- ColumnMapVisitor.cs
- HashCodeCombiner.cs
- BigInt.cs
- SortedList.cs
- ZipPackage.cs
- TextDocumentView.cs
- LinqDataSourceEditData.cs
- InvalidCastException.cs
- CommonEndpointBehaviorElement.cs
- validationstate.cs
- OleDbConnection.cs
- ParsedRoute.cs
- DataObjectSettingDataEventArgs.cs
- RIPEMD160Managed.cs
- DrawingGroupDrawingContext.cs
- ReflectionUtil.cs
- CmsInterop.cs
- SessionParameter.cs
- Sql8ConformanceChecker.cs
- AdornedElementPlaceholder.cs
- PropertyDescriptorGridEntry.cs
- PortCache.cs
- XPathNodeList.cs
- SolidColorBrush.cs
- bidPrivateBase.cs
- ActiveXHost.cs
- brushes.cs
- SiteMapProvider.cs
- CharUnicodeInfo.cs
- BigInt.cs
- EntityConnectionStringBuilderItem.cs
- webproxy.cs
- StreamWithDictionary.cs
- TextAction.cs
- TrackBar.cs
- RowToParametersTransformer.cs
- FileUpload.cs
- SynchronizedDispatch.cs
- ValidationResults.cs
- DesignerWidgets.cs
- XMLUtil.cs
- OpenFileDialog.cs
- AuthenticationSection.cs
- RoleGroupCollectionEditor.cs
- Scene3D.cs
- ListViewDeletedEventArgs.cs
- DiscoveryDocumentLinksPattern.cs
- objectresult_tresulttype.cs
- ParseNumbers.cs
- GridItem.cs
- ManagementDateTime.cs
- EventLogPermissionHolder.cs
- CellParagraph.cs
- PointF.cs
- RegistrationServices.cs
- Empty.cs
- SspiNegotiationTokenAuthenticator.cs
- DataGridViewControlCollection.cs
- GeneralTransform.cs
- BrushMappingModeValidation.cs
- EventlogProvider.cs
- HttpConfigurationSystem.cs
- KeyConstraint.cs
- httpstaticobjectscollection.cs
- RectValueSerializer.cs
- MSG.cs
- BaseCodeDomTreeGenerator.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- PeerNearMe.cs
- MultiTrigger.cs
- SequenceQuery.cs
- SiteMap.cs
- DataDesignUtil.cs
- ValidatorCollection.cs
- MaskInputRejectedEventArgs.cs
- MainMenu.cs
- KeyPullup.cs
- CompilationUnit.cs
- ReverseInheritProperty.cs
- OutOfMemoryException.cs
- XDeferredAxisSource.cs
- KeyConverter.cs
- ReferentialConstraint.cs
- SByteStorage.cs
- RuntimeVariablesExpression.cs
- QuerySubExprEliminator.cs
- TimersDescriptionAttribute.cs