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
- SqlClientMetaDataCollectionNames.cs
- InstanceLockLostException.cs
- RoamingStoreFile.cs
- ReservationNotFoundException.cs
- DataSourceComponent.cs
- TableLayoutStyleCollection.cs
- XmlSchemaObjectTable.cs
- DispatcherTimer.cs
- WorkflowInlining.cs
- DocumentXPathNavigator.cs
- ServiceMoniker.cs
- UpdateManifestForBrowserApplication.cs
- TrackBar.cs
- DashStyle.cs
- WebPageTraceListener.cs
- ProfileSettings.cs
- Registry.cs
- ComplexLine.cs
- Automation.cs
- TemplateControlBuildProvider.cs
- CodeAccessSecurityEngine.cs
- OuterGlowBitmapEffect.cs
- ElapsedEventArgs.cs
- ValueConversionAttribute.cs
- CalendarItem.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DbCommandDefinition.cs
- TransformCollection.cs
- PathStreamGeometryContext.cs
- CompoundFileIOPermission.cs
- SqlDataSourceTableQuery.cs
- Pair.cs
- userdatakeys.cs
- EncoderExceptionFallback.cs
- SemanticResultKey.cs
- DataGridTablesFactory.cs
- FixedTextView.cs
- ListViewEditEventArgs.cs
- IntellisenseTextBox.cs
- RSAOAEPKeyExchangeFormatter.cs
- DbDataRecord.cs
- CultureMapper.cs
- DbMetaDataCollectionNames.cs
- MultiTrigger.cs
- entityreference_tresulttype.cs
- AppSettingsExpressionBuilder.cs
- HttpApplication.cs
- DataSvcMapFileSerializer.cs
- ItemCheckedEvent.cs
- MemberHolder.cs
- VariableAction.cs
- MaskedTextBoxDesignerActionList.cs
- FolderNameEditor.cs
- ServicePoint.cs
- DataGridCell.cs
- InvalidCastException.cs
- IPAddressCollection.cs
- OdbcDataAdapter.cs
- ValidationPropertyAttribute.cs
- EntityDataSourceColumn.cs
- SingleConverter.cs
- ToolStripRenderer.cs
- SrgsText.cs
- TableCellCollection.cs
- NumberFormatInfo.cs
- InsufficientMemoryException.cs
- RegexTypeEditor.cs
- TranslateTransform.cs
- SchemaSetCompiler.cs
- WsatTransactionFormatter.cs
- XmlUtf8RawTextWriter.cs
- DataRecord.cs
- Trace.cs
- ResourceReferenceKeyNotFoundException.cs
- QilBinary.cs
- XmlWriterTraceListener.cs
- Stack.cs
- BinaryParser.cs
- BasicDesignerLoader.cs
- CookielessHelper.cs
- SynchronizedInputHelper.cs
- SemanticTag.cs
- JsonClassDataContract.cs
- GlyphsSerializer.cs
- VoiceInfo.cs
- TreeNodeBinding.cs
- NegotiateStream.cs
- SoapTypeAttribute.cs
- EdmValidator.cs
- ServerIdentity.cs
- Int32AnimationUsingKeyFrames.cs
- Rect.cs
- ReferentialConstraint.cs
- ArrangedElementCollection.cs
- WriteableBitmap.cs
- StringUtil.cs
- Light.cs
- ReadOnlyDataSourceView.cs
- SelectionProviderWrapper.cs
- CodeMemberMethod.cs