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
- ProfileService.cs
- RTLAwareMessageBox.cs
- WebSysDefaultValueAttribute.cs
- CaseKeyBox.ViewModel.cs
- XmlUrlResolver.cs
- SoapExtension.cs
- MimeObjectFactory.cs
- IOThreadScheduler.cs
- ToolStripOverflow.cs
- EncryptedData.cs
- BaseProcessor.cs
- COM2Properties.cs
- DbCommandTree.cs
- NavigationCommands.cs
- AsyncDataRequest.cs
- EntityDescriptor.cs
- CopyAttributesAction.cs
- BufferedGraphicsManager.cs
- SecurityTokenReferenceStyle.cs
- GridProviderWrapper.cs
- BasicExpressionVisitor.cs
- Nodes.cs
- InheritanceAttribute.cs
- DataGrid.cs
- EntityKeyElement.cs
- PersistenceProviderBehavior.cs
- CoordinationService.cs
- DataBinder.cs
- CngKey.cs
- _LocalDataStoreMgr.cs
- ThreadAbortException.cs
- CheckBoxAutomationPeer.cs
- XmlReader.cs
- ScriptModule.cs
- ChannelHandler.cs
- EventSchemaTraceListener.cs
- BaseTemplateParser.cs
- ImageSourceConverter.cs
- JoinGraph.cs
- SecuritySessionServerSettings.cs
- MD5.cs
- FragmentQueryProcessor.cs
- DataGridViewToolTip.cs
- updateconfighost.cs
- NativeCppClassAttribute.cs
- RequiredFieldValidator.cs
- IpcChannelHelper.cs
- Unit.cs
- Literal.cs
- DataGridCell.cs
- ErrorRuntimeConfig.cs
- PlatformCulture.cs
- HttpProcessUtility.cs
- DesignerForm.cs
- DbgCompiler.cs
- MachineKeyConverter.cs
- ListViewDeletedEventArgs.cs
- Canvas.cs
- oledbmetadatacolumnnames.cs
- XmlIncludeAttribute.cs
- Operators.cs
- BinaryMessageFormatter.cs
- MergeFailedEvent.cs
- OutputCacheProfile.cs
- X509ChainPolicy.cs
- SimpleFieldTemplateUserControl.cs
- ResourceSet.cs
- XslCompiledTransform.cs
- UpdateCommand.cs
- OracleRowUpdatingEventArgs.cs
- StaticDataManager.cs
- ListViewGroup.cs
- EventProviderWriter.cs
- DemultiplexingDispatchMessageFormatter.cs
- ApplicationHost.cs
- TypedColumnHandler.cs
- Model3D.cs
- BrowserCapabilitiesCompiler.cs
- MSG.cs
- StickyNoteAnnotations.cs
- ExpressionNode.cs
- ActivityXamlServices.cs
- WebEventCodes.cs
- GeneralTransform3DGroup.cs
- AssemblyNameProxy.cs
- PackWebResponse.cs
- ReflectionTypeLoadException.cs
- SafeFileMappingHandle.cs
- QuaternionKeyFrameCollection.cs
- XmlSignatureManifest.cs
- SymmetricAlgorithm.cs
- DiffuseMaterial.cs
- ByteRangeDownloader.cs
- TextTreePropertyUndoUnit.cs
- remotingproxy.cs
- AliasedExpr.cs
- QilTypeChecker.cs
- URLAttribute.cs
- PathFigureCollection.cs
- DataGridPreparingCellForEditEventArgs.cs