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
- ObservableDictionary.cs
- BinaryObjectReader.cs
- DeviceContext2.cs
- CodeFieldReferenceExpression.cs
- SelectionWordBreaker.cs
- ObjectTag.cs
- RequestCacheValidator.cs
- Control.cs
- DocumentEventArgs.cs
- arabicshape.cs
- GifBitmapEncoder.cs
- ValueType.cs
- TableRowCollection.cs
- SynchronousReceiveElement.cs
- GridViewUpdateEventArgs.cs
- XmlFormatExtensionPrefixAttribute.cs
- WorkflowInspectionServices.cs
- FrameDimension.cs
- RulePatternOps.cs
- EditorPartChrome.cs
- ControlValuePropertyAttribute.cs
- Error.cs
- EntityClassGenerator.cs
- KeyedCollection.cs
- WebBrowser.cs
- GraphicsContext.cs
- ResizingMessageFilter.cs
- SQLGuidStorage.cs
- HttpApplication.cs
- ServicePointManagerElement.cs
- BrowserCapabilitiesCompiler.cs
- TiffBitmapEncoder.cs
- ConnectorSelectionGlyph.cs
- SqlFunctions.cs
- RootBuilder.cs
- Misc.cs
- MessageBox.cs
- LogicalExpressionEditor.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- WarningException.cs
- UnrecognizedPolicyAssertionElement.cs
- ElapsedEventArgs.cs
- CommunicationObjectManager.cs
- StructuralComparisons.cs
- EnumConverter.cs
- SqlCacheDependencySection.cs
- EntityDataSourceViewSchema.cs
- HitTestParameters3D.cs
- DecimalAnimationUsingKeyFrames.cs
- HtmlEmptyTagControlBuilder.cs
- DataSourceProvider.cs
- StorageBasedPackageProperties.cs
- GatewayDefinition.cs
- FillRuleValidation.cs
- _Rfc2616CacheValidators.cs
- FilteredXmlReader.cs
- Collection.cs
- RelAssertionDirectKeyIdentifierClause.cs
- WindowsGraphicsCacheManager.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- CompiledELinqQueryState.cs
- StaticSiteMapProvider.cs
- BitStream.cs
- CLSCompliantAttribute.cs
- QilInvokeLateBound.cs
- SerializationSectionGroup.cs
- GlyphInfoList.cs
- Tablet.cs
- BadImageFormatException.cs
- QilExpression.cs
- StaticSiteMapProvider.cs
- XPathEmptyIterator.cs
- FacetValueContainer.cs
- Attributes.cs
- BaseDataList.cs
- MetadataImporterQuotas.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- NameNode.cs
- ElementAction.cs
- SplineKeyFrames.cs
- CounterSampleCalculator.cs
- FileSecurity.cs
- FixedPageProcessor.cs
- HiddenField.cs
- SoapFormatterSinks.cs
- PeerContact.cs
- Group.cs
- WindowAutomationPeer.cs
- SoapEnumAttribute.cs
- OledbConnectionStringbuilder.cs
- SchemaMerger.cs
- SchemaTypeEmitter.cs
- SecurityState.cs
- DecoderNLS.cs
- SystemColorTracker.cs
- EncoderParameter.cs
- FrugalMap.cs
- DbMetaDataFactory.cs
- HttpModuleCollection.cs
- WorkflowViewElement.cs