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
- RangeValueProviderWrapper.cs
- CodeMemberField.cs
- TypeElement.cs
- AliasedSlot.cs
- Identity.cs
- HTTPNotFoundHandler.cs
- ScriptingScriptResourceHandlerSection.cs
- HitTestFilterBehavior.cs
- MachineSettingsSection.cs
- Registry.cs
- DataConnectionHelper.cs
- FuncCompletionCallbackWrapper.cs
- CultureTableRecord.cs
- Soap12ProtocolImporter.cs
- WorkflowElementDialogWindow.xaml.cs
- Figure.cs
- DragEvent.cs
- DiscardableAttribute.cs
- AsyncPostBackErrorEventArgs.cs
- XPathNavigatorKeyComparer.cs
- UserInitiatedNavigationPermission.cs
- DetailsViewUpdateEventArgs.cs
- InteropBitmapSource.cs
- HttpCapabilitiesEvaluator.cs
- BitmapEffectGeneralTransform.cs
- Button.cs
- RootBrowserWindow.cs
- XmlChildNodes.cs
- QueueProcessor.cs
- OpenCollectionAsyncResult.cs
- TemplateBamlTreeBuilder.cs
- DayRenderEvent.cs
- DataGridColumnHeaderCollection.cs
- InvalidEnumArgumentException.cs
- AppearanceEditorPart.cs
- CaretElement.cs
- CroppedBitmap.cs
- QilFactory.cs
- ScrollBar.cs
- XmlSchemaDocumentation.cs
- XmlUnspecifiedAttribute.cs
- FontWeights.cs
- ConsoleTraceListener.cs
- SchemaTableColumn.cs
- NavigationEventArgs.cs
- DataServiceQueryProvider.cs
- RegisteredArrayDeclaration.cs
- XPathArrayIterator.cs
- StackBuilderSink.cs
- Transactions.cs
- HashHelper.cs
- BaseServiceProvider.cs
- GC.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- XmlValidatingReader.cs
- SqlClientWrapperSmiStream.cs
- HashHelper.cs
- FirstMatchCodeGroup.cs
- PropertyGridCommands.cs
- WebServiceClientProxyGenerator.cs
- StorageAssociationSetMapping.cs
- ContentElementAutomationPeer.cs
- mil_commands.cs
- PersistStreamTypeWrapper.cs
- NativeMethods.cs
- TraceListeners.cs
- TableRowCollection.cs
- BackgroundWorker.cs
- Misc.cs
- TextDecorationCollection.cs
- NonVisualControlAttribute.cs
- MimeMapping.cs
- Variant.cs
- PenThread.cs
- SplitterPanelDesigner.cs
- ProxyGenerator.cs
- SharedPerformanceCounter.cs
- updateconfighost.cs
- HttpBufferlessInputStream.cs
- UniqueCodeIdentifierScope.cs
- CodeDelegateCreateExpression.cs
- StateDesigner.CommentLayoutGlyph.cs
- CaseStatement.cs
- CodeTypeDeclaration.cs
- BasePattern.cs
- XmlQualifiedName.cs
- NamespaceEmitter.cs
- ProvidersHelper.cs
- DecoderNLS.cs
- Crypto.cs
- JoinGraph.cs
- MimePart.cs
- ObjectStateManager.cs
- EdmComplexTypeAttribute.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- NotFiniteNumberException.cs
- SecurityResources.cs
- Exception.cs
- IdentityReference.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs