Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Design / Glyphs / ReadOnlyActivityGlyph.cs / 1305376 / ReadOnlyActivityGlyph.cs
namespace System.Workflow.ComponentModel.Design { using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; #region Glyphs #region Class ReadOnlyActivityGlyph //Class is internal but not sealed as we dont expect the ActivityDesigner writers to supply their own //Glyph instead based on comment property comment glyph is shown //Exception: StripItemCommentGlyph public class ReadOnlyActivityGlyph : DesignerGlyph { public override Rectangle GetBounds(ActivityDesigner designer, bool activated) { if (designer == null) throw new ArgumentNullException("designer"); Rectangle bounds = designer.Bounds; bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.Margin); return bounds; } public override int Priority { get { return DesignerGlyph.ReadOnlyGlyphPriority; } } protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) { Rectangle bounds = GetBounds(designer, activated); bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.Margin); ActivityDesignerPaint.DrawImage(graphics, AmbientTheme.ReadOnlyImage, bounds, DesignerContentAlignment.TopLeft); } } #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
- CriticalExceptions.cs
- EventTask.cs
- BaseResourcesBuildProvider.cs
- TabletCollection.cs
- keycontainerpermission.cs
- cache.cs
- log.cs
- WindowVisualStateTracker.cs
- SoapReflector.cs
- MenuRendererStandards.cs
- ListParaClient.cs
- RotateTransform3D.cs
- CellRelation.cs
- SqlNotificationEventArgs.cs
- SecureUICommand.cs
- HostingEnvironmentException.cs
- QilReference.cs
- IERequestCache.cs
- WebPartHelpVerb.cs
- ImmutableAssemblyCacheEntry.cs
- RoleManagerSection.cs
- GeometryDrawing.cs
- PropertyInfo.cs
- ListCollectionView.cs
- SQLDecimalStorage.cs
- JoinGraph.cs
- Part.cs
- Set.cs
- ReadOnlyDictionary.cs
- UnsafeNativeMethods.cs
- GraphicsPath.cs
- TriggerBase.cs
- DBPropSet.cs
- PassportAuthenticationEventArgs.cs
- ZipIOLocalFileHeader.cs
- ArraySet.cs
- XNodeSchemaApplier.cs
- Automation.cs
- coordinatorfactory.cs
- CodeSubDirectoriesCollection.cs
- MouseActionValueSerializer.cs
- GridViewRowPresenter.cs
- AlternateView.cs
- UniqueIdentifierService.cs
- WebMessageBodyStyleHelper.cs
- SecureEnvironment.cs
- XmlIlGenerator.cs
- Form.cs
- Ops.cs
- QueryRewriter.cs
- SymbolTable.cs
- COM2PropertyPageUITypeConverter.cs
- TraceSource.cs
- HitTestWithPointDrawingContextWalker.cs
- IsolationInterop.cs
- AudioFormatConverter.cs
- CorrelationQuery.cs
- DataGridRow.cs
- EncryptedType.cs
- CodeGenerator.cs
- InProcStateClientManager.cs
- WebColorConverter.cs
- XMLDiffLoader.cs
- WebPartRestoreVerb.cs
- SqlEnums.cs
- RichTextBoxDesigner.cs
- SmiContext.cs
- References.cs
- SecurityDescriptor.cs
- BasicAsyncResult.cs
- WorkflowWebService.cs
- GridLength.cs
- Viewport3DVisual.cs
- OleServicesContext.cs
- SpStreamWrapper.cs
- DataGridView.cs
- ImageConverter.cs
- VideoDrawing.cs
- ItemsPresenter.cs
- login.cs
- GestureRecognitionResult.cs
- errorpatternmatcher.cs
- XPathNodeIterator.cs
- PreviewPrintController.cs
- namescope.cs
- ProjectionQueryOptionExpression.cs
- DataGridViewRowStateChangedEventArgs.cs
- WorkflowLayouts.cs
- PassportPrincipal.cs
- VectorConverter.cs
- ImageInfo.cs
- RecordConverter.cs
- SmtpLoginAuthenticationModule.cs
- WpfKnownMemberInvoker.cs
- ConnectionStringSettings.cs
- Base64Encoder.cs
- XmlValidatingReader.cs
- SplitterEvent.cs
- SmtpNtlmAuthenticationModule.cs
- DbConnectionStringBuilder.cs