Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AgileSafeNativeMemoryHandle.cs
- CodeMemberEvent.cs
- ExpressionEditor.cs
- QueryException.cs
- LinqDataView.cs
- ValueTable.cs
- DrawingContextDrawingContextWalker.cs
- WriteStateInfoBase.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- PropertyMetadata.cs
- ConfigXmlComment.cs
- Geometry.cs
- InstanceValue.cs
- TextModifierScope.cs
- BevelBitmapEffect.cs
- DataTemplate.cs
- DelayLoadType.cs
- UniqueConstraint.cs
- ValueTable.cs
- UdpSocketReceiveManager.cs
- SiteIdentityPermission.cs
- DataControlHelper.cs
- IdleTimeoutMonitor.cs
- CornerRadius.cs
- xmlglyphRunInfo.cs
- GridViewCommandEventArgs.cs
- DesignerAutoFormatCollection.cs
- MeasureItemEvent.cs
- CustomSignedXml.cs
- SqlUserDefinedTypeAttribute.cs
- ContextMarshalException.cs
- ListBoxItemAutomationPeer.cs
- PiiTraceSource.cs
- NameValuePair.cs
- OletxResourceManager.cs
- EnumValidator.cs
- HwndSubclass.cs
- CalendarDay.cs
- StateManagedCollection.cs
- OptimalBreakSession.cs
- CodeSubDirectoriesCollection.cs
- ListBindingHelper.cs
- ArrayExtension.cs
- XmlSchemaDatatype.cs
- SAPICategories.cs
- OperationAbortedException.cs
- ObjectStorage.cs
- EventLevel.cs
- TiffBitmapDecoder.cs
- Route.cs
- DataSourceCacheDurationConverter.cs
- FontCollection.cs
- HttpAsyncResult.cs
- ScriptingJsonSerializationSection.cs
- InvalidOperationException.cs
- PtsPage.cs
- GridViewEditEventArgs.cs
- ProfileSettings.cs
- CombinedGeometry.cs
- FamilyMap.cs
- DoubleStorage.cs
- ListSourceHelper.cs
- CodeLabeledStatement.cs
- WindowsListView.cs
- ZoomComboBox.cs
- FolderBrowserDialog.cs
- BrowserCapabilitiesFactory.cs
- BatchStream.cs
- QilStrConcat.cs
- SqlBulkCopyColumnMappingCollection.cs
- XmlSchemaParticle.cs
- AbstractExpressions.cs
- StylusShape.cs
- ProxyWebPartManager.cs
- CodeDelegateCreateExpression.cs
- DataRowComparer.cs
- ExternalFile.cs
- ClientData.cs
- ApplicationCommands.cs
- Visitors.cs
- TextRunProperties.cs
- Int64Converter.cs
- DesignerTransaction.cs
- HebrewNumber.cs
- AssemblyAttributes.cs
- arabicshape.cs
- SchemaImporterExtensionElementCollection.cs
- RestClientProxyHandler.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- MulticastNotSupportedException.cs
- FontFaceLayoutInfo.cs
- DetailsViewUpdatedEventArgs.cs
- webclient.cs
- DataTableTypeConverter.cs
- SqlInternalConnectionSmi.cs
- PointConverter.cs
- PrintDialog.cs
- _Semaphore.cs
- AuthenticationConfig.cs
- SrgsRuleRef.cs