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
- TemplateField.cs
- EncryptedPackageFilter.cs
- figurelength.cs
- DataGridDesigner.cs
- ClientConfigPaths.cs
- HttpResponseInternalWrapper.cs
- JulianCalendar.cs
- TextContainerChangedEventArgs.cs
- DateTimePicker.cs
- ContentPropertyAttribute.cs
- DataSysAttribute.cs
- RedirectionProxy.cs
- OutputWindow.cs
- DynamicResourceExtensionConverter.cs
- ProtocolsConfiguration.cs
- PointHitTestParameters.cs
- entityreference_tresulttype.cs
- ResourceContainer.cs
- XmlSchemaIdentityConstraint.cs
- WSDualHttpSecurity.cs
- SoapExtensionReflector.cs
- QilXmlWriter.cs
- CriticalHandle.cs
- SqlGatherConsumedAliases.cs
- DbConnectionHelper.cs
- ISCIIEncoding.cs
- BitArray.cs
- ExpressionBinding.cs
- SystemIPInterfaceStatistics.cs
- AccessDataSourceWizardForm.cs
- ControlCollection.cs
- SiteMapDataSource.cs
- ColumnCollection.cs
- DataServiceHostFactory.cs
- SymDocumentType.cs
- CursorConverter.cs
- BooleanProjectedSlot.cs
- AdornerDecorator.cs
- BufferedWebEventProvider.cs
- ChannelPool.cs
- StructureChangedEventArgs.cs
- XPathSelfQuery.cs
- AtomContentProperty.cs
- Item.cs
- DataGridBoolColumn.cs
- SQLDecimalStorage.cs
- Currency.cs
- GenerateTemporaryTargetAssembly.cs
- GeometryDrawing.cs
- EntityWithKeyStrategy.cs
- PcmConverter.cs
- DataGridRowDetailsEventArgs.cs
- RenderData.cs
- BasicViewGenerator.cs
- CharEnumerator.cs
- XmlKeywords.cs
- documentsequencetextcontainer.cs
- CqlParserHelpers.cs
- ObjectReaderCompiler.cs
- OptimisticConcurrencyException.cs
- MutexSecurity.cs
- MultiBindingExpression.cs
- TracedNativeMethods.cs
- ChannelTerminatedException.cs
- EventMemberCodeDomSerializer.cs
- SpeakCompletedEventArgs.cs
- CategoryAttribute.cs
- UIElement.cs
- MonitoringDescriptionAttribute.cs
- ScrollData.cs
- AnnotationObservableCollection.cs
- EllipseGeometry.cs
- StylusShape.cs
- CalendarTable.cs
- SizeAnimationBase.cs
- QilInvoke.cs
- ObjectHelper.cs
- GridSplitter.cs
- QilPatternVisitor.cs
- WindowsClaimSet.cs
- SelectionItemPattern.cs
- TextView.cs
- RIPEMD160Managed.cs
- CommandEventArgs.cs
- ProfileParameter.cs
- TemplateBindingExtensionConverter.cs
- Menu.cs
- UncommonField.cs
- CacheDict.cs
- IFlowDocumentViewer.cs
- SafePEFileHandle.cs
- Operand.cs
- DbConnectionOptions.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- RootProfilePropertySettingsCollection.cs
- TextProperties.cs
- XPathMessageFilterElementCollection.cs
- dbdatarecord.cs
- PropertyGridView.cs
- LayoutTableCell.cs