Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TextTreeInsertUndoUnit.cs
- FlatButtonAppearance.cs
- ArcSegment.cs
- ParameterReplacerVisitor.cs
- Object.cs
- FunctionImportElement.cs
- CompensationDesigner.cs
- ToolStripMenuItemCodeDomSerializer.cs
- CodeDomConfigurationHandler.cs
- AssemblyNameUtility.cs
- CustomErrorsSectionWrapper.cs
- SecurityAppliedMessage.cs
- ProgressiveCrcCalculatingStream.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- CachedBitmap.cs
- SourceSwitch.cs
- StatusBarPanel.cs
- DataGridViewCellParsingEventArgs.cs
- GridViewRowPresenterBase.cs
- FacetValues.cs
- StatusBarItemAutomationPeer.cs
- CompilerTypeWithParams.cs
- NumericExpr.cs
- MarkupExtensionParser.cs
- InputLanguageCollection.cs
- UnsafeNativeMethodsPenimc.cs
- CheckPair.cs
- Int16AnimationUsingKeyFrames.cs
- XmlName.cs
- unsafenativemethodsother.cs
- PartitionResolver.cs
- processwaithandle.cs
- InvalidComObjectException.cs
- RichTextBoxAutomationPeer.cs
- MetadataArtifactLoaderCompositeFile.cs
- SqlClientWrapperSmiStreamChars.cs
- WebPartEditVerb.cs
- DomainUpDown.cs
- FrameworkObject.cs
- ThreadExceptionEvent.cs
- IOException.cs
- EntityContainerAssociationSet.cs
- securitymgrsite.cs
- PropVariant.cs
- GridViewColumnHeaderAutomationPeer.cs
- TextTrailingWordEllipsis.cs
- IssuanceLicense.cs
- Variable.cs
- MembershipUser.cs
- FormClosedEvent.cs
- LazyInitializer.cs
- CurrentChangingEventArgs.cs
- MembershipValidatePasswordEventArgs.cs
- ZipIOExtraFieldPaddingElement.cs
- AmbientValueAttribute.cs
- Nodes.cs
- BulletedList.cs
- XmlNullResolver.cs
- XmlNodeComparer.cs
- invalidudtexception.cs
- ObjectAnimationBase.cs
- DecoderReplacementFallback.cs
- AvtEvent.cs
- SafeLibraryHandle.cs
- XmlSchemaObjectCollection.cs
- GeometryConverter.cs
- NoResizeSelectionBorderGlyph.cs
- ToolStripStatusLabel.cs
- VersionedStreamOwner.cs
- DataRecord.cs
- ExeContext.cs
- ThreadPool.cs
- HMAC.cs
- DataGridParentRows.cs
- WindowsPrincipal.cs
- AuthorizationSection.cs
- Serializer.cs
- SqlDataSourceSelectingEventArgs.cs
- XsdDuration.cs
- SettingsProviderCollection.cs
- LocalizableResourceBuilder.cs
- DocumentXmlWriter.cs
- IconHelper.cs
- SapiRecoContext.cs
- ContextQuery.cs
- _SslState.cs
- ResourceDescriptionAttribute.cs
- Helpers.cs
- DataGridViewRowEventArgs.cs
- Localizer.cs
- HtmlContainerControl.cs
- DataTableNewRowEvent.cs
- GeneratedContractType.cs
- InvokeMemberBinder.cs
- ListItemConverter.cs
- TextContainerHelper.cs
- WeakEventTable.cs
- COSERVERINFO.cs
- XmlDictionaryWriter.cs
- VisualStyleTypesAndProperties.cs