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
- MetaModel.cs
- PackageRelationshipCollection.cs
- WorkflowServiceAttributes.cs
- SignatureResourcePool.cs
- PeerCollaborationPermission.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- WebPartZone.cs
- StylusButton.cs
- HeaderCollection.cs
- LinqDataSourceDeleteEventArgs.cs
- AQNBuilder.cs
- ComNativeDescriptor.cs
- Utility.cs
- ColorConvertedBitmapExtension.cs
- DefaultValidator.cs
- XPathDescendantIterator.cs
- NameValuePermission.cs
- CellQuery.cs
- LocatorBase.cs
- FlowDocumentView.cs
- RijndaelManagedTransform.cs
- RotateTransform.cs
- DataGridViewBand.cs
- CollectionConverter.cs
- LOSFormatter.cs
- SolidBrush.cs
- InteropExecutor.cs
- SimpleHandlerFactory.cs
- XNodeValidator.cs
- ConfigXmlText.cs
- ImageIndexEditor.cs
- CriticalFinalizerObject.cs
- JournalEntryStack.cs
- SqlParameterCollection.cs
- OdbcConnection.cs
- QuaternionAnimationUsingKeyFrames.cs
- CryptoProvider.cs
- ItemCheckEvent.cs
- CustomCategoryAttribute.cs
- OrderPreservingPipeliningMergeHelper.cs
- DirectionalLight.cs
- Application.cs
- SplitterEvent.cs
- FormatException.cs
- HwndProxyElementProvider.cs
- MethodAccessException.cs
- HostSecurityManager.cs
- DesignTimeVisibleAttribute.cs
- SizeChangedInfo.cs
- TextEncodedRawTextWriter.cs
- Debug.cs
- ApplicationContext.cs
- FixedFindEngine.cs
- Misc.cs
- RoleGroupCollectionEditor.cs
- FamilyCollection.cs
- RepeaterItemCollection.cs
- FieldMetadata.cs
- CompositionTarget.cs
- FaultHandlingFilter.cs
- CombinedGeometry.cs
- ManifestResourceInfo.cs
- PageWrapper.cs
- XmlChildEnumerator.cs
- TimelineClockCollection.cs
- ParameterModifier.cs
- ClientApiGenerator.cs
- CompositeActivityValidator.cs
- UnsafeNativeMethods.cs
- Transform3D.cs
- StdValidatorsAndConverters.cs
- SoapAttributeAttribute.cs
- PagePropertiesChangingEventArgs.cs
- Rect.cs
- Triplet.cs
- MediaPlayer.cs
- compensatingcollection.cs
- CellConstantDomain.cs
- NetTcpBindingCollectionElement.cs
- COM2ICategorizePropertiesHandler.cs
- Wildcard.cs
- WorkItem.cs
- ProcessHostConfigUtils.cs
- EventLogSession.cs
- AuthenticatingEventArgs.cs
- HiddenFieldPageStatePersister.cs
- StylusDownEventArgs.cs
- MbpInfo.cs
- ParagraphResult.cs
- RepeatButton.cs
- SafeCryptoHandles.cs
- InterleavedZipPartStream.cs
- SystemTcpStatistics.cs
- XmlLoader.cs
- TabOrder.cs
- HtmlInputButton.cs
- ChannelManager.cs
- ChangePassword.cs
- CornerRadiusConverter.cs
- DbConnectionPoolGroupProviderInfo.cs