Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / StateDesigner.CommentLayoutGlyph.cs / 1305376 / StateDesigner.CommentLayoutGlyph.cs
namespace System.Workflow.Activities { using System; using System.Text; using System.Reflection; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing.Design; using System.Drawing; using System.Drawing.Drawing2D; using System.Diagnostics; using System.IO; using System.Windows.Forms; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Runtime.Serialization; internal partial class StateDesigner : FreeformActivityDesigner { private class CommentLayoutGlyph : DesignerGlyph { private Layout _layout; public CommentLayoutGlyph(Layout layout) { if (layout == null) throw new ArgumentNullException("layout"); _layout = layout; } public override Rectangle GetBounds(ActivityDesigner designer, bool activated) { if (designer == null) throw new ArgumentNullException("designer"); Rectangle bounds = _layout.Bounds; return bounds; } public override int Priority { get { return DesignerGlyph.NormalPriority; } } protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) { if (designer == null) throw new ArgumentNullException("designer"); if (graphics == null) throw new ArgumentNullException("graphics"); Rectangle bounds = GetBounds(designer, false); graphics.FillRectangle(StateMachineDesignerPaint.FadeBrush, bounds); graphics.FillRectangle(ambientTheme.CommentIndicatorBrush, bounds); graphics.DrawRectangle(ambientTheme.CommentIndicatorPen, bounds); } } } } // 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
- BCLDebug.cs
- TextEditorCharacters.cs
- ThreadExceptionDialog.cs
- DataServiceQueryProvider.cs
- DefaultAuthorizationContext.cs
- DataRelation.cs
- ConversionContext.cs
- PlatformNotSupportedException.cs
- formatter.cs
- FormViewUpdatedEventArgs.cs
- TaiwanLunisolarCalendar.cs
- TabItem.cs
- BaseParser.cs
- WindowsListViewItemCheckBox.cs
- FastEncoderStatics.cs
- Policy.cs
- FormatVersion.cs
- Timeline.cs
- StorageScalarPropertyMapping.cs
- StartUpEventArgs.cs
- VerticalConnector.xaml.cs
- ReliabilityContractAttribute.cs
- UserControl.cs
- TextDecoration.cs
- BitmapEffectState.cs
- BoolExpression.cs
- FilterableAttribute.cs
- SelectedDatesCollection.cs
- ResourceWriter.cs
- HotSpot.cs
- ColorDialog.cs
- ConnectionProviderAttribute.cs
- XPathAxisIterator.cs
- OptimalBreakSession.cs
- NameValueCollection.cs
- SQLInt16.cs
- KeyPullup.cs
- XmlNodeChangedEventManager.cs
- LabelLiteral.cs
- StylusPlugInCollection.cs
- SymbolType.cs
- ConfigXmlReader.cs
- Inflater.cs
- ObjectStateEntryDbDataRecord.cs
- DataGridToolTip.cs
- DispatcherHooks.cs
- ValuePatternIdentifiers.cs
- RegisteredHiddenField.cs
- DmlSqlGenerator.cs
- HttpPostedFileWrapper.cs
- Line.cs
- AnnotationResourceChangedEventArgs.cs
- ThumbAutomationPeer.cs
- SubMenuStyle.cs
- WinFormsUtils.cs
- RectKeyFrameCollection.cs
- followingsibling.cs
- JapaneseCalendar.cs
- EncodingStreamWrapper.cs
- SafeLocalMemHandle.cs
- DbConnectionPoolCounters.cs
- Comparer.cs
- CollectionViewGroup.cs
- COM2PropertyPageUITypeConverter.cs
- InputManager.cs
- LoadMessageLogger.cs
- TrackingQuery.cs
- ResourceReferenceExpressionConverter.cs
- ProfilePropertySettingsCollection.cs
- PageWrapper.cs
- SafeEventLogReadHandle.cs
- SymbolUsageManager.cs
- CommonEndpointBehaviorElement.cs
- XmlSerializerSection.cs
- HttpRuntime.cs
- VarRefManager.cs
- _ContextAwareResult.cs
- ScrollBarRenderer.cs
- SelectionEditor.cs
- ContentValidator.cs
- EntityContainer.cs
- FrameworkRichTextComposition.cs
- HtmlControl.cs
- ObfuscateAssemblyAttribute.cs
- PageThemeBuildProvider.cs
- DesignerAutoFormatCollection.cs
- SystemIcmpV6Statistics.cs
- FullTextBreakpoint.cs
- GradientSpreadMethodValidation.cs
- HtmlElementErrorEventArgs.cs
- UIElementPropertyUndoUnit.cs
- VectorValueSerializer.cs
- DynamicControlParameter.cs
- TransactionScope.cs
- SymmetricKeyWrap.cs
- SoapCodeExporter.cs
- CapacityStreamGeometryContext.cs
- VisualCollection.cs
- ParentQuery.cs
- SecurityChannel.cs