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
- GACMembershipCondition.cs
- BaseValidatorDesigner.cs
- BindingBase.cs
- ADConnectionHelper.cs
- Button.cs
- SmtpFailedRecipientsException.cs
- WorkflowTerminatedException.cs
- TextSegment.cs
- BrowserDefinition.cs
- SvcMapFileLoader.cs
- TableHeaderCell.cs
- AQNBuilder.cs
- DataGridCell.cs
- DefinitionBase.cs
- NetTcpSecurity.cs
- SrgsGrammarCompiler.cs
- UrlMappingCollection.cs
- NullReferenceException.cs
- ToolStripAdornerWindowService.cs
- FunctionUpdateCommand.cs
- Identifier.cs
- DelegatedStream.cs
- TaskFormBase.cs
- Authorization.cs
- CalendarDay.cs
- CodeMemberMethod.cs
- ItemsControl.cs
- DataBoundControl.cs
- ContentControl.cs
- PropertyInfoSet.cs
- AdRotator.cs
- XPathArrayIterator.cs
- Stream.cs
- XmlBinaryReader.cs
- _DomainName.cs
- Identity.cs
- BrushValueSerializer.cs
- HtmlInputRadioButton.cs
- RowVisual.cs
- OutputScopeManager.cs
- DataBinding.cs
- DataListItemCollection.cs
- ObjectFullSpanRewriter.cs
- XmlSortKeyAccumulator.cs
- WindowClosedEventArgs.cs
- Pool.cs
- WebErrorHandler.cs
- DesignConnection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- DBDataPermission.cs
- TextDecorationLocationValidation.cs
- CatalogZone.cs
- XamlReader.cs
- XsltCompileContext.cs
- __ComObject.cs
- BrowserDefinition.cs
- FastPropertyAccessor.cs
- QueryOperator.cs
- RenderDataDrawingContext.cs
- ColorKeyFrameCollection.cs
- XmlDocument.cs
- FileEnumerator.cs
- LeftCellWrapper.cs
- RC2CryptoServiceProvider.cs
- ProtocolsConfigurationEntry.cs
- Soap.cs
- TemplateKeyConverter.cs
- XpsDocument.cs
- ShapingWorkspace.cs
- DataTableMapping.cs
- ComplexObject.cs
- FrameworkContentElement.cs
- TypeReference.cs
- LazyTextWriterCreator.cs
- WebPartDisplayMode.cs
- DrawingContextDrawingContextWalker.cs
- FlowLayoutPanelDesigner.cs
- HWStack.cs
- TranslateTransform.cs
- ControlBuilderAttribute.cs
- RedirectionProxy.cs
- OleDbCommandBuilder.cs
- QuaternionAnimationBase.cs
- ReceiveMessageContent.cs
- ServiceReference.cs
- DataServiceQueryException.cs
- XmlUrlResolver.cs
- ConnectionStringsSection.cs
- InputScopeConverter.cs
- FontConverter.cs
- ChangeProcessor.cs
- Int32Converter.cs
- MailWebEventProvider.cs
- CollectionView.cs
- BitmapMetadataEnumerator.cs
- CompilerErrorCollection.cs
- Grant.cs
- SafeArrayRankMismatchException.cs
- LoginView.cs
- PageAsyncTaskManager.cs