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
- DbConnectionFactory.cs
- RotateTransform3D.cs
- HostingEnvironmentException.cs
- EndpointDiscoveryElement.cs
- CodeThrowExceptionStatement.cs
- ProcessHostConfigUtils.cs
- DateTimeConverter2.cs
- RequestCacheValidator.cs
- GridViewDeletedEventArgs.cs
- HtmlControlPersistable.cs
- Win32Interop.cs
- CatalogZone.cs
- DecoderBestFitFallback.cs
- JapaneseLunisolarCalendar.cs
- FontDifferentiator.cs
- DataStorage.cs
- EmptyQuery.cs
- relpropertyhelper.cs
- TracePayload.cs
- Button.cs
- dataSvcMapFileLoader.cs
- MaterialCollection.cs
- SystemWebCachingSectionGroup.cs
- XmlILOptimizerVisitor.cs
- SQLDecimal.cs
- AdornerHitTestResult.cs
- BroadcastEventHelper.cs
- TableLayoutSettingsTypeConverter.cs
- FileDialogPermission.cs
- QueryOptionExpression.cs
- SaveFileDialog.cs
- SequenceQuery.cs
- WebPartVerb.cs
- SamlDelegatingWriter.cs
- ListView.cs
- ModulesEntry.cs
- Constants.cs
- EnumUnknown.cs
- SynchronizedDispatch.cs
- FormViewUpdateEventArgs.cs
- DynamicDocumentPaginator.cs
- PolicyLevel.cs
- Utility.cs
- AttributeInfo.cs
- ParallelTimeline.cs
- listitem.cs
- HashJoinQueryOperatorEnumerator.cs
- WSFederationHttpSecurityElement.cs
- SortExpressionBuilder.cs
- InternalConfigSettingsFactory.cs
- RequiredFieldValidator.cs
- AuthenticationService.cs
- CheckoutException.cs
- ActivityStateQuery.cs
- ColorConvertedBitmap.cs
- RuleSet.cs
- Typography.cs
- SelectorAutomationPeer.cs
- BrowsableAttribute.cs
- JoinSymbol.cs
- oledbconnectionstring.cs
- XmlNamedNodeMap.cs
- MemberBinding.cs
- QueryableDataSourceView.cs
- AppSettingsSection.cs
- Int32Storage.cs
- WebPartConnectionsConfigureVerb.cs
- AsymmetricAlgorithm.cs
- ToolStripMenuItem.cs
- SrgsRulesCollection.cs
- DrawingContextDrawingContextWalker.cs
- GetPageNumberCompletedEventArgs.cs
- BrowsableAttribute.cs
- XmlDictionaryString.cs
- SeverityFilter.cs
- WebConfigurationFileMap.cs
- DecimalAnimationUsingKeyFrames.cs
- PagesSection.cs
- WebPermission.cs
- SiteMapNodeItemEventArgs.cs
- SqlUserDefinedTypeAttribute.cs
- StrokeNode.cs
- Condition.cs
- PageThemeCodeDomTreeGenerator.cs
- SqlUnionizer.cs
- SID.cs
- CharUnicodeInfo.cs
- CompModSwitches.cs
- SafeBitVector32.cs
- DurableInstanceProvider.cs
- Point3DAnimationBase.cs
- InvalidOperationException.cs
- RelationHandler.cs
- DataSourceCollectionBase.cs
- ToolStripSeparator.cs
- DiscreteKeyFrames.cs
- TextBoxBase.cs
- TablePattern.cs
- PointValueSerializer.cs
- Matrix.cs