Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebParts / WebZoneDesigner.cs / 1 / WebZoneDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls.WebParts { using System; using System.ComponentModel; using System.Web.UI.Design; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; // Note that we derive from ControlDesigner instead of CompositeControlDesigner, even though WebZone // derives from CompositeControl. The issue is that CompositeControlDesigner forces the child // controls to be created before calling base.GetDesignTimeHtml(). However, we do not want to force // this child controls to be created, since we explicitly clear the Controls collection before // calling base.GetDesignTimeHtml(). We do this because if a single WebPart has an error, we want to // render an exception for just that WebPart, not the whole WebPartZone. [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public abstract class WebZoneDesigner : ControlDesigner { internal const string _templateName = "ZoneTemplate"; // Internal to prevent subclassing outside this assembly internal WebZoneDesigner() { } internal TemplateDefinition TemplateDefinition { get { return new TemplateDefinition(this, _templateName, Component, _templateName, ((WebControl)ViewControl).ControlStyle, true); } } internal TemplateGroup CreateZoneTemplateGroup() { TemplateGroup zoneTemplateGroup = new TemplateGroup(_templateName, ((WebControl)ViewControl).ControlStyle); zoneTemplateGroup.AddTemplateDefinition(new TemplateDefinition(this, _templateName, Component, _templateName, ((WebControl)ViewControl).ControlStyle)); return zoneTemplateGroup; } protected override bool UsePreviewControl { get { return true; } } public override void Initialize(IComponent component) { VerifyInitializeArgument(component, typeof(WebZone)); base.Initialize(component); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AssemblyAttributesGoHere.cs
- CommonObjectSecurity.cs
- CapabilitiesPattern.cs
- Win32KeyboardDevice.cs
- CommentEmitter.cs
- CompilerCollection.cs
- WebPartMinimizeVerb.cs
- HttpPostedFile.cs
- HttpStreamFormatter.cs
- SqlFunctionAttribute.cs
- TdsParserSafeHandles.cs
- ComNativeDescriptor.cs
- DirectoryNotFoundException.cs
- PlainXmlWriter.cs
- ProgressBarAutomationPeer.cs
- NetNamedPipeBinding.cs
- RectAnimationUsingKeyFrames.cs
- ContentPropertyAttribute.cs
- SelectionService.cs
- StateDesignerConnector.cs
- EntityContainerRelationshipSet.cs
- FillErrorEventArgs.cs
- Stackframe.cs
- MonitoringDescriptionAttribute.cs
- MenuStrip.cs
- DependencyObject.cs
- StringUtil.cs
- Baml2006ReaderSettings.cs
- ListViewInsertEventArgs.cs
- SizeIndependentAnimationStorage.cs
- ProgressBar.cs
- MethodAccessException.cs
- TypeToArgumentTypeConverter.cs
- RegexBoyerMoore.cs
- ListItemParagraph.cs
- ProcessHostConfigUtils.cs
- GroupQuery.cs
- ObjectComplexPropertyMapping.cs
- Oci.cs
- WebPartDisplayModeCancelEventArgs.cs
- HtmlEmptyTagControlBuilder.cs
- Decorator.cs
- SplashScreen.cs
- StreamWriter.cs
- GeneralTransform3DTo2DTo3D.cs
- KeyInstance.cs
- MergeFilterQuery.cs
- AutoResetEvent.cs
- QuadraticBezierSegment.cs
- SystemBrushes.cs
- ChangeDirector.cs
- ControlBindingsCollection.cs
- WebServiceClientProxyGenerator.cs
- DataGridViewTopLeftHeaderCell.cs
- CompilerCollection.cs
- ValueOfAction.cs
- TextBoxLine.cs
- DiffuseMaterial.cs
- Trigger.cs
- Size3DConverter.cs
- EncryptedPackage.cs
- COM2PictureConverter.cs
- ObjectAnimationBase.cs
- MutexSecurity.cs
- QuotedStringFormatReader.cs
- MetadataUtil.cs
- OdbcException.cs
- CountAggregationOperator.cs
- ReflectEventDescriptor.cs
- MulticastOption.cs
- AsyncPostBackErrorEventArgs.cs
- LiteralSubsegment.cs
- MulticastNotSupportedException.cs
- MenuRendererClassic.cs
- ExpressionConverter.cs
- SqlConnectionPoolProviderInfo.cs
- StorageTypeMapping.cs
- RotateTransform3D.cs
- RemoteArgument.cs
- invalidudtexception.cs
- ToolStripDropDownDesigner.cs
- ReceiveErrorHandling.cs
- DetailsViewInsertEventArgs.cs
- EncoderBestFitFallback.cs
- CompositeFontFamily.cs
- ManipulationVelocities.cs
- FixedPageStructure.cs
- XmlSchemaChoice.cs
- DateTimeValueSerializer.cs
- ElementHostAutomationPeer.cs
- AttachedPropertyMethodSelector.cs
- DataRowView.cs
- TableLayoutRowStyleCollection.cs
- MouseEvent.cs
- XmlDocument.cs
- DataGridViewCellLinkedList.cs
- EventListenerClientSide.cs
- WorkflowWebService.cs
- SortQuery.cs
- ArithmeticException.cs