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
- ICspAsymmetricAlgorithm.cs
- LinkUtilities.cs
- Clock.cs
- GridViewSortEventArgs.cs
- EditingMode.cs
- TextOptionsInternal.cs
- BufferModesCollection.cs
- Bidi.cs
- SchemaManager.cs
- MulticastIPAddressInformationCollection.cs
- DecimalConverter.cs
- ThousandthOfEmRealPoints.cs
- ConfigXmlSignificantWhitespace.cs
- ScriptingRoleServiceSection.cs
- ContentFileHelper.cs
- XamlSerializerUtil.cs
- PassportIdentity.cs
- DesignBindingConverter.cs
- DataTableMappingCollection.cs
- FontDifferentiator.cs
- EntityViewGenerator.cs
- Effect.cs
- DataObjectMethodAttribute.cs
- ReadOnlyState.cs
- TextBoxBase.cs
- CultureTableRecord.cs
- Util.cs
- NeutralResourcesLanguageAttribute.cs
- DocumentScope.cs
- CapabilitiesPattern.cs
- EditorAttribute.cs
- AnnotationHelper.cs
- HtmlGenericControl.cs
- ProviderIncompatibleException.cs
- FontFamily.cs
- DispatcherObject.cs
- WebBrowser.cs
- ProcessModelSection.cs
- FontResourceCache.cs
- ForEachDesigner.xaml.cs
- DivideByZeroException.cs
- MessageSecurityProtocol.cs
- Inflater.cs
- EnumValidator.cs
- Base64Stream.cs
- CustomAttribute.cs
- Knowncolors.cs
- MissingMethodException.cs
- ContainerControl.cs
- DataSourceDescriptorCollection.cs
- XPathNodeIterator.cs
- IRCollection.cs
- PostBackTrigger.cs
- SqlDataSourceQueryEditorForm.cs
- PathSegmentCollection.cs
- EnvelopedPkcs7.cs
- RadialGradientBrush.cs
- CollectionChangeEventArgs.cs
- Select.cs
- StorageComplexTypeMapping.cs
- ExcludePathInfo.cs
- RelatedView.cs
- XamlFilter.cs
- ListViewUpdatedEventArgs.cs
- Utilities.cs
- SwitchAttribute.cs
- TextSegment.cs
- CodeArgumentReferenceExpression.cs
- EventLogTraceListener.cs
- PropertyGrid.cs
- CodeMethodInvokeExpression.cs
- MediaPlayer.cs
- MetadataUtilsSmi.cs
- WindowsComboBox.cs
- QueryExecutionOption.cs
- CollectionsUtil.cs
- Annotation.cs
- CallTemplateAction.cs
- _UriSyntax.cs
- ColumnWidthChangedEvent.cs
- SQLMoney.cs
- DataGridViewButtonColumn.cs
- NotImplementedException.cs
- NamedObjectList.cs
- ResourceReferenceKeyNotFoundException.cs
- ConfigXmlAttribute.cs
- SamlAssertion.cs
- SelectionChangedEventArgs.cs
- DataRowView.cs
- ExtenderProviderService.cs
- TreeChangeInfo.cs
- PropertyGridDesigner.cs
- CrossAppDomainChannel.cs
- SqlMethodAttribute.cs
- Line.cs
- SerialStream.cs
- BackgroundFormatInfo.cs
- SystemDiagnosticsSection.cs
- UnauthorizedWebPart.cs
- MsmqTransportElement.cs