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
- GeometryDrawing.cs
- ActivityDefaults.cs
- _SslState.cs
- WebHttpSecurity.cs
- NotCondition.cs
- VoiceChangeEventArgs.cs
- XPathEmptyIterator.cs
- PartialArray.cs
- SQLBytes.cs
- TypeReference.cs
- MemberJoinTreeNode.cs
- XmlSchemaSequence.cs
- ClientScriptManagerWrapper.cs
- HtmlTableCell.cs
- DeflateStream.cs
- EntityAdapter.cs
- TextSimpleMarkerProperties.cs
- EntityTypeEmitter.cs
- OnOperation.cs
- XmlSchemaComplexContentExtension.cs
- ValidatingReaderNodeData.cs
- MembershipUser.cs
- ExceptionUtil.cs
- WindowAutomationPeer.cs
- SynchronizedInputPattern.cs
- XmlSecureResolver.cs
- ImageListUtils.cs
- OrderedEnumerableRowCollection.cs
- UdpDiscoveryEndpoint.cs
- cryptoapiTransform.cs
- PeerUnsafeNativeMethods.cs
- WindowsFormsLinkLabel.cs
- OpCodes.cs
- CodeAccessPermission.cs
- Graphics.cs
- _NtlmClient.cs
- TextEditor.cs
- ExpressionVisitor.cs
- IpcChannelHelper.cs
- DropShadowBitmapEffect.cs
- EditingScope.cs
- XmlSchemaValidationException.cs
- RunWorkerCompletedEventArgs.cs
- DbMetaDataColumnNames.cs
- LocalizableAttribute.cs
- EmptyEnumerator.cs
- MatrixStack.cs
- AmbientProperties.cs
- DbModificationClause.cs
- ClientRuntimeConfig.cs
- StylusShape.cs
- CodeFieldReferenceExpression.cs
- TreeNodeCollection.cs
- WebControlsSection.cs
- errorpatternmatcher.cs
- XmlBaseReader.cs
- DebugView.cs
- AdornedElementPlaceholder.cs
- DataControlButton.cs
- IUnknownConstantAttribute.cs
- CardSpaceSelector.cs
- Select.cs
- XmlImplementation.cs
- WindowsStreamSecurityBindingElement.cs
- SchemaMapping.cs
- TreeChangeInfo.cs
- HwndProxyElementProvider.cs
- SectionUpdates.cs
- MenuItemBindingCollection.cs
- OdbcParameterCollection.cs
- GridErrorDlg.cs
- RtfToXamlLexer.cs
- ModelItem.cs
- DefaultObjectMappingItemCollection.cs
- HashMembershipCondition.cs
- SafeMILHandle.cs
- Scene3D.cs
- PtsHost.cs
- MorphHelpers.cs
- GraphicsContext.cs
- ToolboxDataAttribute.cs
- SettingsPropertyNotFoundException.cs
- XmlFormatReaderGenerator.cs
- Bits.cs
- CalendarData.cs
- XmlSchemaSimpleTypeList.cs
- TypeDependencyAttribute.cs
- TextUtf8RawTextWriter.cs
- Exception.cs
- InputScopeConverter.cs
- TemplateColumn.cs
- CreateUserWizard.cs
- SequenceFullException.cs
- XmlSchemaSimpleTypeUnion.cs
- SchemaImporterExtensionElement.cs
- HttpRequestBase.cs
- TextSyndicationContent.cs
- DateTimeFormat.cs
- ConvertersCollection.cs
- InvalidWorkflowException.cs