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
- wmiprovider.cs
- ImmutableObjectAttribute.cs
- OdbcCommandBuilder.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- RectValueSerializer.cs
- UriScheme.cs
- OdbcConnectionStringbuilder.cs
- XamlGridLengthSerializer.cs
- LayoutTableCell.cs
- InputLanguageManager.cs
- NameSpaceExtractor.cs
- AssemblyInfo.cs
- ScopeCompiler.cs
- Random.cs
- UxThemeWrapper.cs
- NativeMethods.cs
- BaseParagraph.cs
- TreeView.cs
- SmiMetaDataProperty.cs
- SchemaRegistration.cs
- ResourcesBuildProvider.cs
- CacheModeValueSerializer.cs
- arabicshape.cs
- GridViewPageEventArgs.cs
- CodeNamespaceCollection.cs
- IPCCacheManager.cs
- SmiContextFactory.cs
- Int32.cs
- _SSPIWrapper.cs
- PathTooLongException.cs
- AnnouncementSendsAsyncResult.cs
- WebHeaderCollection.cs
- DesignTimeTemplateParser.cs
- CommandTreeTypeHelper.cs
- DataSourceCacheDurationConverter.cs
- ProgramPublisher.cs
- RoutedEventHandlerInfo.cs
- SingleAnimationUsingKeyFrames.cs
- MDIControlStrip.cs
- DataRelationCollection.cs
- MetadataWorkspace.cs
- _NegotiateClient.cs
- StringReader.cs
- WindowsIdentity.cs
- BindingList.cs
- MemberInfoSerializationHolder.cs
- DomainUpDown.cs
- QualificationDataAttribute.cs
- Accessible.cs
- NativeMethods.cs
- CompositionAdorner.cs
- Array.cs
- PrePostDescendentsWalker.cs
- SqlCommandBuilder.cs
- UniqueConstraint.cs
- FunctionMappingTranslator.cs
- Function.cs
- ToolZone.cs
- XmlObjectSerializerReadContextComplex.cs
- DeclarativeCatalogPart.cs
- EndpointInstanceProvider.cs
- CommandDevice.cs
- IdnElement.cs
- CompilerParameters.cs
- OdbcConnectionFactory.cs
- TypeContext.cs
- ComplexObject.cs
- WrappedIUnknown.cs
- ListViewGroup.cs
- XmlAnyElementAttribute.cs
- ScrollItemPattern.cs
- ProviderException.cs
- SecurityTokenProvider.cs
- ControlCachePolicy.cs
- GridEntry.cs
- ReadOnlyDictionary.cs
- Math.cs
- FreezableCollection.cs
- FixUp.cs
- ButtonChrome.cs
- UIElement.cs
- Atom10FormatterFactory.cs
- DataGridViewTopLeftHeaderCell.cs
- EventsTab.cs
- HashSetDebugView.cs
- TextMetrics.cs
- HttpWebRequestElement.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CellPartitioner.cs
- GcSettings.cs
- Menu.cs
- EnumerationRangeValidationUtil.cs
- mediapermission.cs
- ToolStripPanelRow.cs
- Int16Converter.cs
- XmlNavigatorFilter.cs
- NegationPusher.cs
- ImageSource.cs
- DesignerCalendarAdapter.cs
- ModelItemCollectionImpl.cs