Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- EventLogPermissionEntry.cs
- SqlConnectionHelper.cs
- TextOnlyOutput.cs
- TagPrefixCollection.cs
- XmlToDatasetMap.cs
- OutputScopeManager.cs
- CfgParser.cs
- CodeMemberEvent.cs
- ImageAutomationPeer.cs
- SevenBitStream.cs
- EventsTab.cs
- WindowsNonControl.cs
- HtmlEncodedRawTextWriter.cs
- TypeElement.cs
- HwndTarget.cs
- HtmlInputRadioButton.cs
- DiagnosticsConfiguration.cs
- PeerCredentialElement.cs
- EntityContainer.cs
- HwndSubclass.cs
- ServerIdentity.cs
- IPEndPointCollection.cs
- PeerObject.cs
- NegotiateStream.cs
- ContainerControl.cs
- RequestQueryParser.cs
- DefaultWorkflowSchedulerService.cs
- Vector3DConverter.cs
- CqlParserHelpers.cs
- ObjectMemberMapping.cs
- OdbcPermission.cs
- VerbConverter.cs
- DecimalConverter.cs
- WindowsGrip.cs
- ProfileSettings.cs
- LinkedList.cs
- CustomCategoryAttribute.cs
- TogglePattern.cs
- Selection.cs
- StylusPointPropertyInfo.cs
- SqlMethodAttribute.cs
- WindowsIdentity.cs
- GatewayDefinition.cs
- ActivationArguments.cs
- SqlRewriteScalarSubqueries.cs
- GraphicsContainer.cs
- WindowsToolbar.cs
- DependentList.cs
- HttpModulesInstallComponent.cs
- UserNameSecurityTokenAuthenticator.cs
- DataColumnSelectionConverter.cs
- SQLDecimal.cs
- CreateUserWizard.cs
- DomainUpDown.cs
- XmlSchemaCollection.cs
- StringUtil.cs
- MediaCommands.cs
- dataobject.cs
- FieldAccessException.cs
- ExpressionBuilder.cs
- SafeHandles.cs
- AttributeUsageAttribute.cs
- FilteredXmlReader.cs
- xmlsaver.cs
- CompModSwitches.cs
- RawStylusInputCustomData.cs
- DefaultAsyncDataDispatcher.cs
- DiagnosticTraceSource.cs
- PowerStatus.cs
- CodeTypeDeclarationCollection.cs
- DeploymentExceptionMapper.cs
- DecimalConstantAttribute.cs
- Stylesheet.cs
- FormParameter.cs
- ComponentManagerBroker.cs
- VoiceInfo.cs
- DoubleKeyFrameCollection.cs
- ItemsControl.cs
- MetadataArtifactLoaderFile.cs
- BitmapEffectState.cs
- TimeSpanValidatorAttribute.cs
- StylusButtonCollection.cs
- SafeNativeMethods.cs
- MouseActionConverter.cs
- OutputCacheProfile.cs
- SqlPersonalizationProvider.cs
- XPathScanner.cs
- UserUseLicenseDictionaryLoader.cs
- UniqueConstraint.cs
- ReadWriteObjectLock.cs
- WebPartMenuStyle.cs
- SimpleColumnProvider.cs
- RequestCachePolicy.cs
- StringStorage.cs
- GenericPrincipal.cs
- SessionState.cs
- DateTime.cs
- ApplicationCommands.cs
- DecimalAnimationUsingKeyFrames.cs
- AutomationPropertyInfo.cs