Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- XmlSchemaImport.cs
- ColorConvertedBitmapExtension.cs
- MetadataItemCollectionFactory.cs
- DisplayInformation.cs
- IArgumentProvider.cs
- xmlglyphRunInfo.cs
- FormatVersion.cs
- DataBoundControlActionList.cs
- SessionParameter.cs
- ContextMarshalException.cs
- HostingEnvironmentException.cs
- RequestQueryParser.cs
- VersionedStreamOwner.cs
- AnimationStorage.cs
- MaskedTextBoxTextEditorDropDown.cs
- ConfigWriter.cs
- ConfigXmlWhitespace.cs
- NumericUpDown.cs
- DecimalConverter.cs
- GrammarBuilderRuleRef.cs
- DocumentEventArgs.cs
- LayoutDump.cs
- UnmanagedMemoryStream.cs
- OneWayBindingElement.cs
- XmlBaseReader.cs
- IdentifierService.cs
- SoapAttributeAttribute.cs
- RenderingEventArgs.cs
- MetadataCache.cs
- QilPatternFactory.cs
- ThrowHelper.cs
- XsdCachingReader.cs
- MembershipAdapter.cs
- PenThreadPool.cs
- CodeBlockBuilder.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ClientConfigPaths.cs
- DataMisalignedException.cs
- WebPartEditorApplyVerb.cs
- GenericTextProperties.cs
- DynamicValidator.cs
- VectorValueSerializer.cs
- IfJoinedCondition.cs
- GridViewRow.cs
- SequenceQuery.cs
- BindingNavigatorDesigner.cs
- TextMarkerSource.cs
- DbParameterCollectionHelper.cs
- RequestCacheEntry.cs
- TextTreeObjectNode.cs
- TemplateControlParser.cs
- Identity.cs
- HtmlTable.cs
- XmlExtensionFunction.cs
- AnnotationComponentManager.cs
- ToolStripArrowRenderEventArgs.cs
- NodeLabelEditEvent.cs
- XmlHierarchyData.cs
- JoinQueryOperator.cs
- DeadCharTextComposition.cs
- XXXOnTypeBuilderInstantiation.cs
- XmlDictionaryString.cs
- DesignColumn.cs
- SubstitutionList.cs
- ListViewGroupConverter.cs
- EntityTypeEmitter.cs
- VirtualizingStackPanel.cs
- MemberInitExpression.cs
- SafeProcessHandle.cs
- Point3D.cs
- ImageAnimator.cs
- UpdatePanelTrigger.cs
- UIElementIsland.cs
- PermissionAttributes.cs
- GeneralTransform3DGroup.cs
- EventLogPermissionEntry.cs
- WinInetCache.cs
- SqlDataSourceParameterParser.cs
- WebPart.cs
- ContentValidator.cs
- XPathNodeList.cs
- ThreadAbortException.cs
- CultureTable.cs
- RuleCache.cs
- TdsParameterSetter.cs
- EncodingDataItem.cs
- MailWriter.cs
- CollectionEditorDialog.cs
- InternalResources.cs
- ObjectSet.cs
- CodeConditionStatement.cs
- SessionStateSection.cs
- __ComObject.cs
- AnimationException.cs
- SmtpFailedRecipientException.cs
- PrimitiveType.cs
- HttpRequest.cs
- ConsoleKeyInfo.cs
- StandardBindingElement.cs
- WeakEventTable.cs