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
- DetailsViewRowCollection.cs
- IndentTextWriter.cs
- ComboBox.cs
- complextypematerializer.cs
- MiniMapControl.xaml.cs
- HMACRIPEMD160.cs
- MsdtcClusterUtils.cs
- DataRow.cs
- ForeignKeyFactory.cs
- CodeObjectCreateExpression.cs
- XPathDescendantIterator.cs
- ConfigPathUtility.cs
- EventSinkActivity.cs
- COM2Enum.cs
- EdmError.cs
- SerializationInfoEnumerator.cs
- tooltip.cs
- AuthenticationModulesSection.cs
- HtmlInputText.cs
- DesignerWebPartChrome.cs
- FontCollection.cs
- RegexRunnerFactory.cs
- UrlMappingsModule.cs
- SiteOfOriginPart.cs
- XmlNode.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- HttpModuleActionCollection.cs
- SocketManager.cs
- UnconditionalPolicy.cs
- HTTPNotFoundHandler.cs
- DictionaryEntry.cs
- UIElementPropertyUndoUnit.cs
- BmpBitmapDecoder.cs
- ClockGroup.cs
- XamlFilter.cs
- CheckBox.cs
- BackgroundWorker.cs
- IsolatedStoragePermission.cs
- SingleKeyFrameCollection.cs
- MimeWriter.cs
- Pool.cs
- ProgressBarRenderer.cs
- NamespaceList.cs
- TrackBarRenderer.cs
- ScriptServiceAttribute.cs
- ColorBlend.cs
- TextParagraphProperties.cs
- Msec.cs
- QueryCacheKey.cs
- Stackframe.cs
- DataGridHeaderBorder.cs
- SystemTcpStatistics.cs
- bidPrivateBase.cs
- FlowLayout.cs
- XmlReaderSettings.cs
- HMACSHA256.cs
- TriggerBase.cs
- InputLanguageSource.cs
- RestClientProxyHandler.cs
- DataGridTextBoxColumn.cs
- LifetimeServices.cs
- CriticalExceptions.cs
- PropertySourceInfo.cs
- CodeTypeReferenceExpression.cs
- ClickablePoint.cs
- MaterialGroup.cs
- XmlBoundElement.cs
- CompiledQueryCacheKey.cs
- DefaultSection.cs
- AsmxEndpointPickerExtension.cs
- BinaryCommonClasses.cs
- TextElementEditingBehaviorAttribute.cs
- GetIndexBinder.cs
- Page.cs
- StopStoryboard.cs
- UIPermission.cs
- Transform.cs
- PageAsyncTask.cs
- DataSetUtil.cs
- httpstaticobjectscollection.cs
- BackStopAuthenticationModule.cs
- DbDataSourceEnumerator.cs
- SelectionChangedEventArgs.cs
- GPPOINT.cs
- PrintingPermissionAttribute.cs
- ReadonlyMessageFilter.cs
- EmptyEnumerable.cs
- OperationInfoBase.cs
- CacheMemory.cs
- HttpDictionary.cs
- DateTimeConstantAttribute.cs
- Help.cs
- DataTemplateKey.cs
- PropertyInfoSet.cs
- SBCSCodePageEncoding.cs
- Message.cs
- VectorCollectionValueSerializer.cs
- PolyBezierSegmentFigureLogic.cs
- Pkcs7Signer.cs
- BindingCompleteEventArgs.cs