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
- ResponseBodyWriter.cs
- BorderGapMaskConverter.cs
- DataGridRowClipboardEventArgs.cs
- ApplicationServicesHostFactory.cs
- XhtmlBasicFormAdapter.cs
- ModelItem.cs
- TreeNodeStyleCollection.cs
- ILGen.cs
- HttpCapabilitiesEvaluator.cs
- DataListAutoFormat.cs
- TriggerActionCollection.cs
- BitmapEncoder.cs
- srgsitem.cs
- HandleCollector.cs
- FormViewUpdateEventArgs.cs
- UnmanagedBitmapWrapper.cs
- parserscommon.cs
- StackSpiller.Temps.cs
- SafeArrayTypeMismatchException.cs
- SqlResolver.cs
- PropertyInfoSet.cs
- RuleInfoComparer.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DataBindingExpressionBuilder.cs
- SynchronizedDispatch.cs
- MediaTimeline.cs
- TypeInformation.cs
- AxisAngleRotation3D.cs
- DynamicRouteExpression.cs
- FontCacheUtil.cs
- BaseAddressElementCollection.cs
- MediaElementAutomationPeer.cs
- XmlBinaryReader.cs
- StagingAreaInputItem.cs
- MergeFailedEvent.cs
- SequentialActivityDesigner.cs
- ObjectParameterCollection.cs
- HttpResponseWrapper.cs
- FrameworkElement.cs
- StrokeRenderer.cs
- SqlCrossApplyToCrossJoin.cs
- EntityDataSourceViewSchema.cs
- MetadataItemEmitter.cs
- PasswordRecovery.cs
- ArraySegment.cs
- ComponentChangedEvent.cs
- TableLayoutSettings.cs
- MasterPage.cs
- _CacheStreams.cs
- PageAsyncTask.cs
- OdbcParameterCollection.cs
- ClassicBorderDecorator.cs
- EffectiveValueEntry.cs
- TypeSystemProvider.cs
- XamlGridLengthSerializer.cs
- SystemColorTracker.cs
- PhysicalOps.cs
- Button.cs
- SessionParameter.cs
- MenuItemBindingCollection.cs
- HtmlInputRadioButton.cs
- TimeZoneNotFoundException.cs
- ObjectDisposedException.cs
- ResetableIterator.cs
- RectangleF.cs
- SurrogateChar.cs
- HelpInfo.cs
- Padding.cs
- StylusShape.cs
- TraceContextRecord.cs
- ReliableMessagingVersion.cs
- ObjRef.cs
- ThreadStaticAttribute.cs
- ClosableStream.cs
- ExpressionCopier.cs
- XmlCharacterData.cs
- DockProviderWrapper.cs
- Button.cs
- Trace.cs
- TextReader.cs
- CellLabel.cs
- DataRelationCollection.cs
- ScriptServiceAttribute.cs
- ProfileParameter.cs
- ProxyWebPartManager.cs
- SqlStream.cs
- TextBox.cs
- DesignerCategoryAttribute.cs
- EpmContentSerializerBase.cs
- SqlDataRecord.cs
- FontWeights.cs
- DecimalConstantAttribute.cs
- SplashScreenNativeMethods.cs
- HttpServerVarsCollection.cs
- GlyphRunDrawing.cs
- Rijndael.cs
- ComponentDispatcherThread.cs
- RemoteDebugger.cs
- WeakReference.cs
- PageContentAsyncResult.cs