Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlConnectionPoolGroupProviderInfo.cs
- Model3D.cs
- FixedTextBuilder.cs
- SQLStringStorage.cs
- WorkflowCommandExtensionItem.cs
- DoubleLinkList.cs
- ApplicationException.cs
- _ConnectionGroup.cs
- SingleAnimation.cs
- OracleMonthSpan.cs
- LeafCellTreeNode.cs
- WeakReference.cs
- SafeEventLogReadHandle.cs
- ISAPIApplicationHost.cs
- CreateUserErrorEventArgs.cs
- TextDocumentView.cs
- UserNameSecurityToken.cs
- NamedPipeHostedTransportConfiguration.cs
- CodeSubDirectory.cs
- PathNode.cs
- SqlFunctionAttribute.cs
- NamespaceCollection.cs
- RemotingSurrogateSelector.cs
- NavigationProperty.cs
- MouseActionValueSerializer.cs
- Configuration.cs
- JsonClassDataContract.cs
- CompressionTransform.cs
- GregorianCalendarHelper.cs
- SelectionWordBreaker.cs
- Point3DAnimationUsingKeyFrames.cs
- NavigatingCancelEventArgs.cs
- SpotLight.cs
- CurrentTimeZone.cs
- CompilerResults.cs
- AddInAttribute.cs
- TriggerBase.cs
- GeneralTransform3DTo2D.cs
- CultureMapper.cs
- CallContext.cs
- httpserverutility.cs
- DetailsViewDeleteEventArgs.cs
- Soap.cs
- TextServicesHost.cs
- FamilyCollection.cs
- StylusPointPropertyInfoDefaults.cs
- mansign.cs
- LinkConverter.cs
- VariableQuery.cs
- BasePattern.cs
- AdRotator.cs
- FixedBufferAttribute.cs
- SizeValueSerializer.cs
- ColorComboBox.cs
- Parameter.cs
- PlanCompiler.cs
- SystemSounds.cs
- ComplexPropertyEntry.cs
- MasterPageCodeDomTreeGenerator.cs
- QueryOutputWriter.cs
- DataBinder.cs
- PageHandlerFactory.cs
- DataAdapter.cs
- RegularExpressionValidator.cs
- ExtensionQuery.cs
- ToolStripDropDownItem.cs
- BoundField.cs
- TextOutput.cs
- CollectionBuilder.cs
- QueryStringConverter.cs
- _AcceptOverlappedAsyncResult.cs
- SigningProgress.cs
- LineSegment.cs
- OdbcStatementHandle.cs
- PrimitiveCodeDomSerializer.cs
- WebPartTransformer.cs
- DescendantOverDescendantQuery.cs
- IDReferencePropertyAttribute.cs
- XPathDocument.cs
- BitmapImage.cs
- SqlProvider.cs
- AnnotationComponentChooser.cs
- ProjectionCamera.cs
- RevocationPoint.cs
- AutoResetEvent.cs
- AxisAngleRotation3D.cs
- XamlClipboardData.cs
- ConfigurationElementProperty.cs
- WindowsGrip.cs
- HeaderedItemsControl.cs
- ToolStripHighContrastRenderer.cs
- CapabilitiesRule.cs
- HtmlToClrEventProxy.cs
- FixedBufferAttribute.cs
- WebPartConnectionCollection.cs
- PopOutPanel.cs
- VoiceChangeEventArgs.cs
- ServiceDeploymentInfo.cs
- ProxyGenerator.cs
- CodeDelegateInvokeExpression.cs