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
- Logging.cs
- ServicesUtilities.cs
- PageBreakRecord.cs
- ToolStripOverflow.cs
- TextSelection.cs
- RootBrowserWindow.cs
- CssClassPropertyAttribute.cs
- MouseEvent.cs
- SafeSecurityHelper.cs
- Thumb.cs
- SerializationInfo.cs
- TemplateColumn.cs
- NativeCppClassAttribute.cs
- EditCommandColumn.cs
- Size3DValueSerializer.cs
- DataTableReaderListener.cs
- GeneralTransform.cs
- PublisherMembershipCondition.cs
- XamlUtilities.cs
- InternalConfigEventArgs.cs
- IgnoreFileBuildProvider.cs
- DesignerActionPanel.cs
- SystemMulticastIPAddressInformation.cs
- Camera.cs
- LinkConverter.cs
- TypeForwardedToAttribute.cs
- FixedDocumentPaginator.cs
- WSHttpBindingBaseElement.cs
- HtmlTableCellCollection.cs
- WebPartDescription.cs
- Transform.cs
- CheckBoxPopupAdapter.cs
- ReadOnlyDataSource.cs
- ObjectParameter.cs
- TemplateInstanceAttribute.cs
- NegotiationTokenAuthenticator.cs
- DbCommandDefinition.cs
- ItemsControlAutomationPeer.cs
- XmlNavigatorFilter.cs
- ChannelCacheDefaults.cs
- MarkupObject.cs
- SocketCache.cs
- ClientFormsAuthenticationMembershipProvider.cs
- DbDataAdapter.cs
- PathFigureCollection.cs
- SourceFileInfo.cs
- x509store.cs
- WinEventWrap.cs
- KeyValueInternalCollection.cs
- ValidationHelper.cs
- DefaultTextStoreTextComposition.cs
- ZipPackagePart.cs
- DataGridViewSortCompareEventArgs.cs
- TableItemStyle.cs
- _IPv6Address.cs
- FunctionQuery.cs
- RenderingEventArgs.cs
- GetLedgerRequest.cs
- Win32Exception.cs
- TypographyProperties.cs
- EntityDataSourceReferenceGroup.cs
- FormsAuthenticationCredentials.cs
- BitmapEffectInput.cs
- InvokePattern.cs
- HttpsChannelFactory.cs
- HelpFileFileNameEditor.cs
- HttpListenerContext.cs
- Empty.cs
- CallbackHandler.cs
- HTMLTagNameToTypeMapper.cs
- ActivityDelegate.cs
- SimpleWorkerRequest.cs
- DeleteIndexBinder.cs
- WebPartZoneBase.cs
- UIElementCollection.cs
- GenericEnumConverter.cs
- ExpressionLexer.cs
- ConsoleTraceListener.cs
- LinqDataSourceEditData.cs
- SwitchLevelAttribute.cs
- RegexMatch.cs
- CustomErrorCollection.cs
- HMACSHA384.cs
- ObjectDataSourceSelectingEventArgs.cs
- DynamicRenderer.cs
- ToolBarTray.cs
- recordstatescratchpad.cs
- QilXmlWriter.cs
- AnnotationStore.cs
- DocumentPageTextView.cs
- NativeObjectSecurity.cs
- ReachFixedPageSerializerAsync.cs
- OdbcConnection.cs
- CodeVariableReferenceExpression.cs
- UnhandledExceptionEventArgs.cs
- KnownBoxes.cs
- MetadataUtilsSmi.cs
- DataTableTypeConverter.cs
- StrongNameMembershipCondition.cs
- SuppressIldasmAttribute.cs