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
- SqlConnectionHelper.cs
- MemberCollection.cs
- DbConnectionOptions.cs
- SourceElementsCollection.cs
- listviewsubitemcollectioneditor.cs
- CapacityStreamGeometryContext.cs
- XPathDocumentIterator.cs
- MouseButtonEventArgs.cs
- LicenseContext.cs
- SingletonChannelAcceptor.cs
- MimeTypePropertyAttribute.cs
- DataGridViewRowCancelEventArgs.cs
- ResourceDefaultValueAttribute.cs
- PassportAuthentication.cs
- TextBoxAutomationPeer.cs
- Error.cs
- MsmqIntegrationBindingElement.cs
- TreeViewImageIndexConverter.cs
- DataControlFieldHeaderCell.cs
- StandardBindingElementCollection.cs
- PreservationFileReader.cs
- GradientPanel.cs
- objectresult_tresulttype.cs
- SafeBitVector32.cs
- ClientSponsor.cs
- IntegerValidator.cs
- SelectedDatesCollection.cs
- SrgsElement.cs
- UnsafeNativeMethods.cs
- AsymmetricSignatureFormatter.cs
- DataGridCell.cs
- Control.cs
- SQLDouble.cs
- Delegate.cs
- DefaultValueTypeConverter.cs
- _SingleItemRequestCache.cs
- TextDecoration.cs
- SiteMapNodeItemEventArgs.cs
- _IPv6Address.cs
- Msmq3PoisonHandler.cs
- ExpressionPrinter.cs
- ProxyHelper.cs
- WinInet.cs
- NativeMethods.cs
- XmlAtomicValue.cs
- PropertyPathConverter.cs
- WrapperEqualityComparer.cs
- TextInfo.cs
- FontUnitConverter.cs
- SafeCertificateStore.cs
- AssertSection.cs
- EntityContainerEmitter.cs
- TextBox.cs
- Int32EqualityComparer.cs
- XomlCompilerHelpers.cs
- PrefixQName.cs
- SqlNotificationRequest.cs
- TextEditorTyping.cs
- OracleConnectionStringBuilder.cs
- cookie.cs
- WriteableBitmap.cs
- MissingFieldException.cs
- SqlFacetAttribute.cs
- FixedSOMPageConstructor.cs
- TimeStampChecker.cs
- HtmlInputCheckBox.cs
- StringReader.cs
- FixedSOMGroup.cs
- SiteMapDataSourceView.cs
- EncodingNLS.cs
- DispatcherEventArgs.cs
- xmlsaver.cs
- MachineSettingsSection.cs
- RequiredFieldValidator.cs
- TreeNodeBinding.cs
- TreeViewEvent.cs
- CatalogPartCollection.cs
- MissingManifestResourceException.cs
- GenericAuthenticationEventArgs.cs
- GcSettings.cs
- XsltException.cs
- RelatedPropertyManager.cs
- MultipleViewProviderWrapper.cs
- SortedList.cs
- ClientRuntimeConfig.cs
- SpellerHighlightLayer.cs
- SafeCryptContextHandle.cs
- CodeSnippetExpression.cs
- _SafeNetHandles.cs
- CheckBoxStandardAdapter.cs
- ActivityDefaults.cs
- ListItemCollection.cs
- MorphHelper.cs
- SqlDataReader.cs
- PathFigure.cs
- BaseDataList.cs
- DataGridViewColumnEventArgs.cs
- GridPattern.cs
- BaseDataBoundControl.cs
- BasePattern.cs