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
- ConnectorRouter.cs
- PerformanceCounterPermissionEntryCollection.cs
- GPRECT.cs
- CodeParameterDeclarationExpression.cs
- CodeNamespaceImport.cs
- CommentEmitter.cs
- RawAppCommandInputReport.cs
- TextCollapsingProperties.cs
- ExpressionContext.cs
- FileUtil.cs
- DbParameterCollectionHelper.cs
- ColumnReorderedEventArgs.cs
- FragmentQueryProcessor.cs
- DynamicValidatorEventArgs.cs
- KeyedHashAlgorithm.cs
- CollectionViewGroupInternal.cs
- LocalizationComments.cs
- PositiveTimeSpanValidatorAttribute.cs
- DesignBindingConverter.cs
- DefinitionUpdate.cs
- DbMetaDataColumnNames.cs
- Padding.cs
- QilScopedVisitor.cs
- RequestCacheEntry.cs
- WizardStepBase.cs
- CodeVariableReferenceExpression.cs
- MultidimensionalArrayItemReference.cs
- DataGridViewCellLinkedList.cs
- AbstractSvcMapFileLoader.cs
- InternalBufferOverflowException.cs
- WorkflowInstanceAbortedRecord.cs
- Single.cs
- NonClientArea.cs
- GridViewColumnHeaderAutomationPeer.cs
- RedirectionProxy.cs
- ResourceReferenceKeyNotFoundException.cs
- ComponentResourceManager.cs
- TextAutomationPeer.cs
- MultiPageTextView.cs
- BindingCollection.cs
- DbConnectionClosed.cs
- DataGridCellsPresenter.cs
- LocalServiceSecuritySettings.cs
- WebPartConnectVerb.cs
- TabRenderer.cs
- TableSectionStyle.cs
- LinqDataSourceSelectEventArgs.cs
- CompositeScriptReference.cs
- SmtpNetworkElement.cs
- EmbeddedObject.cs
- PrimitiveType.cs
- WindowInteropHelper.cs
- ForEach.cs
- Baml6Assembly.cs
- HtmlWindow.cs
- ValueTypeFixupInfo.cs
- DataGridViewCellParsingEventArgs.cs
- AccessKeyManager.cs
- IntSecurity.cs
- PermissionRequestEvidence.cs
- EventDescriptorCollection.cs
- ClientEventManager.cs
- X509CertificateCollection.cs
- ControlBuilderAttribute.cs
- FragmentQuery.cs
- Identifier.cs
- VBIdentifierName.cs
- SqlEnums.cs
- FileLevelControlBuilderAttribute.cs
- MouseDevice.cs
- CodeDomComponentSerializationService.cs
- ExtendedProtectionPolicyTypeConverter.cs
- MorphHelpers.cs
- NetworkInformationException.cs
- Columns.cs
- KnownBoxes.cs
- DBSqlParserColumnCollection.cs
- DatatypeImplementation.cs
- ListView.cs
- Activation.cs
- OptimisticConcurrencyException.cs
- OleAutBinder.cs
- PopupControlService.cs
- ProxyManager.cs
- ConfigPathUtility.cs
- _SslState.cs
- ImportedNamespaceContextItem.cs
- ValidationError.cs
- PresentationTraceSources.cs
- HtmlInputText.cs
- GroupByExpressionRewriter.cs
- SR.cs
- FigureHelper.cs
- ErrorHandler.cs
- LiteralLink.cs
- Confirm.cs
- Vector3DIndependentAnimationStorage.cs
- Single.cs
- UInt64Storage.cs
- BitmapEffect.cs