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
- TextRangeSerialization.cs
- TextTreeObjectNode.cs
- FlowDocumentReader.cs
- StylusTip.cs
- AuthenticationModuleElementCollection.cs
- ServiceBusyException.cs
- GeneralTransform3DGroup.cs
- JoinCqlBlock.cs
- BindingValueChangedEventArgs.cs
- Point3DIndependentAnimationStorage.cs
- ProcessStartInfo.cs
- DataGridViewTextBoxEditingControl.cs
- SpecialNameAttribute.cs
- NativeMethods.cs
- InstanceKeyNotReadyException.cs
- ToolstripProfessionalRenderer.cs
- EventLogPermissionAttribute.cs
- SafeCertificateStore.cs
- C14NUtil.cs
- XmlSchemaCollection.cs
- JulianCalendar.cs
- HintTextMaxWidthConverter.cs
- EdmProperty.cs
- DispatchChannelSink.cs
- UnitySerializationHolder.cs
- ContractUtils.cs
- StylusPointPropertyId.cs
- _LoggingObject.cs
- Pair.cs
- SettingsProviderCollection.cs
- DrawItemEvent.cs
- GridViewHeaderRowPresenter.cs
- diagnosticsswitches.cs
- StreamWriter.cs
- ExtensionWindow.cs
- ReflectPropertyDescriptor.cs
- DataBindingList.cs
- MeshGeometry3D.cs
- ConfigXmlDocument.cs
- ProfileManager.cs
- Repeater.cs
- WebPartConnectionCollection.cs
- Shared.cs
- DynamicPropertyReader.cs
- ResourceType.cs
- StatusBarItem.cs
- VScrollBar.cs
- ForeignKeyConstraint.cs
- EventLogPermissionEntry.cs
- EngineSiteSapi.cs
- WebContext.cs
- LabelInfo.cs
- CodeStatement.cs
- GraphicsPathIterator.cs
- DocumentPageView.cs
- DataSet.cs
- ObjectListShowCommandsEventArgs.cs
- IteratorFilter.cs
- FormsAuthenticationEventArgs.cs
- SqlError.cs
- AnimationClock.cs
- CodeAssignStatement.cs
- MeshGeometry3D.cs
- MarshalByRefObject.cs
- DesignerForm.cs
- ResourceDictionaryCollection.cs
- DataGridPageChangedEventArgs.cs
- MetadataItem_Static.cs
- PropertyItem.cs
- HttpProfileGroupBase.cs
- MessageHeaderT.cs
- ContractMethodParameterInfo.cs
- SoapAttributes.cs
- InputLangChangeEvent.cs
- QilUnary.cs
- WindowManager.cs
- ConfigurationSection.cs
- HttpCachePolicy.cs
- DynamicPhysicalDiscoSearcher.cs
- DataObject.cs
- ComponentSerializationService.cs
- DataTableCollection.cs
- ProviderConnectionPoint.cs
- SerializationHelper.cs
- CrossSiteScriptingValidation.cs
- COM2Enum.cs
- AttributeData.cs
- ToolStripDropTargetManager.cs
- XMLDiffLoader.cs
- RelatedEnd.cs
- NavigationHelper.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ServiceNameElement.cs
- IPAddress.cs
- FileUtil.cs
- XomlCompilerResults.cs
- XmlEntity.cs
- HttpModuleAction.cs
- AutomationAttributeInfo.cs
- CacheMemory.cs