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
- DataTableExtensions.cs
- HtmlInputImage.cs
- InplaceBitmapMetadataWriter.cs
- SeekStoryboard.cs
- Size.cs
- PermissionAttributes.cs
- PipelineModuleStepContainer.cs
- HtmlInputPassword.cs
- UserPreferenceChangingEventArgs.cs
- EventToken.cs
- ServiceContractViewControl.Designer.cs
- SoapSchemaExporter.cs
- NegatedCellConstant.cs
- MenuItem.cs
- ParserExtension.cs
- AbstractDataSvcMapFileLoader.cs
- RealizedColumnsBlock.cs
- Soap12FormatExtensions.cs
- DefaultBinder.cs
- Border.cs
- Repeater.cs
- DataServiceException.cs
- InputLangChangeRequestEvent.cs
- MaterialGroup.cs
- securestring.cs
- ThicknessConverter.cs
- ObjectListCommandCollection.cs
- EDesignUtil.cs
- SystemBrushes.cs
- IndexingContentUnit.cs
- StagingAreaInputItem.cs
- BitVec.cs
- CommandBindingCollection.cs
- itemelement.cs
- XmlSchemaExternal.cs
- HGlobalSafeHandle.cs
- SQLDateTime.cs
- PackagePart.cs
- EditCommandColumn.cs
- PageSettings.cs
- NeutralResourcesLanguageAttribute.cs
- XPathParser.cs
- precedingquery.cs
- CollectionChangedEventManager.cs
- ColorAnimation.cs
- BitStack.cs
- NumberFormatInfo.cs
- Executor.cs
- SqlDependency.cs
- ArglessEventHandlerProxy.cs
- BitmapImage.cs
- WebHttpDispatchOperationSelectorData.cs
- CellParagraph.cs
- TokenBasedSet.cs
- DataGridViewCell.cs
- IntSecurity.cs
- DateTimeConverter2.cs
- DeflateInput.cs
- BamlLocalizableResourceKey.cs
- COM2ICategorizePropertiesHandler.cs
- AsyncContentLoadedEventArgs.cs
- SqlNodeAnnotation.cs
- InternalsVisibleToAttribute.cs
- SyndicationSerializer.cs
- figurelength.cs
- SchemaMerger.cs
- ConstantExpression.cs
- MetadataCache.cs
- Content.cs
- HttpEncoderUtility.cs
- XslAst.cs
- RegexParser.cs
- EventTrigger.cs
- CustomWebEventKey.cs
- WebPartUserCapability.cs
- Variable.cs
- DesignSurfaceEvent.cs
- QueryOperationResponseOfT.cs
- Page.cs
- XPathNodePointer.cs
- CapabilitiesUse.cs
- OleDbParameterCollection.cs
- SqlBinder.cs
- ColorBuilder.cs
- GridSplitter.cs
- OdbcConnectionPoolProviderInfo.cs
- ProxyWebPartManager.cs
- UInt64Storage.cs
- ContractMapping.cs
- ListBoxItem.cs
- ArcSegment.cs
- ChangeProcessor.cs
- WebSysDisplayNameAttribute.cs
- TdsParser.cs
- MD5.cs
- SoapHeaders.cs
- WindowsListViewSubItem.cs
- InternalsVisibleToAttribute.cs
- ComponentGlyph.cs
- KeyedHashAlgorithm.cs