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
- Identity.cs
- CodeTypeConstructor.cs
- PasswordDeriveBytes.cs
- LicFileLicenseProvider.cs
- UnaryNode.cs
- HtmlTitle.cs
- XmlName.cs
- FlowNode.cs
- WebReferencesBuildProvider.cs
- XmlValidatingReader.cs
- ListViewItem.cs
- Activator.cs
- GridViewColumnCollection.cs
- DrawListViewItemEventArgs.cs
- SignatureResourcePool.cs
- GiveFeedbackEventArgs.cs
- DataGridViewRowsRemovedEventArgs.cs
- ReadContentAsBinaryHelper.cs
- WebUtil.cs
- DataGridColumn.cs
- BuildProviderAppliesToAttribute.cs
- WebPartHelpVerb.cs
- ExternalCalls.cs
- TextRangeSerialization.cs
- StreamUpgradeInitiator.cs
- AssemblyHash.cs
- RectConverter.cs
- StyleXamlParser.cs
- DataFormat.cs
- DbResourceAllocator.cs
- ProfileManager.cs
- CustomExpressionEventArgs.cs
- MembershipValidatePasswordEventArgs.cs
- ProxySimple.cs
- RecognizeCompletedEventArgs.cs
- WebPartAuthorizationEventArgs.cs
- AvTraceFormat.cs
- BlurEffect.cs
- DataError.cs
- TimeSpanValidatorAttribute.cs
- SecurityIdentifierElementCollection.cs
- ListView.cs
- Run.cs
- StateDesigner.LayoutSelectionGlyph.cs
- DrawingServices.cs
- XmlAttributeOverrides.cs
- TypeHelper.cs
- ObjectDataSourceStatusEventArgs.cs
- PipeSecurity.cs
- ObjectManager.cs
- SoundPlayer.cs
- validation.cs
- LocalizedNameDescriptionPair.cs
- PartialCachingAttribute.cs
- FlagsAttribute.cs
- PrintDialog.cs
- InputScopeAttribute.cs
- _NestedSingleAsyncResult.cs
- JapaneseCalendar.cs
- ConnectorEditor.cs
- ShutDownListener.cs
- PeerApplication.cs
- ScriptControlDescriptor.cs
- AssemblyAttributesGoHere.cs
- MemberRelationshipService.cs
- Panel.cs
- GroupItem.cs
- XmlCDATASection.cs
- DiscoveryReference.cs
- MethodCallTranslator.cs
- securitycriticaldata.cs
- DataTableClearEvent.cs
- UnsupportedPolicyOptionsException.cs
- QueryException.cs
- SqlClientPermission.cs
- DataPagerField.cs
- TextDecorationCollection.cs
- InvokeWebService.cs
- JavascriptCallbackBehaviorAttribute.cs
- ResourceAssociationSet.cs
- VisualBrush.cs
- Validator.cs
- ServicePointManagerElement.cs
- AppDomainGrammarProxy.cs
- ManagedCodeMarkers.cs
- OpenTypeMethods.cs
- MdiWindowListItemConverter.cs
- LockCookie.cs
- arabicshape.cs
- MemoryRecordBuffer.cs
- Matrix3D.cs
- SingleSelectRootGridEntry.cs
- DefaultMemberAttribute.cs
- DataGridItemAutomationPeer.cs
- SafeSecurityHelper.cs
- DefaultValueTypeConverter.cs
- SqlCommand.cs
- SoapReflectionImporter.cs
- StorageFunctionMapping.cs
- DocumentPageTextView.cs