Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Documents / AdornerHitTestResult.cs / 1 / 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
- EmbeddedObject.cs
- ListBoxItemWrapperAutomationPeer.cs
- CommandDevice.cs
- DataServiceException.cs
- SafeEventLogWriteHandle.cs
- SplitContainer.cs
- TemplateManager.cs
- SafeWaitHandle.cs
- NavigatorInput.cs
- PropertyMap.cs
- XMLUtil.cs
- ResourceDictionary.cs
- EnumBuilder.cs
- DesignerContextDescriptor.cs
- KerberosSecurityTokenParameters.cs
- ImagingCache.cs
- SkinBuilder.cs
- Label.cs
- SqlClientWrapperSmiStreamChars.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- XmlSerializableReader.cs
- SQLDateTime.cs
- XmlBinaryReader.cs
- InlineObject.cs
- WebControlsSection.cs
- ProcessThread.cs
- NullReferenceException.cs
- PropertyInformation.cs
- Html32TextWriter.cs
- TrackBar.cs
- WindowsListViewGroup.cs
- MaskedTextBoxDesignerActionList.cs
- ModelPerspective.cs
- WpfMemberInvoker.cs
- CurrentTimeZone.cs
- ConfigurationElement.cs
- AnimatedTypeHelpers.cs
- ServiceModelStringsVersion1.cs
- WindowsSpinner.cs
- CheckBoxField.cs
- ExceptionHandlers.cs
- SourceChangedEventArgs.cs
- AmbientLight.cs
- MenuItemCollection.cs
- PrintControllerWithStatusDialog.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- LiteralControl.cs
- DesignerWithHeader.cs
- PropertyInformationCollection.cs
- InitializingNewItemEventArgs.cs
- XmlSchemaDocumentation.cs
- Camera.cs
- ServerValidateEventArgs.cs
- GPStream.cs
- WorkflowRuntimeServicesBehavior.cs
- CodeSubDirectory.cs
- BitmapDownload.cs
- UncommonField.cs
- NativeMethodsOther.cs
- BoolLiteral.cs
- DocumentSequenceHighlightLayer.cs
- MappingMetadataHelper.cs
- Condition.cs
- Lease.cs
- SrgsRuleRef.cs
- EntityViewGenerationAttribute.cs
- EpmCustomContentSerializer.cs
- WindowCollection.cs
- AffineTransform3D.cs
- PositiveTimeSpanValidatorAttribute.cs
- DataColumnChangeEvent.cs
- SmtpLoginAuthenticationModule.cs
- ProvidersHelper.cs
- PropertyPathWorker.cs
- BuildProviderCollection.cs
- NamespaceCollection.cs
- TreeNodeMouseHoverEvent.cs
- SingleAnimationBase.cs
- UdpMessageProperty.cs
- EventMappingSettingsCollection.cs
- CompilerState.cs
- AutoResizedEvent.cs
- FixedTextSelectionProcessor.cs
- StyleTypedPropertyAttribute.cs
- FastEncoder.cs
- MessagePropertyDescriptionCollection.cs
- IPGlobalProperties.cs
- _LocalDataStore.cs
- RepeatBehavior.cs
- FillRuleValidation.cs
- EditableRegion.cs
- LocatorGroup.cs
- GeometryValueSerializer.cs
- ThemeInfoAttribute.cs
- PageContentCollection.cs
- FontWeights.cs
- CommandField.cs
- RadioButtonRenderer.cs
- ValidationHelper.cs
- ImageFormatConverter.cs