Code:
/ FX-1434 / FX-1434 / 1.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
- HtmlDocument.cs
- ResourcePermissionBaseEntry.cs
- DragDeltaEventArgs.cs
- TileModeValidation.cs
- ImageField.cs
- LinearGradientBrush.cs
- ContextStaticAttribute.cs
- ReaderContextStackData.cs
- CheckBoxList.cs
- XmlEnumAttribute.cs
- WorkflowWebService.cs
- ManagedFilter.cs
- ImageEditor.cs
- SystemColors.cs
- Rect3D.cs
- BasePropertyDescriptor.cs
- ViewKeyConstraint.cs
- GPStream.cs
- Primitive.cs
- TextServicesCompartmentContext.cs
- SocketStream.cs
- CommandHelper.cs
- CodeDomConfigurationHandler.cs
- Wildcard.cs
- BindingWorker.cs
- GeneralTransformGroup.cs
- SimpleMailWebEventProvider.cs
- Hashtable.cs
- NotifyInputEventArgs.cs
- ListViewUpdateEventArgs.cs
- SizeValueSerializer.cs
- Trace.cs
- CaseCqlBlock.cs
- SequenceNumber.cs
- BindableTemplateBuilder.cs
- WindowsTab.cs
- BypassElement.cs
- GeneralEndpointIdentity.cs
- ApplicationException.cs
- Size3D.cs
- DataGridViewCellStateChangedEventArgs.cs
- ServiceModelSecurityTokenRequirement.cs
- __ConsoleStream.cs
- ServiceBehaviorAttribute.cs
- FileSystemWatcher.cs
- ConfigurationElementProperty.cs
- SemanticAnalyzer.cs
- ComboBoxAutomationPeer.cs
- MediaCommands.cs
- TextCollapsingProperties.cs
- DbSourceParameterCollection.cs
- BitmapEffectInputConnector.cs
- Executor.cs
- QueryException.cs
- ColumnClickEvent.cs
- WpfPayload.cs
- CheckBoxRenderer.cs
- ZipFileInfo.cs
- EntityDataSourceEntitySetNameItem.cs
- ExpandCollapsePatternIdentifiers.cs
- _NegoState.cs
- Transaction.cs
- GlyphTypeface.cs
- RowType.cs
- FileEnumerator.cs
- AnnotationComponentManager.cs
- WorkflowApplicationAbortedException.cs
- ExtenderProvidedPropertyAttribute.cs
- EffectiveValueEntry.cs
- ConfigXmlText.cs
- CachedPathData.cs
- CategoryNameCollection.cs
- MapPathBasedVirtualPathProvider.cs
- OdbcTransaction.cs
- CompositeCollection.cs
- XamlTypeWithExplicitNamespace.cs
- HttpPostClientProtocol.cs
- Stack.cs
- EventSinkActivity.cs
- SizeIndependentAnimationStorage.cs
- SiteMapProvider.cs
- SetStoryboardSpeedRatio.cs
- VarRefManager.cs
- ContentElementCollection.cs
- XhtmlBasicObjectListAdapter.cs
- ControlPropertyNameConverter.cs
- PreservationFileReader.cs
- ToolboxComponentsCreatingEventArgs.cs
- ExeContext.cs
- OdbcError.cs
- TableSectionStyle.cs
- AssemblyBuilder.cs
- SqlCacheDependencySection.cs
- WebDisplayNameAttribute.cs
- DetailsViewUpdatedEventArgs.cs
- TabRenderer.cs
- StyleBamlRecordReader.cs
- DatagridviewDisplayedBandsData.cs
- Brushes.cs
- ToolStripOverflow.cs