Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusButtonEventArgs.cs / 1 / StylusButtonEventArgs.cs
using System; using System.Collections; using System.ComponentModel; using System.Windows.Media; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// //////Event argument used to subscribe to StylusButtonDown/Up events. ///The only information required to be passed by this argument is which button had the state change. /// public class StylusButtonEventArgs : StylusEventArgs { ///////////////////////////////////////////////////////////////////// ////// Initializes a new instance of the StylusButtonEventArgs class. /// /// /// The logical Stylus device associated with this event. /// /// /// The time when the input occured. /// /// /// The button. /// public StylusButtonEventArgs( StylusDevice stylusDevice, int timestamp, StylusButton button) : base(stylusDevice, timestamp) { // ISSUE_XiaoTu: Do we need any validation here? _button = button; } ////// Get the StylusButton /// public StylusButton StylusButton { get { return _button; } } ///////////////////////////////////////////////////////////////////// ////// The mechanism used to call the type-specific handler on the /// target. /// /// /// The generic handler to call in a type-specific way. /// /// /// The target to call the handler on. /// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { StylusButtonEventHandler handler = (StylusButtonEventHandler)genericHandler; handler(genericTarget, this); } ///////////////////////////////////////////////////////////////////// /// StylusButton _button; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections; using System.ComponentModel; using System.Windows.Media; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// //////Event argument used to subscribe to StylusButtonDown/Up events. ///The only information required to be passed by this argument is which button had the state change. /// public class StylusButtonEventArgs : StylusEventArgs { ///////////////////////////////////////////////////////////////////// ////// Initializes a new instance of the StylusButtonEventArgs class. /// /// /// The logical Stylus device associated with this event. /// /// /// The time when the input occured. /// /// /// The button. /// public StylusButtonEventArgs( StylusDevice stylusDevice, int timestamp, StylusButton button) : base(stylusDevice, timestamp) { // ISSUE_XiaoTu: Do we need any validation here? _button = button; } ////// Get the StylusButton /// public StylusButton StylusButton { get { return _button; } } ///////////////////////////////////////////////////////////////////// ////// The mechanism used to call the type-specific handler on the /// target. /// /// /// The generic handler to call in a type-specific way. /// /// /// The target to call the handler on. /// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { StylusButtonEventHandler handler = (StylusButtonEventHandler)genericHandler; handler(genericTarget, this); } ///////////////////////////////////////////////////////////////////// /// StylusButton _button; } } // 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
- CodeMethodMap.cs
- _LoggingObject.cs
- EntryIndex.cs
- ScriptingJsonSerializationSection.cs
- EventRouteFactory.cs
- ColumnHeader.cs
- SqlDataSourceCache.cs
- StateDesigner.Helpers.cs
- XmlValueConverter.cs
- DATA_BLOB.cs
- ViewStateModeByIdAttribute.cs
- Cursors.cs
- AuthenticatingEventArgs.cs
- MessagePropertyFilter.cs
- CompoundFileStreamReference.cs
- CodeDelegateCreateExpression.cs
- ListViewPagedDataSource.cs
- ExpressionList.cs
- EncoderParameter.cs
- Connector.cs
- ClientEventManager.cs
- MailAddressCollection.cs
- HttpCapabilitiesBase.cs
- DefaultValueAttribute.cs
- BmpBitmapEncoder.cs
- CanonicalXml.cs
- FlowNode.cs
- PageParserFilter.cs
- WindowsRichEditRange.cs
- SqlTriggerContext.cs
- TextElementCollectionHelper.cs
- querybuilder.cs
- CharStorage.cs
- OdbcException.cs
- FrameworkContextData.cs
- TextRunCache.cs
- Condition.cs
- ImageDrawing.cs
- MimeMapping.cs
- xmlfixedPageInfo.cs
- DrawingContextDrawingContextWalker.cs
- AsyncCodeActivityContext.cs
- UIElementParagraph.cs
- VisualStyleRenderer.cs
- SqlProfileProvider.cs
- WebPartConnectionsCloseVerb.cs
- ImagingCache.cs
- DataBindingValueUIHandler.cs
- XmlBufferedByteStreamReader.cs
- HttpApplicationStateWrapper.cs
- StringComparer.cs
- SevenBitStream.cs
- SchemaConstraints.cs
- InputBinding.cs
- CodeTypeParameterCollection.cs
- Latin1Encoding.cs
- SQLInt16.cs
- DataGridViewSelectedRowCollection.cs
- LogicalCallContext.cs
- OdbcConnectionPoolProviderInfo.cs
- SafeCertificateContext.cs
- EnumConverter.cs
- RegexTree.cs
- TreeNodeSelectionProcessor.cs
- SqlCommand.cs
- UdpChannelFactory.cs
- ComponentSerializationService.cs
- TextTreeObjectNode.cs
- TreeNodeStyleCollection.cs
- TextElementCollection.cs
- SecureStringHasher.cs
- ConfigXmlText.cs
- TextViewSelectionProcessor.cs
- PropertyCollection.cs
- PKCS1MaskGenerationMethod.cs
- RenderDataDrawingContext.cs
- HwndKeyboardInputProvider.cs
- ImageButton.cs
- DecimalStorage.cs
- TextEndOfLine.cs
- safemediahandle.cs
- EdmItemCollection.cs
- IsolatedStorageSecurityState.cs
- MaskDescriptor.cs
- Adorner.cs
- HwndSource.cs
- ParameterReplacerVisitor.cs
- PhysicalAddress.cs
- BamlWriter.cs
- SerialPort.cs
- XmlElement.cs
- ToggleButton.cs
- TreeViewImageKeyConverter.cs
- FrameworkTextComposition.cs
- autovalidator.cs
- Events.cs
- EntityParameter.cs
- LinqDataSourceValidationException.cs
- SqlTopReducer.cs
- basevalidator.cs