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
- XmlComment.cs
- XPathNodeList.cs
- DirtyTextRange.cs
- EventLog.cs
- DiscoveryClientElement.cs
- EntityContainerEmitter.cs
- PassportIdentity.cs
- MarkupCompiler.cs
- WithParamAction.cs
- UpdateProgress.cs
- ExceptionValidationRule.cs
- ChannelServices.cs
- InputDevice.cs
- ContainerUIElement3D.cs
- TypeInitializationException.cs
- SafePEFileHandle.cs
- IConvertible.cs
- documentsequencetextpointer.cs
- FixedSOMPageElement.cs
- ITreeGenerator.cs
- FormViewPagerRow.cs
- SymmetricCryptoHandle.cs
- ActivityDesignerAccessibleObject.cs
- _UriSyntax.cs
- GradientSpreadMethodValidation.cs
- OperatorExpressions.cs
- RTTypeWrapper.cs
- HttpRequest.cs
- MessagePartSpecification.cs
- TypePropertyEditor.cs
- Timer.cs
- LinearKeyFrames.cs
- DataServiceQueryOfT.cs
- SimpleType.cs
- MessageQueueCriteria.cs
- PriorityQueue.cs
- MethodSet.cs
- ZipIOExtraField.cs
- UTF8Encoding.cs
- IndicFontClient.cs
- CodeDirectoryCompiler.cs
- ObjectMemberMapping.cs
- MachinePropertyVariants.cs
- AppModelKnownContentFactory.cs
- XmlSchemaExporter.cs
- GeometryGroup.cs
- MobileComponentEditorPage.cs
- TransformerTypeCollection.cs
- XhtmlTextWriter.cs
- FormClosingEvent.cs
- Wrapper.cs
- CompressEmulationStream.cs
- WindowsStartMenu.cs
- PointKeyFrameCollection.cs
- RequestQueue.cs
- OdbcCommand.cs
- InputLanguageSource.cs
- FixedSOMElement.cs
- ContextMenuService.cs
- DataGridViewCellStyle.cs
- BatchStream.cs
- UnsafeNativeMethods.cs
- XslAstAnalyzer.cs
- PowerModeChangedEventArgs.cs
- SetIndexBinder.cs
- OuterProxyWrapper.cs
- GridProviderWrapper.cs
- OleDbTransaction.cs
- TypeLibConverter.cs
- PagedDataSource.cs
- PkcsUtils.cs
- WebHeaderCollection.cs
- PopupControlService.cs
- TemplateColumn.cs
- Converter.cs
- Message.cs
- DesignerValidationSummaryAdapter.cs
- DateTimeConstantAttribute.cs
- XmlUrlResolver.cs
- FrameDimension.cs
- EnumValAlphaComparer.cs
- DependencyObjectCodeDomSerializer.cs
- HttpRuntime.cs
- ToolConsole.cs
- DbProviderFactories.cs
- JsonGlobals.cs
- CompiledRegexRunner.cs
- FilteredDataSetHelper.cs
- DateTimeConverter.cs
- ImageListUtils.cs
- HtmlWindow.cs
- InvalidComObjectException.cs
- ScrollItemPattern.cs
- CheckBoxField.cs
- MenuScrollingVisibilityConverter.cs
- GroupDescription.cs
- SqlWebEventProvider.cs
- PageCache.cs
- FunctionNode.cs
- SoapProtocolImporter.cs