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
- InputBuffer.cs
- State.cs
- DtdParser.cs
- XLinq.cs
- TransformerInfo.cs
- SmtpDateTime.cs
- CodeCatchClauseCollection.cs
- DropShadowBitmapEffect.cs
- JsonGlobals.cs
- ColorTransform.cs
- AppDomainGrammarProxy.cs
- CatalogZoneBase.cs
- SafePointer.cs
- PropertyCondition.cs
- MatchingStyle.cs
- GroupQuery.cs
- RenderData.cs
- Operand.cs
- PLINQETWProvider.cs
- JumpList.cs
- XomlCompilerHelpers.cs
- MailWebEventProvider.cs
- OracleBinary.cs
- XhtmlBasicCommandAdapter.cs
- CalendarDay.cs
- Annotation.cs
- WebPartConnectionsCancelVerb.cs
- HuffmanTree.cs
- QuestionEventArgs.cs
- ClientScriptManager.cs
- SmtpDigestAuthenticationModule.cs
- ListViewPagedDataSource.cs
- PathTooLongException.cs
- ProgressBar.cs
- TemplateControlParser.cs
- FormatterConverter.cs
- ArgumentNullException.cs
- CdpEqualityComparer.cs
- SqlConnectionHelper.cs
- Timer.cs
- RadioButtonRenderer.cs
- GeneralTransform3DTo2DTo3D.cs
- AssemblyCache.cs
- WebBaseEventKeyComparer.cs
- OpenTypeCommon.cs
- SamlSerializer.cs
- Journal.cs
- ExpressionServices.cs
- COM2TypeInfoProcessor.cs
- OLEDB_Enum.cs
- TextDpi.cs
- ContractCodeDomInfo.cs
- PropertiesTab.cs
- ArrayElementGridEntry.cs
- Missing.cs
- IncrementalReadDecoders.cs
- SecurityKeyIdentifierClause.cs
- XPathItem.cs
- XslException.cs
- ChangeConflicts.cs
- util.cs
- LinkClickEvent.cs
- SchemaImporter.cs
- TextEffect.cs
- DecoderReplacementFallback.cs
- LabelDesigner.cs
- NamespaceQuery.cs
- BitmapEffectInputData.cs
- TypeLibConverter.cs
- ComAdminInterfaces.cs
- WindowsPrincipal.cs
- BehaviorService.cs
- RectangleHotSpot.cs
- CodeAccessSecurityEngine.cs
- SoapParser.cs
- CategoryAttribute.cs
- NavigationHelper.cs
- MarshalDirectiveException.cs
- FormViewRow.cs
- WindowsScroll.cs
- ISessionStateStore.cs
- EntitySet.cs
- SmiRequestExecutor.cs
- SHA256.cs
- Executor.cs
- XmlUtil.cs
- KeyNotFoundException.cs
- smtppermission.cs
- MetadataItemEmitter.cs
- ListViewGroupConverter.cs
- IndicCharClassifier.cs
- IxmlLineInfo.cs
- ClientCultureInfo.cs
- ErrorCodes.cs
- ExecutorLocksHeldException.cs
- WeakEventTable.cs
- DataGridRelationshipRow.cs
- SystemIPInterfaceStatistics.cs
- PerfCounterSection.cs
- RenderData.cs