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
- TemplateBuilder.cs
- CultureInfoConverter.cs
- NextPreviousPagerField.cs
- WebHeaderCollection.cs
- CLRBindingWorker.cs
- ThaiBuddhistCalendar.cs
- ProcessModule.cs
- UriSectionReader.cs
- MenuScrollingVisibilityConverter.cs
- ContextMenu.cs
- ControlBuilderAttribute.cs
- ChunkedMemoryStream.cs
- DataGridTableCollection.cs
- BindingContext.cs
- DataGridComponentEditor.cs
- EndpointDiscoveryElement.cs
- ObjectQuery_EntitySqlExtensions.cs
- ToolStripSeparator.cs
- UserControl.cs
- HttpContextWrapper.cs
- HttpPostedFile.cs
- SynchronizedDispatch.cs
- UseAttributeSetsAction.cs
- XhtmlBasicValidationSummaryAdapter.cs
- InputLanguageCollection.cs
- VectorAnimationBase.cs
- NaturalLanguageHyphenator.cs
- SoapAttributeOverrides.cs
- PriorityBinding.cs
- ObfuscationAttribute.cs
- ReferencedType.cs
- ImpersonateTokenRef.cs
- Volatile.cs
- SqlNode.cs
- WebServiceReceiveDesigner.cs
- ElementNotAvailableException.cs
- GCHandleCookieTable.cs
- unsafenativemethodstextservices.cs
- RegexCapture.cs
- UInt16Storage.cs
- ExpressionEvaluator.cs
- Rectangle.cs
- WorkflowPrinting.cs
- SID.cs
- HttpProfileGroupBase.cs
- odbcmetadatafactory.cs
- IFlowDocumentViewer.cs
- EventProxy.cs
- Win32Exception.cs
- ExtendedPropertyDescriptor.cs
- ipaddressinformationcollection.cs
- FormViewUpdatedEventArgs.cs
- InputScopeConverter.cs
- FlowStep.cs
- WindowsAltTab.cs
- DataServiceRequestOfT.cs
- IdentifierCollection.cs
- UndoUnit.cs
- TraceContext.cs
- ObjectContext.cs
- Point3DAnimationUsingKeyFrames.cs
- PixelShader.cs
- GridToolTip.cs
- DisplayNameAttribute.cs
- FixedStringLookup.cs
- AlphabeticalEnumConverter.cs
- FirewallWrapper.cs
- NetMsmqBindingCollectionElement.cs
- CustomActivityDesigner.cs
- OdbcException.cs
- CellRelation.cs
- HoistedLocals.cs
- HtmlControl.cs
- InitializerFacet.cs
- MailWebEventProvider.cs
- GraphicsPath.cs
- SqlColumnizer.cs
- DrawingAttributes.cs
- DocumentViewer.cs
- FilteredXmlReader.cs
- StylusOverProperty.cs
- FormsIdentity.cs
- UIElementCollection.cs
- AppDomainUnloadedException.cs
- RelatedImageListAttribute.cs
- AbandonedMutexException.cs
- XmlWhitespace.cs
- hresults.cs
- SimpleRecyclingCache.cs
- SafeRightsManagementQueryHandle.cs
- UrlPath.cs
- StylusButton.cs
- TableHeaderCell.cs
- ClaimTypeElementCollection.cs
- CacheModeValueSerializer.cs
- CircleHotSpot.cs
- CqlGenerator.cs
- MimeTypePropertyAttribute.cs
- IndexedString.cs
- MatchNoneMessageFilter.cs