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
- WriteStateInfoBase.cs
- WebPart.cs
- ToolBarTray.cs
- BookmarkInfo.cs
- PathTooLongException.cs
- GeneralTransformGroup.cs
- XmlSchemaValidationException.cs
- Pair.cs
- MergablePropertyAttribute.cs
- HttpFileCollection.cs
- TypeSystem.cs
- Scripts.cs
- EncryptedData.cs
- OleServicesContext.cs
- GcHandle.cs
- XmlNamedNodeMap.cs
- _ChunkParse.cs
- ProbeMatchesMessageCD1.cs
- CheckableControlBaseAdapter.cs
- DesignBindingValueUIHandler.cs
- QuaternionAnimation.cs
- DataGridViewCheckBoxColumn.cs
- SHA256.cs
- UnsafeNativeMethods.cs
- Int16Converter.cs
- PersistenceParticipant.cs
- DocumentPageView.cs
- HttpDebugHandler.cs
- IssuedTokenClientCredential.cs
- WhitespaceRule.cs
- CommonDialog.cs
- SynchronizingStream.cs
- Transform3DCollection.cs
- URLString.cs
- GlyphingCache.cs
- EmptyQuery.cs
- PersonalizationProviderCollection.cs
- EntityStoreSchemaFilterEntry.cs
- BuilderInfo.cs
- ContextMenuStripActionList.cs
- BookmarkScopeManager.cs
- entityreference_tresulttype.cs
- LoginCancelEventArgs.cs
- TimelineClockCollection.cs
- objectquery_tresulttype.cs
- SecureConversationSecurityTokenParameters.cs
- _SafeNetHandles.cs
- OlePropertyStructs.cs
- XmlReader.cs
- XmlSchemaAttributeGroupRef.cs
- ImportStoreException.cs
- propertytag.cs
- HtmlValidationSummaryAdapter.cs
- FigureParaClient.cs
- EntityProxyTypeInfo.cs
- ProcessHostFactoryHelper.cs
- XDeferredAxisSource.cs
- Source.cs
- SchemaImporter.cs
- BindingWorker.cs
- PackUriHelper.cs
- BlurEffect.cs
- InheritablePropertyChangeInfo.cs
- ZipFileInfoCollection.cs
- StateManagedCollection.cs
- FormsAuthenticationCredentials.cs
- StringSource.cs
- ToolStripSplitButton.cs
- DesignerTransaction.cs
- CallbackException.cs
- Int64.cs
- ByteStack.cs
- SchemaImporter.cs
- HierarchicalDataBoundControlAdapter.cs
- MgmtConfigurationRecord.cs
- figurelength.cs
- AnnotationAuthorChangedEventArgs.cs
- FacetDescription.cs
- SiblingIterators.cs
- MsmqHostedTransportManager.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- RuntimeWrappedException.cs
- QuaternionAnimationUsingKeyFrames.cs
- RequestCachePolicy.cs
- HtmlUtf8RawTextWriter.cs
- DocumentXmlWriter.cs
- BitVector32.cs
- Rfc4050KeyFormatter.cs
- KeySpline.cs
- Typeface.cs
- graph.cs
- ListControl.cs
- EasingKeyFrames.cs
- PropertiesTab.cs
- ProfileBuildProvider.cs
- DescendentsWalkerBase.cs
- LoginAutoFormat.cs
- SafeFindHandle.cs
- DynamicDataExtensions.cs
- PartialCachingAttribute.cs