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
- ListItemCollection.cs
- TextParagraphCache.cs
- MediaElementAutomationPeer.cs
- FixedTextView.cs
- XamlNamespaceHelper.cs
- TextBox.cs
- HyperlinkAutomationPeer.cs
- ClientTargetCollection.cs
- SerializableAuthorizationContext.cs
- ConnectionsZoneDesigner.cs
- PerformanceCounterCategory.cs
- SqlNodeTypeOperators.cs
- SHA512Managed.cs
- NameScopePropertyAttribute.cs
- EntityKey.cs
- HtmlGenericControl.cs
- XmlSchemaDatatype.cs
- DataGridViewCellValueEventArgs.cs
- ClientTargetCollection.cs
- TraceUtility.cs
- ReadOnlyCollection.cs
- FileDialogPermission.cs
- DataServiceHost.cs
- AnnotationComponentChooser.cs
- ToggleButtonAutomationPeer.cs
- FontFamily.cs
- WebOperationContext.cs
- DataTableReader.cs
- WebScriptMetadataInstanceContextProvider.cs
- ScaleTransform3D.cs
- HostedHttpTransportManager.cs
- DetailsViewRow.cs
- DataBoundControlHelper.cs
- CurrentChangingEventArgs.cs
- TypeElement.cs
- MenuItemCollection.cs
- CompilerErrorCollection.cs
- EntityChangedParams.cs
- ValidationHelper.cs
- DecimalConverter.cs
- ValidationError.cs
- ImmutableObjectAttribute.cs
- UpDownEvent.cs
- BindableAttribute.cs
- BeginEvent.cs
- BaseCollection.cs
- XamlSerializationHelper.cs
- OleDbDataAdapter.cs
- bidPrivateBase.cs
- BackoffTimeoutHelper.cs
- OrderingExpression.cs
- Vector3D.cs
- AnimationLayer.cs
- ZipIOExtraField.cs
- Ref.cs
- ErrorLog.cs
- ButtonBaseAdapter.cs
- DataGrid.cs
- Propagator.Evaluator.cs
- CqlWriter.cs
- SafeLocalMemHandle.cs
- EmbeddedMailObjectsCollection.cs
- BuildProvidersCompiler.cs
- MatrixTransform3D.cs
- HTTPNotFoundHandler.cs
- IpcClientManager.cs
- MetadataImporterQuotas.cs
- UniqueEventHelper.cs
- SQLInt16Storage.cs
- EdmPropertyAttribute.cs
- BatchServiceHost.cs
- HiddenFieldPageStatePersister.cs
- ResourceIDHelper.cs
- BitmapMetadataEnumerator.cs
- ExpressionBindingCollection.cs
- TextContainerHelper.cs
- HGlobalSafeHandle.cs
- Attributes.cs
- IsolatedStorageFile.cs
- TypeDescriptionProvider.cs
- ErrorProvider.cs
- ControlParameter.cs
- COM2AboutBoxPropertyDescriptor.cs
- ControlDesigner.cs
- NotSupportedException.cs
- XmlSchemaSimpleTypeUnion.cs
- _LocalDataStore.cs
- MetadataItemCollectionFactory.cs
- webeventbuffer.cs
- QueryException.cs
- SchemaConstraints.cs
- HistoryEventArgs.cs
- TextProviderWrapper.cs
- FontResourceCache.cs
- DefaultEvaluationContext.cs
- FixedPage.cs
- OrderToken.cs
- CompositeFontParser.cs
- ParsedRoute.cs
- Ray3DHitTestResult.cs