Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebParts / EditorPartDesigner.cs / 1 / EditorPartDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls.WebParts { using System; using System.Collections; using System.ComponentModel; using System.Design; using System.Web.UI.Design; using System.Web.UI.WebControls.WebParts; [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public class EditorPartDesigner : PartDesigner { private EditorPart _editorPart; protected override Control CreateViewControl() { Control viewControl = base.CreateViewControl(); // Copy DesignModeState from the Component to the ViewControl, so that // the Zone is set on the ViewControl. (VSWhidbey 456878) IDictionary state = ((IControlDesignerAccessor)_editorPart).GetDesignModeState(); ((IControlDesignerAccessor)viewControl).SetDesignModeState(state); return viewControl; } public override void Initialize(IComponent component) { VerifyInitializeArgument(component, typeof(EditorPart)); _editorPart = (EditorPart)component; base.Initialize(component); } public override string GetDesignTimeHtml() { if (!(_editorPart.Parent is EditorZoneBase)) { return CreateInvalidParentDesignTimeHtml(typeof(EditorPart), typeof(EditorZoneBase)); } return base.GetDesignTimeHtml(); } } } // 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
- Nullable.cs
- DataGridHeaderBorder.cs
- MissingManifestResourceException.cs
- DateTimeConverter.cs
- QueryHandler.cs
- ResourceManagerWrapper.cs
- IISMapPath.cs
- RSAPKCS1KeyExchangeFormatter.cs
- Viewport2DVisual3D.cs
- XmlNavigatorStack.cs
- XamlTemplateSerializer.cs
- WorkflowViewManager.cs
- ComponentConverter.cs
- Set.cs
- XmlBufferReader.cs
- MenuEventArgs.cs
- MessageQueue.cs
- SerializationFieldInfo.cs
- DataShape.cs
- CheckedListBox.cs
- SerializableReadOnlyDictionary.cs
- XmlHierarchicalEnumerable.cs
- DataException.cs
- EmptyElement.cs
- CapabilitiesState.cs
- Opcode.cs
- RoleService.cs
- HttpListenerException.cs
- ImageList.cs
- SqlUtils.cs
- PropertyPath.cs
- ConnectionPoolManager.cs
- TemplateBindingExpressionConverter.cs
- SchemaImporterExtensionElement.cs
- Window.cs
- Compilation.cs
- MtomMessageEncodingElement.cs
- Helpers.cs
- MdbDataFileEditor.cs
- FactoryGenerator.cs
- WriteLine.cs
- SyntaxCheck.cs
- TableLayoutCellPaintEventArgs.cs
- Ray3DHitTestResult.cs
- MultipleViewPattern.cs
- SetState.cs
- HttpHandlersSection.cs
- NodeFunctions.cs
- RoleGroupCollectionEditor.cs
- ScrollChrome.cs
- HuffCodec.cs
- FrameworkElement.cs
- ScriptReferenceEventArgs.cs
- LoadRetryHandler.cs
- CharacterMetrics.cs
- SizeFConverter.cs
- HtmlContainerControl.cs
- MemberCollection.cs
- HashSetDebugView.cs
- FormCollection.cs
- BrowsableAttribute.cs
- CodeTypeReferenceCollection.cs
- IPAddress.cs
- ConfigurationLockCollection.cs
- KeyedCollection.cs
- DropShadowBitmapEffect.cs
- CatalogZone.cs
- ProcessInfo.cs
- DataExpression.cs
- CatalogPartDesigner.cs
- GenericPrincipal.cs
- TextDpi.cs
- SiteMapDataSource.cs
- ScriptingProfileServiceSection.cs
- FixedTextSelectionProcessor.cs
- ManagementDateTime.cs
- XmlnsCompatibleWithAttribute.cs
- CategoryAttribute.cs
- CoTaskMemHandle.cs
- DataRowView.cs
- FunctionImportElement.cs
- XmlUtil.cs
- Speller.cs
- DesignerToolStripControlHost.cs
- TraceListeners.cs
- SolidColorBrush.cs
- ExcCanonicalXml.cs
- SessionPageStateSection.cs
- TypedDataSetSchemaImporterExtension.cs
- XmlWriter.cs
- RepeaterItemCollection.cs
- TemplateLookupAction.cs
- TextRangeSerialization.cs
- Attributes.cs
- DesignerInterfaces.cs
- MemoryMappedFileSecurity.cs
- NetworkInterface.cs
- PermissionSetEnumerator.cs
- ListViewItemMouseHoverEvent.cs
- BitmapSource.cs