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
- ScriptBehaviorDescriptor.cs
- BaseContextMenu.cs
- ObjectDataSourceDisposingEventArgs.cs
- NodeFunctions.cs
- UpdateCompiler.cs
- SqlTypesSchemaImporter.cs
- MethodCallTranslator.cs
- DBNull.cs
- CorrelationResolver.cs
- ResourceCategoryAttribute.cs
- HTTPNotFoundHandler.cs
- DataGridRowHeaderAutomationPeer.cs
- Terminate.cs
- Win32SafeHandles.cs
- ListViewItem.cs
- XmlReader.cs
- ComAdminWrapper.cs
- PropertyEmitterBase.cs
- HttpVersion.cs
- MetadataArtifactLoaderResource.cs
- DispatcherTimer.cs
- LoadRetryHandler.cs
- CodeDefaultValueExpression.cs
- PropertyRecord.cs
- WebRequest.cs
- HttpProfileBase.cs
- ToolStripDropDown.cs
- PropertyChangeTracker.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- SpotLight.cs
- SByte.cs
- ConditionalAttribute.cs
- RayHitTestParameters.cs
- Int16AnimationBase.cs
- SmtpDigestAuthenticationModule.cs
- dbenumerator.cs
- SelectorItemAutomationPeer.cs
- DaylightTime.cs
- AddingNewEventArgs.cs
- ActivityDesigner.cs
- ProtectedConfigurationSection.cs
- DataSourceUtil.cs
- WindowAutomationPeer.cs
- CompositeScriptReferenceEventArgs.cs
- TimeSpanMinutesConverter.cs
- XmlMtomReader.cs
- DefaultTypeArgumentAttribute.cs
- CustomAttributeFormatException.cs
- TimeEnumHelper.cs
- DataTable.cs
- SqlDataSourceFilteringEventArgs.cs
- SynchronizationFilter.cs
- CqlIdentifiers.cs
- TextAdaptor.cs
- ListView.cs
- ProfessionalColorTable.cs
- DoubleAnimationUsingPath.cs
- ContextActivityUtils.cs
- BindUriHelper.cs
- FileDialogCustomPlace.cs
- ToolStripScrollButton.cs
- Size3D.cs
- DocumentPageTextView.cs
- MenuItemBinding.cs
- HtmlMeta.cs
- ObjectAnimationBase.cs
- GlobalId.cs
- ToolboxComponentsCreatingEventArgs.cs
- ApplicationDirectory.cs
- HandleRef.cs
- RC2CryptoServiceProvider.cs
- BinHexEncoder.cs
- LockRenewalTask.cs
- Transform3DGroup.cs
- ToolStripMenuItem.cs
- ClientBuildManagerCallback.cs
- TranslateTransform3D.cs
- CacheVirtualItemsEvent.cs
- DialogWindow.cs
- SmiContext.cs
- SettingsPropertyWrongTypeException.cs
- MetaModel.cs
- NonClientArea.cs
- DirtyTextRange.cs
- RepeatBehavior.cs
- ZipIOModeEnforcingStream.cs
- ObjectViewQueryResultData.cs
- WebPartEditorApplyVerb.cs
- controlskin.cs
- Events.cs
- HttpModuleActionCollection.cs
- precedingquery.cs
- SymbolPair.cs
- Vertex.cs
- TagPrefixInfo.cs
- TextLine.cs
- CharAnimationUsingKeyFrames.cs
- ComNativeDescriptor.cs
- FullTextLine.cs
- KeyFrames.cs