Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebParts / ToolZoneDesigner.cs / 1 / ToolZoneDesigner.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.Web.UI.WebControls.WebParts; [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public class ToolZoneDesigner : WebZoneDesigner { public override DesignerActionListCollection ActionLists { get { DesignerActionListCollection actionLists = new DesignerActionListCollection(); actionLists.AddRange(base.ActionLists); actionLists.Add(new ToolZoneDesignerActionList(this)); return actionLists; } } protected bool ViewInBrowseMode { get { object o = DesignerState["ViewInBrowseMode"]; return (o != null) ? (bool)o : false; } private set { if (value != ViewInBrowseMode) { DesignerState["ViewInBrowseMode"] = value; UpdateDesignTimeHtml(); } } } public override void Initialize(IComponent component) { VerifyInitializeArgument(component, typeof(ToolZone)); base.Initialize(component); } private class ToolZoneDesignerActionList : DesignerActionList { private ToolZoneDesigner _parent; public ToolZoneDesignerActionList(ToolZoneDesigner parent) : base (parent.Component){ _parent = parent; } public override bool AutoShow { get { return true; } set { } } public bool ViewInBrowseMode { get { return _parent.ViewInBrowseMode; } set { _parent.ViewInBrowseMode = value; } } public override DesignerActionItemCollection GetSortedActionItems() { DesignerActionItemCollection items = new DesignerActionItemCollection(); items.Add(new DesignerActionPropertyItem("ViewInBrowseMode", SR.GetString(SR.ToolZoneDesigner_ViewInBrowseMode), String.Empty, SR.GetString(SR.ToolZoneDesigner_ViewInBrowseModeDesc))); return items; } } } } // 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
- cookiecontainer.cs
- ActiveXContainer.cs
- StylusPointPropertyId.cs
- PropertyPushdownHelper.cs
- ReadOnlyMetadataCollection.cs
- SHA384Managed.cs
- MultiDataTrigger.cs
- DetailsViewPageEventArgs.cs
- XmlTextReader.cs
- ReflectPropertyDescriptor.cs
- IISUnsafeMethods.cs
- CurrentChangingEventArgs.cs
- SettingsSection.cs
- MetadataArtifactLoaderCompositeResource.cs
- BmpBitmapDecoder.cs
- XmlElement.cs
- ToolStripDropDownMenu.cs
- SiteMapNodeItem.cs
- Button.cs
- RouteParameter.cs
- ParameterToken.cs
- ParseChildrenAsPropertiesAttribute.cs
- PageCache.cs
- PlainXmlSerializer.cs
- FormsIdentity.cs
- UdpTransportSettings.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DataBindingHandlerAttribute.cs
- WebControl.cs
- ToolStripManager.cs
- CustomTrackingRecord.cs
- SectionUpdates.cs
- DateTimeConverter2.cs
- BitmapEffectGroup.cs
- PolicyManager.cs
- WinFormsUtils.cs
- RoutingConfiguration.cs
- BaseCollection.cs
- BaseProcessor.cs
- ColumnWidthChangingEvent.cs
- Code.cs
- FixedTextSelectionProcessor.cs
- UIElement3D.cs
- XmlILAnnotation.cs
- MatcherBuilder.cs
- ReferenceConverter.cs
- CodeLabeledStatement.cs
- AdRotatorDesigner.cs
- PersonalizableAttribute.cs
- XmlToDatasetMap.cs
- LineInfo.cs
- AnnotationAuthorChangedEventArgs.cs
- CustomSignedXml.cs
- XsltException.cs
- SiteMapDataSource.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WebPartTracker.cs
- TransactionFlowBindingElementImporter.cs
- DetailsView.cs
- StructuralObject.cs
- Cursor.cs
- BitmapScalingModeValidation.cs
- WizardStepBase.cs
- Single.cs
- HttpValueCollection.cs
- CatalogZoneDesigner.cs
- WebPartEventArgs.cs
- KoreanCalendar.cs
- ObjectStorage.cs
- SamlSecurityTokenAuthenticator.cs
- VarRefManager.cs
- UnsafeNetInfoNativeMethods.cs
- NetPeerTcpBindingElement.cs
- FlowNode.cs
- ClassicBorderDecorator.cs
- StrongNameSignatureInformation.cs
- IResourceProvider.cs
- SoapAttributeAttribute.cs
- SessionParameter.cs
- HttpProfileGroupBase.cs
- ExpandedWrapper.cs
- ScriptingRoleServiceSection.cs
- SignedXml.cs
- ToolStripItemImageRenderEventArgs.cs
- EditorPartChrome.cs
- ArrayTypeMismatchException.cs
- ButtonChrome.cs
- AsyncDataRequest.cs
- HostedController.cs
- Processor.cs
- XmlEntityReference.cs
- TextHintingModeValidation.cs
- IndexedEnumerable.cs
- DataGridViewCellMouseEventArgs.cs
- LineServices.cs
- SEHException.cs
- UpdatePanelTriggerCollection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SqlDataSourceCache.cs
- TextServicesCompartmentContext.cs