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
- MachineSettingsSection.cs
- DataColumnMappingCollection.cs
- AppPool.cs
- ServicePoint.cs
- LinqToSqlWrapper.cs
- TemplateXamlTreeBuilder.cs
- ListBindingConverter.cs
- DataTransferEventArgs.cs
- XmlWhitespace.cs
- RoleManagerSection.cs
- Suspend.cs
- UrlMappingCollection.cs
- ListViewItemEventArgs.cs
- DropShadowBitmapEffect.cs
- JsonStringDataContract.cs
- BuildManager.cs
- EventBuilder.cs
- FreezableDefaultValueFactory.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- AppendHelper.cs
- CheckBoxBaseAdapter.cs
- TypeConverterValueSerializer.cs
- ColorDialog.cs
- printdlgexmarshaler.cs
- SqlWebEventProvider.cs
- DataGridViewColumnCollectionEditor.cs
- RangeValueProviderWrapper.cs
- XmlReader.cs
- ToolboxItemFilterAttribute.cs
- DataBoundLiteralControl.cs
- CompilerLocalReference.cs
- EnumBuilder.cs
- EventlogProvider.cs
- AssemblyNameProxy.cs
- CollectionBase.cs
- SymLanguageVendor.cs
- FileEnumerator.cs
- KeyMatchBuilder.cs
- TickBar.cs
- NullableIntSumAggregationOperator.cs
- DataObjectMethodAttribute.cs
- DataRowView.cs
- BindingUtils.cs
- PostBackOptions.cs
- ServiceChannelProxy.cs
- Style.cs
- SqlServices.cs
- CodeCompileUnit.cs
- RetrieveVirtualItemEventArgs.cs
- SecurityContextSecurityToken.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ImageMap.cs
- grammarelement.cs
- SQLSingleStorage.cs
- ConstNode.cs
- ConfigXmlAttribute.cs
- VisualTreeHelper.cs
- PasswordBox.cs
- DescendantQuery.cs
- ClientSettingsSection.cs
- DebugView.cs
- SplashScreen.cs
- DataGridViewTopLeftHeaderCell.cs
- TrackingProfileCache.cs
- ApplicationId.cs
- ActivityPropertyReference.cs
- TextBox.cs
- serverconfig.cs
- FileDetails.cs
- FontUnitConverter.cs
- CodeTypeMember.cs
- PasswordBox.cs
- Journaling.cs
- ExpressionBuilder.cs
- UserPersonalizationStateInfo.cs
- FileClassifier.cs
- ManagedFilter.cs
- ReliabilityContractAttribute.cs
- StrokeCollectionConverter.cs
- PropertyConverter.cs
- SchemaNotation.cs
- MultilineStringConverter.cs
- SystemMulticastIPAddressInformation.cs
- FixedPosition.cs
- VirtualDirectoryMappingCollection.cs
- VirtualPathProvider.cs
- AssertHelper.cs
- TextElementCollectionHelper.cs
- CacheChildrenQuery.cs
- SoapAttributeAttribute.cs
- CancelRequestedQuery.cs
- Point3DAnimationUsingKeyFrames.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- SectionUpdates.cs
- HttpConfigurationContext.cs
- TextEndOfLine.cs
- UpDownEvent.cs
- ConditionBrowserDialog.cs
- ProcessInputEventArgs.cs
- ExtensionQuery.cs