Code:
/ DotNET / DotNET / 8.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
- TextDocumentView.cs
- WebPartTransformer.cs
- DomainUpDown.cs
- SerializerWriterEventHandlers.cs
- AsymmetricSignatureFormatter.cs
- DataRecordObjectView.cs
- AsymmetricSignatureDeformatter.cs
- HuffmanTree.cs
- FontFamily.cs
- ParserStreamGeometryContext.cs
- CaseInsensitiveOrdinalStringComparer.cs
- LessThan.cs
- CommonProperties.cs
- WebBrowserSiteBase.cs
- AppDomainGrammarProxy.cs
- WindowHideOrCloseTracker.cs
- StrokeFIndices.cs
- RowToFieldTransformer.cs
- CompilerCollection.cs
- TreeNodeCollection.cs
- ApplicationProxyInternal.cs
- SeparatorAutomationPeer.cs
- KoreanCalendar.cs
- JournalEntry.cs
- DefaultValueAttribute.cs
- ValidationSummaryDesigner.cs
- SqlFormatter.cs
- QueryableDataSourceView.cs
- CellQuery.cs
- Operators.cs
- validationstate.cs
- NamedElement.cs
- DirectionalLight.cs
- Int64Converter.cs
- SqlRowUpdatingEvent.cs
- TraceLevelStore.cs
- MaskedTextBoxDesigner.cs
- ManagedIStream.cs
- ToolStripItemClickedEventArgs.cs
- Stack.cs
- BindingsCollection.cs
- Pkcs7Signer.cs
- GridView.cs
- InternalRelationshipCollection.cs
- ExpressionPrinter.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ContentFilePart.cs
- LambdaExpression.cs
- DataKeyArray.cs
- Sql8ExpressionRewriter.cs
- SchemaCollectionCompiler.cs
- StorageRoot.cs
- PlanCompilerUtil.cs
- EventlogProvider.cs
- SiteMapNodeItem.cs
- DrawingBrush.cs
- CodeTypeDeclarationCollection.cs
- GenericUriParser.cs
- Button.cs
- OLEDB_Enum.cs
- Duration.cs
- SelectorItemAutomationPeer.cs
- SevenBitStream.cs
- JournalNavigationScope.cs
- HtmlImage.cs
- WsatExtendedInformation.cs
- NativeMethods.cs
- SiteMapDataSource.cs
- XmlQueryRuntime.cs
- RepeaterItem.cs
- LinqTreeNodeEvaluator.cs
- SpellerStatusTable.cs
- Point.cs
- MarkupExtensionParser.cs
- SafeHandles.cs
- RadioButton.cs
- FixedSOMGroup.cs
- ImageMetadata.cs
- _BaseOverlappedAsyncResult.cs
- ConfigurationException.cs
- CacheMemory.cs
- EncryptedData.cs
- SourceElementsCollection.cs
- MetafileEditor.cs
- XmlAttributes.cs
- DefaultConfirmation.cs
- XmlEncodedRawTextWriter.cs
- HTMLTextWriter.cs
- Update.cs
- isolationinterop.cs
- StackBuilderSink.cs
- TreeViewEvent.cs
- ReadOnlyDataSource.cs
- Label.cs
- Panel.cs
- PropertyGridCommands.cs
- StylusButtonEventArgs.cs
- RoleManagerSection.cs
- DoubleAnimationClockResource.cs
- BStrWrapper.cs