Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / StateDesigner.LayoutSelectionGlyph.cs / 1305376 / StateDesigner.LayoutSelectionGlyph.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 { ////// Draws the selection retangle around the selected designer /// private class LayoutSelectionGlyph : SelectionGlyph { private Layout _layout; public LayoutSelectionGlyph(Layout layout) { if (layout == null) throw new ArgumentNullException("layout"); _layout = layout; } public override int Priority { get { return DesignerGlyph.HighestPriority; } } public override bool IsPrimarySelection { get { return true; } } public override Rectangle GetBounds(ActivityDesigner designer, bool activated) { if (designer == null) throw new ArgumentNullException("designer"); return _layout.Bounds; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. 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 { ////// Draws the selection retangle around the selected designer /// private class LayoutSelectionGlyph : SelectionGlyph { private Layout _layout; public LayoutSelectionGlyph(Layout layout) { if (layout == null) throw new ArgumentNullException("layout"); _layout = layout; } public override int Priority { get { return DesignerGlyph.HighestPriority; } } public override bool IsPrimarySelection { get { return true; } } public override Rectangle GetBounds(ActivityDesigner designer, bool activated) { if (designer == null) throw new ArgumentNullException("designer"); return _layout.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
- ProfileManager.cs
- FlowLayoutPanelDesigner.cs
- ZoneLinkButton.cs
- CustomAttributeBuilder.cs
- ExceptionHandler.cs
- MediaContext.cs
- XmlnsPrefixAttribute.cs
- PeerObject.cs
- GroupBox.cs
- OleDbRowUpdatedEvent.cs
- BufferedWebEventProvider.cs
- FusionWrap.cs
- XmlChoiceIdentifierAttribute.cs
- SqlDataAdapter.cs
- EntitySqlQueryState.cs
- SplineKeyFrames.cs
- XmlDictionaryReader.cs
- SHA256.cs
- PanelStyle.cs
- HtmlElement.cs
- CustomPopupPlacement.cs
- NativeMethods.cs
- ByteStream.cs
- PerspectiveCamera.cs
- SchemaInfo.cs
- SelectedCellsCollection.cs
- RegistryConfigurationProvider.cs
- XmlDictionaryWriter.cs
- Popup.cs
- XslCompiledTransform.cs
- MouseEventArgs.cs
- IODescriptionAttribute.cs
- _SingleItemRequestCache.cs
- ListParagraph.cs
- SchemaCollectionPreprocessor.cs
- XamlToRtfWriter.cs
- ListView.cs
- RequestContext.cs
- EventTrigger.cs
- ColorBlend.cs
- SimpleMailWebEventProvider.cs
- ClientTargetCollection.cs
- AnimationClockResource.cs
- ApplyTemplatesAction.cs
- EdmError.cs
- DBSchemaRow.cs
- CodeTypeMember.cs
- PagerSettings.cs
- JoinCqlBlock.cs
- LinqDataSourceView.cs
- ProxyBuilder.cs
- WebSysDisplayNameAttribute.cs
- MailBnfHelper.cs
- XPathDescendantIterator.cs
- ButtonColumn.cs
- FunctionQuery.cs
- ParamArrayAttribute.cs
- ButtonBase.cs
- FillErrorEventArgs.cs
- LoadedOrUnloadedOperation.cs
- FrameworkRichTextComposition.cs
- ImageListImageEditor.cs
- DataGridViewRowConverter.cs
- DrawingVisual.cs
- SSmlParser.cs
- DataGridCommandEventArgs.cs
- DataGridViewTopLeftHeaderCell.cs
- NativeMethods.cs
- QueryReaderSettings.cs
- XmlCustomFormatter.cs
- ConstantExpression.cs
- UnlockInstanceAsyncResult.cs
- ApplicationDirectory.cs
- TableItemPattern.cs
- EnterpriseServicesHelper.cs
- NaturalLanguageHyphenator.cs
- VirtualizingStackPanel.cs
- DbParameterCollectionHelper.cs
- ObjectQueryExecutionPlan.cs
- XmlNamespaceDeclarationsAttribute.cs
- HtmlUtf8RawTextWriter.cs
- DocumentOutline.cs
- TraceUtils.cs
- NonValidatingSecurityTokenAuthenticator.cs
- BlockingCollection.cs
- HwndSourceParameters.cs
- SelectedCellsCollection.cs
- CodeAssignStatement.cs
- CompensationDesigner.cs
- ResponseStream.cs
- StringUtil.cs
- AttributeTableBuilder.cs
- QilInvokeEarlyBound.cs
- BaseParaClient.cs
- LambdaSerializationException.cs
- Baml2006ReaderContext.cs
- VerticalConnector.xaml.cs
- TreeView.cs
- XmlSchemaElement.cs
- WebPartDisplayModeCancelEventArgs.cs