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
- DataGridSortCommandEventArgs.cs
- SqlCrossApplyToCrossJoin.cs
- MetaForeignKeyColumn.cs
- Hyperlink.cs
- EpmAttributeNameBuilder.cs
- ServiceX509SecurityTokenProvider.cs
- MatrixConverter.cs
- SafeNativeMethods.cs
- GraphicsContext.cs
- DataContractSerializer.cs
- CodeAttributeDeclaration.cs
- Deflater.cs
- BinaryCommonClasses.cs
- LineSegment.cs
- BinarySerializer.cs
- ResourceDisplayNameAttribute.cs
- TypedTableGenerator.cs
- XLinq.cs
- OAVariantLib.cs
- XPathBinder.cs
- OleDbPermission.cs
- PermissionListSet.cs
- regiisutil.cs
- CodeBinaryOperatorExpression.cs
- WorkflowTransactionOptions.cs
- SerialStream.cs
- PeerTransportCredentialType.cs
- RoleService.cs
- EffectiveValueEntry.cs
- LingerOption.cs
- SchemaImporter.cs
- WebEvents.cs
- SizeKeyFrameCollection.cs
- EntityConnectionStringBuilder.cs
- LineGeometry.cs
- SqlCharStream.cs
- SqlInternalConnectionSmi.cs
- IdentityReference.cs
- PropertySourceInfo.cs
- HttpListenerRequestTraceRecord.cs
- Decimal.cs
- WebBrowserNavigatedEventHandler.cs
- Activity.cs
- Control.cs
- FtpRequestCacheValidator.cs
- FlowDocumentView.cs
- EventDescriptor.cs
- SessionParameter.cs
- TreeNodeCollectionEditorDialog.cs
- SafeFileMapViewHandle.cs
- SqlRemoveConstantOrderBy.cs
- DynamicDiscoveryDocument.cs
- ThreadPool.cs
- ComboBox.cs
- XPathScanner.cs
- sqlcontext.cs
- GridViewItemAutomationPeer.cs
- ProgressBar.cs
- OutputCacheProviderCollection.cs
- QilChoice.cs
- RijndaelCryptoServiceProvider.cs
- EventLevel.cs
- AuthStoreRoleProvider.cs
- XmlArrayAttribute.cs
- AdPostCacheSubstitution.cs
- BezierSegment.cs
- ListParagraph.cs
- Attributes.cs
- SoapElementAttribute.cs
- PolicyException.cs
- CharacterBuffer.cs
- ClientSection.cs
- Utils.cs
- ChildrenQuery.cs
- ValidationError.cs
- WriteTimeStream.cs
- DataSourceCache.cs
- WebPartConnectionsDisconnectVerb.cs
- XmlSchemaInclude.cs
- MemberDomainMap.cs
- ParallelRangeManager.cs
- GridViewRowEventArgs.cs
- DropDownButton.cs
- BamlBinaryReader.cs
- MenuCommand.cs
- DrawToolTipEventArgs.cs
- ClassHandlersStore.cs
- CompilationUtil.cs
- HttpClientChannel.cs
- BooleanConverter.cs
- MessageBox.cs
- InstanceOwnerException.cs
- XmlSchemaDatatype.cs
- ListManagerBindingsCollection.cs
- ServiceCredentialsElement.cs
- AppModelKnownContentFactory.cs
- ErrorCodes.cs
- ToolStripItemDesigner.cs
- PageCatalogPart.cs
- DriveNotFoundException.cs