Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / AdornerHitTestResult.cs / 1305600 / AdornerHitTestResult.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: // AdornerHitTestResult class, used to return the result from // a call to AdornerLayer.AdornerHitTest(). // See spec at: http://avalon/uis/Specs/AdornerLayer%20Spec.htm // // History: // 2/16/2004 psarrett: Created // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Threading; using System.Collections; using MS.Internal; using System.Windows.Documents; namespace System.Windows.Media { ////// Data provided as a result of calling AdornerLayer.AdornerHitTest(). /// In addition to the visual and point information provided by the base /// class PointHitTestResult, also returns the Adorner that was hit (since /// there may be multiple Visuals in a single Adorner). /// public class AdornerHitTestResult : PointHitTestResult { private readonly Adorner _adorner; ////// Constructor /// /// Visual that was hit /// Point that was hit, in visual's coordinate space /// Adorner that was hit internal AdornerHitTestResult(Visual visual, Point pt, Adorner adorner) : base(visual, pt) { _adorner = adorner; } ////// Returns the visual that was hit. /// public Adorner Adorner { get { return _adorner; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: // AdornerHitTestResult class, used to return the result from // a call to AdornerLayer.AdornerHitTest(). // See spec at: http://avalon/uis/Specs/AdornerLayer%20Spec.htm // // History: // 2/16/2004 psarrett: Created // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Threading; using System.Collections; using MS.Internal; using System.Windows.Documents; namespace System.Windows.Media { ////// Data provided as a result of calling AdornerLayer.AdornerHitTest(). /// In addition to the visual and point information provided by the base /// class PointHitTestResult, also returns the Adorner that was hit (since /// there may be multiple Visuals in a single Adorner). /// public class AdornerHitTestResult : PointHitTestResult { private readonly Adorner _adorner; ////// Constructor /// /// Visual that was hit /// Point that was hit, in visual's coordinate space /// Adorner that was hit internal AdornerHitTestResult(Visual visual, Point pt, Adorner adorner) : base(visual, pt) { _adorner = adorner; } ////// Returns the visual that was hit. /// public Adorner Adorner { get { return _adorner; } } } } // 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
- SessionEndingEventArgs.cs
- basemetadatamappingvisitor.cs
- UriExt.cs
- ChineseLunisolarCalendar.cs
- LineGeometry.cs
- GeometryCollection.cs
- DataSourceProvider.cs
- ActivityExecutorOperation.cs
- SocketInformation.cs
- LinkTarget.cs
- ControlTemplate.cs
- MarshalByValueComponent.cs
- GacUtil.cs
- ReflectEventDescriptor.cs
- ColumnMap.cs
- SubqueryRules.cs
- MatrixCamera.cs
- CompilationLock.cs
- HtmlInputFile.cs
- AssemblyAttributes.cs
- SemaphoreFullException.cs
- DataSourceHelper.cs
- CompletedAsyncResult.cs
- TextTrailingCharacterEllipsis.cs
- DependencyObject.cs
- DynamicQueryableWrapper.cs
- UpdatePanelTriggerCollection.cs
- XmlSchemas.cs
- MarshalByValueComponent.cs
- lengthconverter.cs
- PeerCustomResolverElement.cs
- IssuanceLicense.cs
- ReadOnlyDataSource.cs
- MatrixTransform.cs
- ProfileManager.cs
- SamlAdvice.cs
- Policy.cs
- RegisteredHiddenField.cs
- DesignerVerbCollection.cs
- IgnoreSection.cs
- shaperfactory.cs
- ContextMenuService.cs
- SessionStateUtil.cs
- SecurityBindingElementImporter.cs
- FormsAuthenticationCredentials.cs
- PlatformCulture.cs
- ProfileGroupSettings.cs
- GZipStream.cs
- ColorMatrix.cs
- DecoderReplacementFallback.cs
- UnsafeNetInfoNativeMethods.cs
- FixedPage.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- HttpCookiesSection.cs
- RestHandlerFactory.cs
- DataRowChangeEvent.cs
- XhtmlBasicCommandAdapter.cs
- AdCreatedEventArgs.cs
- DependencyObjectPropertyDescriptor.cs
- StateRuntime.cs
- RewritingValidator.cs
- BreakRecordTable.cs
- FormatSettings.cs
- ActivityExecutionContextCollection.cs
- Point3DAnimationUsingKeyFrames.cs
- WindowsSidIdentity.cs
- ExpanderAutomationPeer.cs
- ContextMenu.cs
- Item.cs
- OleAutBinder.cs
- ImageDrawing.cs
- CounterCreationData.cs
- LogicalTreeHelper.cs
- ClientScriptManager.cs
- XmlDocumentSerializer.cs
- Transform3DGroup.cs
- EncryptedType.cs
- ContractMethodParameterInfo.cs
- TextSchema.cs
- EmptyQuery.cs
- SafeNativeMethods.cs
- NoResizeSelectionBorderGlyph.cs
- AvTraceFormat.cs
- Transactions.cs
- ECDiffieHellman.cs
- GroupDescription.cs
- SqlDeflator.cs
- XmlNamespaceMapping.cs
- DoubleCollection.cs
- StaticSiteMapProvider.cs
- CmsInterop.cs
- RowsCopiedEventArgs.cs
- JsonWriterDelegator.cs
- MimeFormReflector.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- AuthenticationModulesSection.cs
- ClientUtils.cs
- ApplicationTrust.cs
- XpsFilter.cs
- RowBinding.cs