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
- HandlerMappingMemo.cs
- ReadContentAsBinaryHelper.cs
- RelationshipEndCollection.cs
- XmlLanguage.cs
- ProjectionCamera.cs
- DependencyPropertyDescriptor.cs
- XamlSerializer.cs
- RayHitTestParameters.cs
- PagedDataSource.cs
- _HTTPDateParse.cs
- CommandHelper.cs
- WithParamAction.cs
- FlowDocumentView.cs
- ContainerControl.cs
- PreservationFileWriter.cs
- FileVersionInfo.cs
- GatewayIPAddressInformationCollection.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridViewSelectedRowCollection.cs
- TimelineGroup.cs
- CodeDomConfigurationHandler.cs
- DataGridViewDataErrorEventArgs.cs
- BamlResourceDeserializer.cs
- EntityDataSourceContainerNameConverter.cs
- MULTI_QI.cs
- SchemaName.cs
- Invariant.cs
- Polygon.cs
- SqlDataSourceFilteringEventArgs.cs
- ExpressionBuilder.cs
- _DisconnectOverlappedAsyncResult.cs
- ImageMapEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- EnumType.cs
- WindowsListViewScroll.cs
- DockProviderWrapper.cs
- SmtpNtlmAuthenticationModule.cs
- FormattedText.cs
- ISFClipboardData.cs
- ModuleBuilder.cs
- NCryptNative.cs
- ProcessThreadCollection.cs
- ContentFilePart.cs
- CacheDependency.cs
- OperationInfoBase.cs
- WorkflowControlClient.cs
- SizeKeyFrameCollection.cs
- XmlWrappingWriter.cs
- SBCSCodePageEncoding.cs
- XmlMapping.cs
- DocumentViewerBaseAutomationPeer.cs
- BitStack.cs
- SolidColorBrush.cs
- Rotation3DKeyFrameCollection.cs
- RunWorkerCompletedEventArgs.cs
- TextDecorationLocationValidation.cs
- PackagePart.cs
- Rights.cs
- HeaderPanel.cs
- Image.cs
- TimersDescriptionAttribute.cs
- StateBag.cs
- InvalidAsynchronousStateException.cs
- ListBase.cs
- NativeMethodsOther.cs
- Perspective.cs
- Update.cs
- CheckedListBox.cs
- JsonWriter.cs
- JournalEntryListConverter.cs
- XPathSelfQuery.cs
- SubclassTypeValidatorAttribute.cs
- RouteUrlExpressionBuilder.cs
- DateRangeEvent.cs
- IProvider.cs
- StringSource.cs
- ConsumerConnectionPoint.cs
- DataKey.cs
- MemoryMappedView.cs
- CodePrimitiveExpression.cs
- InvalidOleVariantTypeException.cs
- ConfigurationConverterBase.cs
- AnimationStorage.cs
- TraceListener.cs
- AddInControllerImpl.cs
- BindingExpression.cs
- ScriptingProfileServiceSection.cs
- ConsoleTraceListener.cs
- BitmapDownload.cs
- GenericXmlSecurityToken.cs
- FilterableAttribute.cs
- LinqDataSourceContextEventArgs.cs
- GACIdentityPermission.cs
- InputProcessorProfilesLoader.cs
- CompilerErrorCollection.cs
- RootProfilePropertySettingsCollection.cs
- CompressEmulationStream.cs
- Size.cs
- BinaryReader.cs
- LinqDataSourceHelper.cs