Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / HitTestFilterBehavior.cs / 1 / HitTestFilterBehavior.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2003 // // File: HitTestFilterBehavior //----------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Threading; using System.Collections; using System.Diagnostics; using MS.Internal; namespace System.Windows.Media { ////// Behavior for filtering visuals while hit tesitng /// // This enum intentionally does not have a [Flags] attribute. Internally we break this enum // into flags, but the enum values already contain all legal combinations. Users should not // be combining these flags. (Windows OS #1010970) public enum HitTestFilterBehavior { ////// Hit test against current visual and not its children. /// ContinueSkipChildren = HTFBInterpreter.c_DoHitTest, ////// Do not hit test against current visual or its children. /// ContinueSkipSelfAndChildren = 0, ////// Do not hit test against current visual but hit test against children. /// ContinueSkipSelf = HTFBInterpreter.c_IncludeChidren, ////// Hit test against current visual and children. /// Continue = HTFBInterpreter.c_DoHitTest | HTFBInterpreter.c_IncludeChidren, ////// Stop any further hit testing and return. /// Stop = HTFBInterpreter.c_Stop } ////// Delegate for hit tester to control whether to test against the /// current scene graph node. /// public delegate HitTestFilterBehavior HitTestFilterCallback(DependencyObject potentialHitTestTarget); // Static helper class with methods for interpreting the HitTestFilterBehavior enum. internal static class HTFBInterpreter { internal const int c_DoHitTest = (1 << 1); internal const int c_IncludeChidren = (1 << 2); internal const int c_Stop = (1 << 3); internal static bool DoHitTest(HitTestFilterBehavior behavior) { return (((int)behavior) & c_DoHitTest) == c_DoHitTest; } internal static bool IncludeChildren(HitTestFilterBehavior behavior) { return (((int)behavior) & c_IncludeChidren) == c_IncludeChidren; } internal static bool Stop(HitTestFilterBehavior behavior) { return (((int)behavior) & c_Stop) == c_Stop; } internal static bool SkipSubgraph(HitTestFilterBehavior behavior) { return behavior == HitTestFilterBehavior.ContinueSkipSelfAndChildren; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2003 // // File: HitTestFilterBehavior //----------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Threading; using System.Collections; using System.Diagnostics; using MS.Internal; namespace System.Windows.Media { ////// Behavior for filtering visuals while hit tesitng /// // This enum intentionally does not have a [Flags] attribute. Internally we break this enum // into flags, but the enum values already contain all legal combinations. Users should not // be combining these flags. (Windows OS #1010970) public enum HitTestFilterBehavior { ////// Hit test against current visual and not its children. /// ContinueSkipChildren = HTFBInterpreter.c_DoHitTest, ////// Do not hit test against current visual or its children. /// ContinueSkipSelfAndChildren = 0, ////// Do not hit test against current visual but hit test against children. /// ContinueSkipSelf = HTFBInterpreter.c_IncludeChidren, ////// Hit test against current visual and children. /// Continue = HTFBInterpreter.c_DoHitTest | HTFBInterpreter.c_IncludeChidren, ////// Stop any further hit testing and return. /// Stop = HTFBInterpreter.c_Stop } ////// Delegate for hit tester to control whether to test against the /// current scene graph node. /// public delegate HitTestFilterBehavior HitTestFilterCallback(DependencyObject potentialHitTestTarget); // Static helper class with methods for interpreting the HitTestFilterBehavior enum. internal static class HTFBInterpreter { internal const int c_DoHitTest = (1 << 1); internal const int c_IncludeChidren = (1 << 2); internal const int c_Stop = (1 << 3); internal static bool DoHitTest(HitTestFilterBehavior behavior) { return (((int)behavior) & c_DoHitTest) == c_DoHitTest; } internal static bool IncludeChildren(HitTestFilterBehavior behavior) { return (((int)behavior) & c_IncludeChidren) == c_IncludeChidren; } internal static bool Stop(HitTestFilterBehavior behavior) { return (((int)behavior) & c_Stop) == c_Stop; } internal static bool SkipSubgraph(HitTestFilterBehavior behavior) { return behavior == HitTestFilterBehavior.ContinueSkipSelfAndChildren; } } } // 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
- DictionaryEditChange.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- RequestCache.cs
- SqlProfileProvider.cs
- NetworkCredential.cs
- NodeLabelEditEvent.cs
- ImportCatalogPart.cs
- PropertyIDSet.cs
- PassportAuthentication.cs
- StructuredCompositeActivityDesigner.cs
- ImageButton.cs
- ClientBuildManager.cs
- GACIdentityPermission.cs
- ListBindableAttribute.cs
- BitmapEffectGeneralTransform.cs
- Error.cs
- ClientBuildManager.cs
- CodeDelegateCreateExpression.cs
- FrameworkContentElementAutomationPeer.cs
- XamlWrappingReader.cs
- BCryptSafeHandles.cs
- RotateTransform.cs
- ListDataBindEventArgs.cs
- TableStyle.cs
- OutputCacheProfile.cs
- MiniAssembly.cs
- FormViewInsertedEventArgs.cs
- DefaultAuthorizationContext.cs
- DocumentGridPage.cs
- Set.cs
- PointAnimationClockResource.cs
- ValueExpressions.cs
- ManualResetEventSlim.cs
- PropertyDescriptorCollection.cs
- XamlPoint3DCollectionSerializer.cs
- MetadataProperty.cs
- XmlNodeChangedEventManager.cs
- Attributes.cs
- CodeAttributeDeclarationCollection.cs
- DataGridViewComboBoxCell.cs
- WebServiceTypeData.cs
- ObjectConverter.cs
- Main.cs
- DataGridViewColumnConverter.cs
- ResponseStream.cs
- ConfigXmlComment.cs
- GradientSpreadMethodValidation.cs
- UniqueEventHelper.cs
- TextRangeBase.cs
- StateMachineDesignerPaint.cs
- ColorAnimationBase.cs
- EditBehavior.cs
- SchemaImporterExtensionElement.cs
- WindowsEditBox.cs
- DbParameterCollectionHelper.cs
- TextRangeEditLists.cs
- CapabilitiesUse.cs
- Expression.DebuggerProxy.cs
- Console.cs
- ZoneLinkButton.cs
- FontSource.cs
- GridViewUpdatedEventArgs.cs
- DataRelation.cs
- StyleSheetComponentEditor.cs
- SafeHandle.cs
- XmlExtensionFunction.cs
- UserControlAutomationPeer.cs
- IPAddressCollection.cs
- PointHitTestResult.cs
- StateRuntime.cs
- Command.cs
- XsltSettings.cs
- Tile.cs
- CatalogZoneBase.cs
- DocumentPage.cs
- SafePointer.cs
- NoClickablePointException.cs
- ToolStripPanelCell.cs
- TableLayoutColumnStyleCollection.cs
- InstanceDataCollectionCollection.cs
- FormViewPageEventArgs.cs
- DocumentPageView.cs
- RecognizerInfo.cs
- SafeNativeMethods.cs
- HtmlInputReset.cs
- shaperfactoryquerycachekey.cs
- RightNameExpirationInfoPair.cs
- SerializationSectionGroup.cs
- ProgressBarBrushConverter.cs
- TextEffectResolver.cs
- AutoResetEvent.cs
- MetadataItemEmitter.cs
- ImageListUtils.cs
- DictionarySectionHandler.cs
- ListSourceHelper.cs
- GACMembershipCondition.cs
- DriveInfo.cs
- Tile.cs
- ProfilePropertySettingsCollection.cs
- HtmlTableRow.cs