Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Design / Glyphs / ConnectorDragDropGlyph.cs / 1305376 / ConnectorDragDropGlyph.cs
namespace System.Workflow.ComponentModel.Design { using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; #region Glyphs #region Class ConnectorDragDropGlyph internal sealed class ConnectorDragDropGlyph : DesignerGlyph { private int connectorIndex = 0; private Point glyphPoint = Point.Empty; public ConnectorDragDropGlyph(int connectorIndex, Point connectorCenter) { this.connectorIndex = connectorIndex; AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; this.glyphPoint = new Point(connectorCenter.X - ambientTheme.DropIndicatorSize.Width / 2, connectorCenter.Y - ambientTheme.DropIndicatorSize.Height / 2); } public override Rectangle GetBounds(ActivityDesigner designer, bool activated) { return new Rectangle(this.glyphPoint, WorkflowTheme.CurrentTheme.AmbientTheme.DropIndicatorSize); } protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) { ActivityDesignerPaint.DrawImage(graphics, AmbientTheme.DropIndicatorImage, GetBounds(designer, activated), DesignerContentAlignment.Fill); } public override int Priority { get { return DesignerGlyph.ConnectorDragDropPriority; } } } #endregion #endregion } // 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
- QueryStringParameter.cs
- columnmapkeybuilder.cs
- HandleExceptionArgs.cs
- ConsumerConnectionPointCollection.cs
- BamlReader.cs
- DbDataAdapter.cs
- ConfigurationPermission.cs
- XmlAtomicValue.cs
- ReadOnlyDataSource.cs
- ReadOnlyDictionary.cs
- TypeDescriptionProviderAttribute.cs
- Buffer.cs
- XmlSchemas.cs
- DateBoldEvent.cs
- DesignerTextWriter.cs
- TypeConverterHelper.cs
- BinaryNode.cs
- Queue.cs
- SqlDataAdapter.cs
- FixedHyperLink.cs
- CollectionViewGroupInternal.cs
- ToolboxItemFilterAttribute.cs
- DesignerResources.cs
- SkinBuilder.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- DataGridViewTextBoxColumn.cs
- ItemChangedEventArgs.cs
- TdsParserSafeHandles.cs
- CanonicalFormWriter.cs
- ChangeDirector.cs
- DNS.cs
- NavigationEventArgs.cs
- SerializationInfo.cs
- MembershipValidatePasswordEventArgs.cs
- ObjectDataSourceSelectingEventArgs.cs
- SecurityTokenException.cs
- SchemaAttDef.cs
- xmlglyphRunInfo.cs
- StandardCommandToolStripMenuItem.cs
- ProfileService.cs
- ColumnWidthChangedEvent.cs
- FormsAuthenticationModule.cs
- SQLMembershipProvider.cs
- FlagsAttribute.cs
- LinkArea.cs
- WebPartCollection.cs
- Classification.cs
- TraceHandler.cs
- HighContrastHelper.cs
- ImageIndexConverter.cs
- sqlcontext.cs
- EventLogConfiguration.cs
- NameScopePropertyAttribute.cs
- BuildManagerHost.cs
- SafeProcessHandle.cs
- PrintDialog.cs
- SamlNameIdentifierClaimResource.cs
- XamlSerializer.cs
- AssemblyBuilder.cs
- TypeLoadException.cs
- ProxyWebPartManager.cs
- ToolStripGripRenderEventArgs.cs
- WebBrowserDocumentCompletedEventHandler.cs
- BeginEvent.cs
- PageTheme.cs
- SynchronizedChannelCollection.cs
- Vector3DCollection.cs
- BoundField.cs
- TableLayoutPanelCellPosition.cs
- EntityDataSourceEntityTypeFilterItem.cs
- AppSettingsExpressionBuilder.cs
- FileLogRecordStream.cs
- MeasureItemEvent.cs
- TabControlCancelEvent.cs
- ParameterElementCollection.cs
- ObjectStateFormatter.cs
- GenericUriParser.cs
- DetailsViewRowCollection.cs
- DebugTrace.cs
- DataGridColumnFloatingHeader.cs
- DataRelationCollection.cs
- OrderPreservingSpoolingTask.cs
- ToolBarButton.cs
- ItemType.cs
- MatrixTransform3D.cs
- NullRuntimeConfig.cs
- NullEntityWrapper.cs
- LinearGradientBrush.cs
- RequestQueue.cs
- VisualStyleElement.cs
- SystemMulticastIPAddressInformation.cs
- CompositeActivityTypeDescriptor.cs
- ProfessionalColorTable.cs
- FlowDocumentView.cs
- DCSafeHandle.cs
- DrawingServices.cs
- ContactManager.cs
- DataSourceHelper.cs
- SoapIncludeAttribute.cs
- DbParameterCollectionHelper.cs