Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ObservableDictionary.cs
- QueryCacheManager.cs
- XhtmlTextWriter.cs
- TextBoxLine.cs
- CharUnicodeInfo.cs
- XmlDocumentFragment.cs
- NetDataContractSerializer.cs
- SoapTypeAttribute.cs
- EdmMember.cs
- InstanceCompleteException.cs
- ImageFormat.cs
- XamlClipboardData.cs
- XmlAttributes.cs
- DispatcherExceptionFilterEventArgs.cs
- FormsAuthenticationUserCollection.cs
- pingexception.cs
- SqlCommand.cs
- JavaScriptObjectDeserializer.cs
- DbMetaDataFactory.cs
- ReadOnlyDataSourceView.cs
- SamlAuthenticationClaimResource.cs
- QuestionEventArgs.cs
- CurrentTimeZone.cs
- MissingManifestResourceException.cs
- InheritablePropertyChangeInfo.cs
- ping.cs
- TrackingRecordPreFilter.cs
- BindingListCollectionView.cs
- AttachInfo.cs
- SynchronousChannelMergeEnumerator.cs
- XPathNodeInfoAtom.cs
- SqlBuilder.cs
- ExtenderProviderService.cs
- SqlConnectionFactory.cs
- AdornerDecorator.cs
- EmptyQuery.cs
- CheckBox.cs
- InsufficientMemoryException.cs
- AsyncPostBackErrorEventArgs.cs
- TypeNameHelper.cs
- BuilderElements.cs
- NewItemsContextMenuStrip.cs
- SmtpReplyReaderFactory.cs
- AnnotationComponentChooser.cs
- ReadOnlyDataSource.cs
- SystemIcons.cs
- SiteMapNodeCollection.cs
- PointUtil.cs
- ToolStripSeparator.cs
- ConnectionPoint.cs
- RsaSecurityKey.cs
- ExpressionBuilder.cs
- SafeRightsManagementEnvironmentHandle.cs
- PropertyChangingEventArgs.cs
- CacheEntry.cs
- CustomAssemblyResolver.cs
- ThrowHelper.cs
- ParseChildrenAsPropertiesAttribute.cs
- MembershipUser.cs
- HttpCapabilitiesBase.cs
- DependencyPropertyAttribute.cs
- FreezableDefaultValueFactory.cs
- WebPartsSection.cs
- PeerFlooder.cs
- RIPEMD160Managed.cs
- Button.cs
- MarshalByValueComponent.cs
- ConnectionPoolManager.cs
- PartitionResolver.cs
- BaseTreeIterator.cs
- DataGridViewColumnCollection.cs
- SHA1CryptoServiceProvider.cs
- ParseHttpDate.cs
- DescendentsWalker.cs
- COM2PropertyDescriptor.cs
- ListViewGroupItemCollection.cs
- HttpsHostedTransportConfiguration.cs
- MenuItemCollection.cs
- ObjectHelper.cs
- DiagnosticStrings.cs
- PrintDialog.cs
- HostedBindingBehavior.cs
- Size3DValueSerializer.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- KerberosTicketHashIdentifierClause.cs
- FamilyCollection.cs
- Assembly.cs
- SiteMapDataSourceView.cs
- ToolStrip.cs
- InfoCardAsymmetricCrypto.cs
- HtmlImageAdapter.cs
- WebZone.cs
- StringHelper.cs
- MimeMapping.cs
- CloudCollection.cs
- ChtmlPhoneCallAdapter.cs
- XPathNodeList.cs
- CategoryAttribute.cs
- DataGridViewControlCollection.cs
- PermissionSet.cs