Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / StylusOverProperty.cs / 2 / StylusOverProperty.cs
using System; using System.Windows.Input; using MS.Internal.KnownBoxes; namespace System.Windows { ///////////////////////////////////////////////////////////////////////// internal class StylusOverProperty : ReverseInheritProperty { ///////////////////////////////////////////////////////////////////// internal StylusOverProperty() : base( UIElement.IsStylusOverPropertyKey, CoreFlags.IsStylusOverCache, CoreFlags.IsStylusOverChanged) { } ///////////////////////////////////////////////////////////////////// internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue) { // This is all very sketchy... // // Tablet can support multiple stylus devices concurrently. They can each // be over a different element. They all update the IsStylusOver property, // which calls into here, but ends up using the "current" stylus device, // instead of each using their own device. Worse, all of these will end up // writing to the same bits in the UIElement. They are going to step all over // each other. if(Stylus.CurrentStylusDevice == null) { return; } StylusEventArgs stylusEventArgs = new StylusEventArgs(Stylus.CurrentStylusDevice, Environment.TickCount); stylusEventArgs.RoutedEvent = oldValue ? Stylus.StylusLeaveEvent : Stylus.StylusEnterEvent; if (uie != null) { uie.RaiseEvent(stylusEventArgs); } else if (ce != null) { ce.RaiseEvent(stylusEventArgs); } else if (uie3D != null) { uie3D.RaiseEvent(stylusEventArgs); } } } } // 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
- FixedDocument.cs
- ViewStateException.cs
- ChangeConflicts.cs
- PageCatalogPart.cs
- WebPartChrome.cs
- Mouse.cs
- ELinqQueryState.cs
- HostProtectionException.cs
- HttpWrapper.cs
- FixedSOMPageConstructor.cs
- RenderDataDrawingContext.cs
- HttpModuleAction.cs
- SmiContext.cs
- ResizingMessageFilter.cs
- HtmlTitle.cs
- NamespaceImport.cs
- TailPinnedEventArgs.cs
- RowParagraph.cs
- WebHttpDispatchOperationSelector.cs
- SoapAttributeAttribute.cs
- ModelVisual3D.cs
- SizeAnimationBase.cs
- EventData.cs
- ContextTokenTypeConverter.cs
- HtmlCommandAdapter.cs
- OdbcConnectionStringbuilder.cs
- ScrollChangedEventArgs.cs
- DesignBinding.cs
- ComponentDispatcher.cs
- ConfigurationElementProperty.cs
- LicFileLicenseProvider.cs
- WebScriptEndpointElement.cs
- CodeDomConfigurationHandler.cs
- TdsEnums.cs
- Cell.cs
- TemplateNameScope.cs
- _PooledStream.cs
- SecurityState.cs
- BinaryCommonClasses.cs
- MatrixAnimationUsingPath.cs
- ExclusiveHandleList.cs
- OleDbParameter.cs
- CommandSet.cs
- AssemblyFilter.cs
- WindowsTreeView.cs
- SBCSCodePageEncoding.cs
- PerformanceCounterLib.cs
- OleDbParameter.cs
- Keywords.cs
- Privilege.cs
- XmlSchema.cs
- XmlSchemaChoice.cs
- ImageKeyConverter.cs
- ComplexBindingPropertiesAttribute.cs
- OleDbFactory.cs
- RuntimeConfigurationRecord.cs
- httpapplicationstate.cs
- TreeViewEvent.cs
- PointCollection.cs
- NativeMethods.cs
- PriorityRange.cs
- TextRange.cs
- RelationshipConverter.cs
- LocalizedNameDescriptionPair.cs
- SqlDataAdapter.cs
- WebPageTraceListener.cs
- RightNameExpirationInfoPair.cs
- ResizeGrip.cs
- OptimalBreakSession.cs
- CodeCommentStatement.cs
- TextRenderer.cs
- TableSectionStyle.cs
- StringResourceManager.cs
- RichTextBoxAutomationPeer.cs
- ReaderContextStackData.cs
- OrderedDictionary.cs
- HttpListenerContext.cs
- InvalidCastException.cs
- ListViewDeletedEventArgs.cs
- ServiceNotStartedException.cs
- ValidationRuleCollection.cs
- ClientScriptItemCollection.cs
- IteratorFilter.cs
- ISO2022Encoding.cs
- HuffCodec.cs
- InternalUserCancelledException.cs
- Camera.cs
- ObjectRef.cs
- StatusBarDrawItemEvent.cs
- Int32CAMarshaler.cs
- ComponentFactoryHelpers.cs
- Cursor.cs
- SoapSchemaImporter.cs
- CornerRadiusConverter.cs
- PartialToken.cs
- MatrixAnimationUsingKeyFrames.cs
- ApplicationId.cs
- ContentPosition.cs
- SingleConverter.cs
- TcpProcessProtocolHandler.cs