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
- SubMenuStyleCollection.cs
- OpenTypeLayout.cs
- SemanticBasicElement.cs
- NameValueCollection.cs
- PlainXmlDeserializer.cs
- RoutedUICommand.cs
- HebrewNumber.cs
- DispatcherProcessingDisabled.cs
- SmtpTransport.cs
- ClientScriptManager.cs
- ExpressionBuilder.cs
- Win32MouseDevice.cs
- ParseHttpDate.cs
- Collection.cs
- TextDecorations.cs
- FunctionQuery.cs
- DrawingBrush.cs
- ZipIOLocalFileHeader.cs
- SerialPort.cs
- ConstructorArgumentAttribute.cs
- MessageSecurityOverTcpElement.cs
- InputMethod.cs
- thaishape.cs
- Compiler.cs
- BuildResultCache.cs
- CultureNotFoundException.cs
- WinFormsComponentEditor.cs
- TcpProcessProtocolHandler.cs
- OverflowException.cs
- BackStopAuthenticationModule.cs
- SiteMapNodeCollection.cs
- InfoCardTrace.cs
- StateItem.cs
- UserInitiatedNavigationPermission.cs
- Triplet.cs
- ReadWriteSpinLock.cs
- BooleanToVisibilityConverter.cs
- DataSourceSelectArguments.cs
- UserControl.cs
- MsmqChannelFactoryBase.cs
- View.cs
- AutomationEventArgs.cs
- SqlProcedureAttribute.cs
- WebPart.cs
- CultureInfo.cs
- AccessorTable.cs
- LogPolicy.cs
- SourceExpressionException.cs
- AutoResetEvent.cs
- CapabilitiesState.cs
- ConfigurationValidatorBase.cs
- XPathScanner.cs
- MouseEvent.cs
- CodeAttributeArgument.cs
- StringConcat.cs
- DocumentOrderQuery.cs
- InputLanguage.cs
- FormViewActionList.cs
- TdsValueSetter.cs
- ConditionBrowserDialog.cs
- XmlDictionaryReaderQuotas.cs
- DataBinder.cs
- Action.cs
- ArrayElementGridEntry.cs
- ReadWriteObjectLock.cs
- MetadataSerializer.cs
- AbstractSvcMapFileLoader.cs
- RegexCompilationInfo.cs
- DocumentViewerHelper.cs
- LayoutEvent.cs
- _AcceptOverlappedAsyncResult.cs
- ToolStripActionList.cs
- CompilerGeneratedAttribute.cs
- WmlPanelAdapter.cs
- TextEditorTyping.cs
- APCustomTypeDescriptor.cs
- Query.cs
- ImageAutomationPeer.cs
- WpfKnownMemberInvoker.cs
- OutputCache.cs
- FrameworkTemplate.cs
- RootBrowserWindowAutomationPeer.cs
- DataSpaceManager.cs
- SchemaImporterExtensionElementCollection.cs
- XPathExpr.cs
- XmlWriter.cs
- ToolboxComponentsCreatingEventArgs.cs
- DebuggerAttributes.cs
- RuleConditionDialog.Designer.cs
- SqlBooleanMismatchVisitor.cs
- RectangleHotSpot.cs
- InvalidEnumArgumentException.cs
- ListControlDesigner.cs
- CustomMenuItemCollection.cs
- FlowLayoutPanelDesigner.cs
- RoleGroup.cs
- LinkAreaEditor.cs
- OrthographicCamera.cs
- DataColumn.cs
- Vector3DIndependentAnimationStorage.cs