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
- DataServiceResponse.cs
- SerializationSectionGroup.cs
- CoreSwitches.cs
- _ProxyChain.cs
- FormViewDeletedEventArgs.cs
- ReflectPropertyDescriptor.cs
- WindowsTab.cs
- BrowserCapabilitiesFactoryBase.cs
- SortedList.cs
- ModelFactory.cs
- RectAnimationBase.cs
- AsyncInvokeOperation.cs
- MenuItem.cs
- LoginView.cs
- Optimizer.cs
- ComponentDispatcherThread.cs
- FigureHelper.cs
- Int16Animation.cs
- ADMembershipProvider.cs
- BackgroundWorker.cs
- LinearQuaternionKeyFrame.cs
- WsatTransactionInfo.cs
- ConfigurationSection.cs
- FastEncoder.cs
- BindingList.cs
- Literal.cs
- AlternationConverter.cs
- WorkflowTraceTransfer.cs
- MouseOverProperty.cs
- EdmToObjectNamespaceMap.cs
- GridItemPattern.cs
- PointAnimationUsingKeyFrames.cs
- ProjectionCamera.cs
- ComboBoxRenderer.cs
- EntityAdapter.cs
- AvTraceDetails.cs
- AnnouncementEventArgs.cs
- DiscreteKeyFrames.cs
- ColorAnimationBase.cs
- UriParserTemplates.cs
- AssemblyCacheEntry.cs
- XPathBinder.cs
- DiscoveryProxy.cs
- ProxyWebPartManager.cs
- WCFServiceClientProxyGenerator.cs
- ServerIdentity.cs
- GridViewSelectEventArgs.cs
- KeyEventArgs.cs
- OleDbParameter.cs
- OracleParameterCollection.cs
- SHA256Managed.cs
- Win32KeyboardDevice.cs
- HttpAsyncResult.cs
- ParameterSubsegment.cs
- PropertySegmentSerializationProvider.cs
- XmlLinkedNode.cs
- EntityDataSourceSelectedEventArgs.cs
- ForEachAction.cs
- FontDriver.cs
- DoubleLinkList.cs
- InternalConfirm.cs
- TemplatePropertyEntry.cs
- DesignerRegion.cs
- QueryCacheEntry.cs
- Pair.cs
- ContainsRowNumberChecker.cs
- DefaultAsyncDataDispatcher.cs
- Vector3dCollection.cs
- XmlSchemaImport.cs
- XmlSchemaComplexType.cs
- EventListener.cs
- TextChange.cs
- Line.cs
- CodeVariableReferenceExpression.cs
- PerspectiveCamera.cs
- TransactionFlowBindingElement.cs
- controlskin.cs
- GroupBox.cs
- ProviderSettingsCollection.cs
- TypeUtils.cs
- FlatButtonAppearance.cs
- ConnectionManagementSection.cs
- CheckedPointers.cs
- ConfigurationPropertyCollection.cs
- HotSpot.cs
- GridViewColumnHeaderAutomationPeer.cs
- ConfigurationStrings.cs
- ResourceDescriptionAttribute.cs
- EventItfInfo.cs
- EventArgs.cs
- StandardMenuStripVerb.cs
- TypeDescriptor.cs
- ZipIOLocalFileHeader.cs
- PointIndependentAnimationStorage.cs
- SqlDependency.cs
- ListViewCancelEventArgs.cs
- ExtensionDataObject.cs
- Operators.cs
- ListViewInsertEventArgs.cs
- TextEditorSelection.cs