Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebParts / PartDesigner.cs / 1 / PartDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls.WebParts { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Web.UI.Design; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public abstract class PartDesigner : CompositeControlDesigner { // Internal to prevent subclassing outside this assembly internal PartDesigner() { } protected override bool UsePreviewControl { get { return true; } } internal static Control GetViewControl(Control control) { Debug.Assert(control != null); ControlDesigner designer = GetDesigner(control); if (designer != null) { return designer.ViewControl; } else { return control; } } private static ControlDesigner GetDesigner(Control control) { Debug.Assert(control != null); ControlDesigner designer = null; ISite site = control.Site; if (site != null) { IDesignerHost host = (IDesignerHost)site.GetService(typeof(IDesignerHost)); Debug.Assert(host != null, "Did not get a valid IDesignerHost reference"); designer = host.GetDesigner(control) as ControlDesigner; } return designer; } public override void Initialize(IComponent component) { VerifyInitializeArgument(component, typeof(Part)); base.Initialize(component); } } } // 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
- XmlnsCache.cs
- OpenTypeLayoutCache.cs
- Encoder.cs
- OleCmdHelper.cs
- GeneralTransform2DTo3D.cs
- XmlRawWriter.cs
- SafeFileMappingHandle.cs
- GatewayIPAddressInformationCollection.cs
- OleDbInfoMessageEvent.cs
- WorkflowInvoker.cs
- RedistVersionInfo.cs
- Funcletizer.cs
- XmlSchemaAnnotation.cs
- ContourSegment.cs
- EmbeddedObject.cs
- HtmlValidationSummaryAdapter.cs
- DataColumnMapping.cs
- SvcMapFile.cs
- TextEditorCopyPaste.cs
- Selection.cs
- DataFieldCollectionEditor.cs
- JpegBitmapDecoder.cs
- webbrowsersite.cs
- DataColumnChangeEvent.cs
- CollectionsUtil.cs
- RsaKeyGen.cs
- CollectionChangedEventManager.cs
- PathBox.cs
- wgx_sdk_version.cs
- LinqToSqlWrapper.cs
- PeerNameResolver.cs
- ThreadInterruptedException.cs
- SchemaObjectWriter.cs
- HostedBindingBehavior.cs
- DesignerSerializationVisibilityAttribute.cs
- AssemblyCache.cs
- DetailsView.cs
- Cursors.cs
- SpellerHighlightLayer.cs
- WebPart.cs
- SqlColumnizer.cs
- PropertyChangedEventManager.cs
- UserControlCodeDomTreeGenerator.cs
- AutomationPattern.cs
- XsltSettings.cs
- WithParamAction.cs
- ProxyHwnd.cs
- ProxyGenerationError.cs
- MostlySingletonList.cs
- ExeConfigurationFileMap.cs
- mediaclock.cs
- __Filters.cs
- ProtocolsSection.cs
- StringStorage.cs
- SystemUdpStatistics.cs
- SafeRegistryHandle.cs
- TemplateKeyConverter.cs
- IisTraceListener.cs
- AuthenticationModuleElement.cs
- Point3DAnimationBase.cs
- SerializationInfo.cs
- baseaxisquery.cs
- OdbcDataAdapter.cs
- XmlImplementation.cs
- rsa.cs
- ToolStripContentPanel.cs
- Size3DConverter.cs
- List.cs
- RandomNumberGenerator.cs
- GuidelineCollection.cs
- XmlSchemaSimpleContentRestriction.cs
- DbConnectionFactory.cs
- VersionedStreamOwner.cs
- WebPartConnectionsCancelVerb.cs
- dataprotectionpermission.cs
- BitVector32.cs
- CqlIdentifiers.cs
- BuildProvider.cs
- SamlSubject.cs
- CaseInsensitiveComparer.cs
- ExtenderControl.cs
- WebPartMinimizeVerb.cs
- Soap.cs
- COM2ColorConverter.cs
- Focus.cs
- LockedAssemblyCache.cs
- BufferedWebEventProvider.cs
- ListParagraph.cs
- WinEventTracker.cs
- ButtonChrome.cs
- StagingAreaInputItem.cs
- FontSource.cs
- InitialServerConnectionReader.cs
- DbgCompiler.cs
- LocalBuilder.cs
- unsafenativemethodsother.cs
- ConfigXmlWhitespace.cs
- SqlUtils.cs
- ThaiBuddhistCalendar.cs
- SystemIPGlobalStatistics.cs