Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebFormDesignerActionService.cs / 1 / WebFormDesignerActionService.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Drawing; using System.Drawing.Design; using System.Globalization; using System.Resources; using System.Web.Compilation; using System.Web.UI; ////// public class WebFormsDesignerActionService : DesignerActionService { public WebFormsDesignerActionService(IServiceProvider serviceProvider) : base(serviceProvider) { } protected override void GetComponentDesignerActions(IComponent component, DesignerActionListCollection actionLists) { if (component == null) { throw new ArgumentNullException("component"); } if (actionLists == null) { throw new ArgumentNullException("actionLists"); } IServiceContainer sc = component.Site as IServiceContainer; if (sc != null) { DesignerCommandSet dcs = (DesignerCommandSet)sc.GetService(typeof(DesignerCommandSet)); if (dcs != null) { DesignerActionListCollection pullCollection = dcs.ActionLists; if (pullCollection != null) { actionLists.AddRange(pullCollection); } } // if we don't find any, add the verbs for this component there... if ((actionLists.Count == 0) || ((actionLists.Count == 1) && (actionLists[0] is ControlDesigner.ControlDesignerActionList))) { DesignerVerbCollection verbs = dcs.Verbs; if (verbs != null && verbs.Count != 0) { DesignerVerb[] verbsArray = new DesignerVerb[verbs.Count]; verbs.CopyTo(verbsArray, 0); actionLists.Add(new DesignerActionVerbList(verbsArray)); } } } } } } // 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
- TypedReference.cs
- FlowLayout.cs
- CellLabel.cs
- HtmlFormWrapper.cs
- TreeNodeBinding.cs
- TypeHelpers.cs
- XhtmlBasicCalendarAdapter.cs
- WorkflowTraceTransfer.cs
- ObjectToken.cs
- TableCellCollection.cs
- Compensation.cs
- StatusBarItemAutomationPeer.cs
- XmlSerializerVersionAttribute.cs
- DataContractSerializer.cs
- AuthorizationSection.cs
- EnvironmentPermission.cs
- PassportPrincipal.cs
- Rfc2898DeriveBytes.cs
- OdbcCommandBuilder.cs
- RowParagraph.cs
- DataGridRowAutomationPeer.cs
- PerspectiveCamera.cs
- MultitargetingHelpers.cs
- ToolStripDesignerUtils.cs
- WebBrowserNavigatingEventHandler.cs
- ToolTipAutomationPeer.cs
- RNGCryptoServiceProvider.cs
- BrowserCapabilitiesFactory.cs
- DesignerLinkAdapter.cs
- FrameworkContentElementAutomationPeer.cs
- WebPartUserCapability.cs
- WindowsSolidBrush.cs
- ResourceAssociationSet.cs
- NativeObjectSecurity.cs
- SafeRsaProviderHandle.cs
- GridItemProviderWrapper.cs
- ContextBase.cs
- ClientUtils.cs
- BrowserDefinition.cs
- CustomErrorsSection.cs
- EnumBuilder.cs
- Comparer.cs
- SingleTagSectionHandler.cs
- DetailsViewCommandEventArgs.cs
- ModelItemKeyValuePair.cs
- JoinElimination.cs
- _ConnectionGroup.cs
- While.cs
- RowType.cs
- TextAdaptor.cs
- EndOfStreamException.cs
- XPathNavigator.cs
- Formatter.cs
- XmlBaseReader.cs
- CustomSignedXml.cs
- SQLSingle.cs
- BindingCollection.cs
- ContextMenu.cs
- DbConnectionClosed.cs
- ParserStreamGeometryContext.cs
- StringCollection.cs
- Table.cs
- NativeMethods.cs
- ImportContext.cs
- DoubleAnimation.cs
- SqlInternalConnection.cs
- SvcMapFileSerializer.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- WebServiceHost.cs
- CustomSignedXml.cs
- BaseWebProxyFinder.cs
- DocumentEventArgs.cs
- AnimationTimeline.cs
- GiveFeedbackEvent.cs
- XmlNodeReader.cs
- PenLineJoinValidation.cs
- Message.cs
- Pkcs7Signer.cs
- WorkflowOperationBehavior.cs
- RadioButtonRenderer.cs
- StylusDownEventArgs.cs
- TextDpi.cs
- XsdBuilder.cs
- ItemAutomationPeer.cs
- CSharpCodeProvider.cs
- ErrorView.xaml.cs
- SqlDependencyListener.cs
- SchemaElement.cs
- ToolStripItemImageRenderEventArgs.cs
- ToolStripContainerActionList.cs
- SequenceFullException.cs
- PropertyItem.cs
- VideoDrawing.cs
- ExecutionTracker.cs
- GeneralTransform3DGroup.cs
- InputQueueChannelAcceptor.cs
- EtwTrace.cs
- Journal.cs
- SqlDataSourceCommandEventArgs.cs
- CollectionsUtil.cs