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
- SafeReversePInvokeHandle.cs
- WinFormsUtils.cs
- HashCodeCombiner.cs
- TypeConverterHelper.cs
- ExpressionBuilderContext.cs
- GridViewRowEventArgs.cs
- CSharpCodeProvider.cs
- TextProperties.cs
- PingReply.cs
- ListBase.cs
- CqlQuery.cs
- Bits.cs
- SingleStorage.cs
- DesignerVerb.cs
- FlowLayoutSettings.cs
- DesignerCategoryAttribute.cs
- SecurityPermission.cs
- LocatorPartList.cs
- IsolationInterop.cs
- ContentHostHelper.cs
- wgx_sdk_version.cs
- OperatingSystem.cs
- MimeAnyImporter.cs
- UTF8Encoding.cs
- ProfilePropertyMetadata.cs
- WebPartHelpVerb.cs
- DSACryptoServiceProvider.cs
- DesignTimeData.cs
- Vector3DIndependentAnimationStorage.cs
- Point3DCollectionValueSerializer.cs
- Preprocessor.cs
- DbExpressionVisitor_TResultType.cs
- ByteArrayHelperWithString.cs
- LayoutTable.cs
- isolationinterop.cs
- ExceptionWrapper.cs
- DefaultValidator.cs
- IOThreadScheduler.cs
- QuaternionKeyFrameCollection.cs
- DynamicRenderer.cs
- StructuredProperty.cs
- ModuleBuilder.cs
- BitmapSourceSafeMILHandle.cs
- PrimitiveCodeDomSerializer.cs
- PackageRelationshipSelector.cs
- AppModelKnownContentFactory.cs
- TreeViewItem.cs
- MutexSecurity.cs
- StatusStrip.cs
- MULTI_QI.cs
- StyleXamlTreeBuilder.cs
- PromptStyle.cs
- Menu.cs
- ProjectionPruner.cs
- FlowDocumentScrollViewer.cs
- FacetDescriptionElement.cs
- EventTrigger.cs
- Exceptions.cs
- QilXmlReader.cs
- ExpressionBuilderCollection.cs
- DataBindingExpressionBuilder.cs
- ServiceProviders.cs
- Object.cs
- IndexOutOfRangeException.cs
- SqlDataSourceFilteringEventArgs.cs
- TemplateEditingVerb.cs
- FamilyTypefaceCollection.cs
- NameSpaceExtractor.cs
- WorkflowDataContext.cs
- WebPartMenuStyle.cs
- CopyNodeSetAction.cs
- LineServicesCallbacks.cs
- SecurityUtils.cs
- CompilerError.cs
- ObjectConverter.cs
- XmlSchemaSimpleTypeUnion.cs
- ServiceModelReg.cs
- __ComObject.cs
- FixedSOMPage.cs
- SqlCachedBuffer.cs
- TypefaceMap.cs
- StringArrayConverter.cs
- XmlAttributeAttribute.cs
- FrameworkElementFactory.cs
- DomainUpDown.cs
- FusionWrap.cs
- KeyboardEventArgs.cs
- NativeMethods.cs
- ViewCellRelation.cs
- XhtmlMobileTextWriter.cs
- FixedPageProcessor.cs
- GridView.cs
- CustomErrorsSection.cs
- GridViewColumnHeaderAutomationPeer.cs
- DownloadProgressEventArgs.cs
- FloatUtil.cs
- ProvideValueServiceProvider.cs
- DurableEnlistmentState.cs
- SqlInternalConnectionTds.cs
- CreationContext.cs