Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / CompositeControlDesigner.cs / 1 / CompositeControlDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls { using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.Design; using System.Web.UI; using System.Web.UI.WebControls; ////// /// Base designer class, useful for any type of composite control, not only those that extend /// System.Web.UI.WebControls.CompositeControl. /// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public class CompositeControlDesigner : ControlDesigner { ////// /// protected virtual void CreateChildControls() { ICompositeControlDesignerAccessor ccda = (ICompositeControlDesignerAccessor)ViewControl; ccda.RecreateChildControls(); } ////// /// public override string GetDesignTimeHtml() { CreateChildControls(); return base.GetDesignTimeHtml(); } ////// /// Since this designer may be used with any type of composite control, only enforce that the control is an INamingContainer. /// public override void Initialize(IComponent component) { VerifyInitializeArgument(component, typeof(INamingContainer)); 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
- Size3DValueSerializer.cs
- Version.cs
- ClientSession.cs
- Int64KeyFrameCollection.cs
- HebrewNumber.cs
- DtrList.cs
- BlockUIContainer.cs
- ZipIOModeEnforcingStream.cs
- XmlEncoding.cs
- TemplateBamlRecordReader.cs
- EventLogTraceListener.cs
- ASCIIEncoding.cs
- QueryInterceptorAttribute.cs
- PrintControllerWithStatusDialog.cs
- EventLogEntry.cs
- MethodBody.cs
- EFDataModelProvider.cs
- formatstringdialog.cs
- ForEachAction.cs
- ArgumentOutOfRangeException.cs
- TransportManager.cs
- LayoutTableCell.cs
- InputLangChangeEvent.cs
- DragEvent.cs
- LinearGradientBrush.cs
- PropertyInfoSet.cs
- SQLSingleStorage.cs
- GroupDescription.cs
- AspNetPartialTrustHelpers.cs
- HistoryEventArgs.cs
- FixedSOMTableRow.cs
- TemplatedWizardStep.cs
- CacheVirtualItemsEvent.cs
- IsolatedStorageFileStream.cs
- InputLanguageManager.cs
- AgileSafeNativeMemoryHandle.cs
- TableTextElementCollectionInternal.cs
- ClientSession.cs
- PointUtil.cs
- PrePostDescendentsWalker.cs
- ZipIOExtraField.cs
- StyleCollection.cs
- GridEntry.cs
- WebPartAddingEventArgs.cs
- FormViewInsertedEventArgs.cs
- XmlUtil.cs
- XPathNodePointer.cs
- QilInvokeEarlyBound.cs
- COM2Properties.cs
- ByteStream.cs
- DictationGrammar.cs
- RequestCacheManager.cs
- Ops.cs
- XmlSchemaAny.cs
- AuthenticationServiceManager.cs
- ScriptControl.cs
- RuntimeConfig.cs
- PriorityBindingExpression.cs
- PointLightBase.cs
- GeneralTransform3D.cs
- AutomationEventArgs.cs
- BitArray.cs
- TabControlToolboxItem.cs
- DispatcherObject.cs
- TreeNodeConverter.cs
- MiniMapControl.xaml.cs
- DefaultValueTypeConverter.cs
- XmlSchemaElement.cs
- LayoutEvent.cs
- TcpWorkerProcess.cs
- Brushes.cs
- TextTreeUndoUnit.cs
- DictionaryMarkupSerializer.cs
- PrimitiveXmlSerializers.cs
- LocalizationCodeDomSerializer.cs
- UserControlCodeDomTreeGenerator.cs
- ResXBuildProvider.cs
- OptimalBreakSession.cs
- InertiaTranslationBehavior.cs
- SystemIcons.cs
- JoinTreeSlot.cs
- InputLanguageManager.cs
- StyleBamlRecordReader.cs
- TreeNodeMouseHoverEvent.cs
- AttributedMetaModel.cs
- ConnectionPoolManager.cs
- SkinBuilder.cs
- HeaderElement.cs
- BuildProviderCollection.cs
- ApplicationActivator.cs
- EventLogInternal.cs
- BitmapCache.cs
- Emitter.cs
- LinqDataSourceView.cs
- WorkflowApplicationTerminatedException.cs
- Subset.cs
- PersistChildrenAttribute.cs
- EmptyQuery.cs
- ConfigsHelper.cs
- NullableConverter.cs