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
- InternalRelationshipCollection.cs
- CLSCompliantAttribute.cs
- StringSorter.cs
- GridViewUpdatedEventArgs.cs
- BitmapInitialize.cs
- TableFieldsEditor.cs
- TextBounds.cs
- LayoutInformation.cs
- SoapWriter.cs
- HttpBufferlessInputStream.cs
- TablePatternIdentifiers.cs
- TextElement.cs
- TranslateTransform.cs
- _AutoWebProxyScriptWrapper.cs
- PersonalizationEntry.cs
- ActivityLocationReferenceEnvironment.cs
- SearchExpression.cs
- ProcessThread.cs
- XmlMemberMapping.cs
- PersistChildrenAttribute.cs
- TreeNode.cs
- Vector.cs
- Perspective.cs
- SqlDataSourceFilteringEventArgs.cs
- SourceChangedEventArgs.cs
- ProtocolsSection.cs
- Stackframe.cs
- ExternalException.cs
- AssemblyBuilderData.cs
- ByteFacetDescriptionElement.cs
- RegisteredArrayDeclaration.cs
- XPathChildIterator.cs
- GridViewPageEventArgs.cs
- BindingCompleteEventArgs.cs
- InputElement.cs
- BinaryNode.cs
- EntityObject.cs
- SecurityHelper.cs
- PathSegmentCollection.cs
- PnrpPermission.cs
- StorageComplexPropertyMapping.cs
- DesignTimeDataBinding.cs
- CodeTypeOfExpression.cs
- WebMessageFormatHelper.cs
- MetadataItemSerializer.cs
- FormsAuthenticationEventArgs.cs
- Partitioner.cs
- TrackBar.cs
- TextEditorMouse.cs
- TextOnlyOutput.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DesignerGenericWebPart.cs
- MailAddress.cs
- DataGridViewTopRowAccessibleObject.cs
- CallbackHandler.cs
- BuildProvider.cs
- MetaChildrenColumn.cs
- LazyLoadBehavior.cs
- DBPropSet.cs
- ListenerSessionConnection.cs
- ResXFileRef.cs
- NamespaceList.cs
- HuffCodec.cs
- ClonableStack.cs
- LocationSectionRecord.cs
- DefaultBindingPropertyAttribute.cs
- TrackingProfile.cs
- Vector3DValueSerializer.cs
- FileSecurity.cs
- Constants.cs
- ThreadStateException.cs
- WebServiceTypeData.cs
- IgnorePropertiesAttribute.cs
- Events.cs
- AssemblySettingAttributes.cs
- TagNameToTypeMapper.cs
- CharConverter.cs
- InheritanceContextHelper.cs
- AttachedPropertyMethodSelector.cs
- LongCountAggregationOperator.cs
- WorkflowApplicationEventArgs.cs
- OleDbCommand.cs
- Html32TextWriter.cs
- bidPrivateBase.cs
- TileBrush.cs
- BezierSegment.cs
- Pkcs7Signer.cs
- PolicyConversionContext.cs
- NativeMethods.cs
- Row.cs
- EncoderBestFitFallback.cs
- MenuCommands.cs
- MultiPageTextView.cs
- ApplicationInfo.cs
- CodeAttributeDeclaration.cs
- ComponentResourceKeyConverter.cs
- ContextInformation.cs
- WorkItem.cs
- UITypeEditor.cs
- xdrvalidator.cs