Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / StylusOverProperty.cs / 1305600 / 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
- FontDriver.cs
- BindValidationContext.cs
- NamedPermissionSet.cs
- ProfessionalColorTable.cs
- CustomCredentialPolicy.cs
- AutomationPattern.cs
- QuaternionValueSerializer.cs
- ComboBoxDesigner.cs
- CodeMemberEvent.cs
- MSHTMLHostUtil.cs
- ButtonPopupAdapter.cs
- WebBrowserEvent.cs
- DataRelation.cs
- SelectionPattern.cs
- RIPEMD160Managed.cs
- KeyInterop.cs
- UTF8Encoding.cs
- MessageQueueInstaller.cs
- SqlBuffer.cs
- ValueExpressions.cs
- RSAPKCS1SignatureFormatter.cs
- ActivityAction.cs
- Transform.cs
- Events.cs
- PEFileEvidenceFactory.cs
- EventlogProvider.cs
- RenderDataDrawingContext.cs
- AssemblyCollection.cs
- ReliableMessagingHelpers.cs
- ExceptionHelpers.cs
- CqlParserHelpers.cs
- DebuggerAttributes.cs
- SMSvcHost.cs
- DataGridViewColumnStateChangedEventArgs.cs
- WpfKnownType.cs
- TrackingCondition.cs
- WorkflowTimerService.cs
- EventMappingSettingsCollection.cs
- ConnectionPointGlyph.cs
- DiscoveryDocumentLinksPattern.cs
- odbcmetadatacollectionnames.cs
- UniqueTransportManagerRegistration.cs
- ResourceAssociationType.cs
- ComplexLine.cs
- ElementProxy.cs
- SchemaDeclBase.cs
- DesignTimeParseData.cs
- XmlSchemaComplexContentRestriction.cs
- WhitespaceRule.cs
- CompressionTransform.cs
- CodeComment.cs
- Converter.cs
- FederatedMessageSecurityOverHttpElement.cs
- BitmapSource.cs
- BooleanToVisibilityConverter.cs
- NamespaceDecl.cs
- LogArchiveSnapshot.cs
- HuffmanTree.cs
- UiaCoreProviderApi.cs
- HierarchicalDataBoundControl.cs
- DynamicResourceExtension.cs
- VerificationAttribute.cs
- UInt16Converter.cs
- XmlTextReaderImpl.cs
- TranslateTransform.cs
- C14NUtil.cs
- ControlCollection.cs
- XPathNodeHelper.cs
- QueryContinueDragEventArgs.cs
- SmiContext.cs
- Win32MouseDevice.cs
- CodeDirectionExpression.cs
- WeakReference.cs
- ListBoxDesigner.cs
- ShapingEngine.cs
- ErrorStyle.cs
- CaretElement.cs
- GridViewRowPresenterBase.cs
- StateManagedCollection.cs
- EntityDataSourceChangingEventArgs.cs
- DescendantQuery.cs
- EventManager.cs
- pingexception.cs
- DiscreteKeyFrames.cs
- RuntimeHandles.cs
- PointLightBase.cs
- TypePresenter.xaml.cs
- IxmlLineInfo.cs
- DataSourceBooleanViewSchemaConverter.cs
- Converter.cs
- XmlUTF8TextReader.cs
- WindowHideOrCloseTracker.cs
- EntityDataSourceMemberPath.cs
- initElementDictionary.cs
- GridView.cs
- HighlightComponent.cs
- Compiler.cs
- DataFormats.cs
- Adorner.cs
- FunctionNode.cs