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
- AppDomainAttributes.cs
- HttpBrowserCapabilitiesWrapper.cs
- FileStream.cs
- MimeTypeMapper.cs
- DataGridViewCellValueEventArgs.cs
- BooleanAnimationBase.cs
- XmlQualifiedName.cs
- Int32.cs
- XmlnsDefinitionAttribute.cs
- FormClosedEvent.cs
- Rect3D.cs
- HasCopySemanticsAttribute.cs
- DuplicateWaitObjectException.cs
- UnauthorizedAccessException.cs
- IndividualDeviceConfig.cs
- ConfigurationPropertyCollection.cs
- TraceSwitch.cs
- Mouse.cs
- NavigatorOutput.cs
- DisplayMemberTemplateSelector.cs
- TagMapInfo.cs
- CustomAssemblyResolver.cs
- EventMappingSettingsCollection.cs
- ReferenceService.cs
- TemplatedWizardStep.cs
- StorageMappingItemLoader.cs
- XhtmlBasicCalendarAdapter.cs
- TextDocumentView.cs
- TimerElapsedEvenArgs.cs
- XmlSchemaInclude.cs
- IdentityModelDictionary.cs
- CodeExporter.cs
- RelationshipFixer.cs
- PathGradientBrush.cs
- SymLanguageType.cs
- base64Transforms.cs
- InvokeGenerator.cs
- MutexSecurity.cs
- Attributes.cs
- Int16AnimationUsingKeyFrames.cs
- XmlSchemaAppInfo.cs
- TextParagraphView.cs
- XamlToRtfWriter.cs
- GenerateScriptTypeAttribute.cs
- LogLogRecordHeader.cs
- RectangleConverter.cs
- EditorOptionAttribute.cs
- WebMessageEncodingBindingElement.cs
- Privilege.cs
- NamedElement.cs
- BreadCrumbTextConverter.cs
- XPathAncestorQuery.cs
- AnnotationResourceChangedEventArgs.cs
- ArrayWithOffset.cs
- EntityClientCacheKey.cs
- ToolboxDataAttribute.cs
- ArraySet.cs
- WebPartHeaderCloseVerb.cs
- RecognizerBase.cs
- _KerberosClient.cs
- EntityViewGenerator.cs
- StringBuilder.cs
- StringResourceManager.cs
- PingOptions.cs
- COM2TypeInfoProcessor.cs
- PolygonHotSpot.cs
- XmlSchemaIdentityConstraint.cs
- PreservationFileReader.cs
- Lasso.cs
- HierarchicalDataSourceIDConverter.cs
- NamedObject.cs
- ChainedAsyncResult.cs
- SecurityTokenProvider.cs
- WindowsSlider.cs
- HtmlHead.cs
- ScrollChrome.cs
- ISAPIRuntime.cs
- WebResponse.cs
- LogFlushAsyncResult.cs
- PointAnimation.cs
- StringInfo.cs
- HtmlLabelAdapter.cs
- Query.cs
- ZipIOLocalFileHeader.cs
- DesignerSerializerAttribute.cs
- SchemaHelper.cs
- SerializationObjectManager.cs
- Parsers.cs
- SinglePageViewer.cs
- CharAnimationUsingKeyFrames.cs
- Rect3D.cs
- DataSourceIDConverter.cs
- XmlTextEncoder.cs
- SafeNativeMemoryHandle.cs
- KeyboardDevice.cs
- RubberbandSelector.cs
- XmlQueryCardinality.cs
- SocketElement.cs
- documentsequencetextview.cs
- LambdaCompiler.ControlFlow.cs