Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusButtonEventArgs.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LinqDataView.cs
- Point4D.cs
- SafeNativeMethods.cs
- StrongBox.cs
- PauseStoryboard.cs
- TextWriterTraceListener.cs
- PermissionSetEnumerator.cs
- ToolStripItemGlyph.cs
- sqlinternaltransaction.cs
- EmptyWorkItem.cs
- SqlDataSourceQuery.cs
- FloatAverageAggregationOperator.cs
- SystemUnicastIPAddressInformation.cs
- ProvidePropertyAttribute.cs
- DefaultTextStoreTextComposition.cs
- DesignTimeTemplateParser.cs
- StringArrayConverter.cs
- BaseTemplateParser.cs
- DelegateSerializationHolder.cs
- SynchronizedDispatch.cs
- XmlCodeExporter.cs
- CodeVariableReferenceExpression.cs
- SecurityTokenAuthenticator.cs
- EntityKeyElement.cs
- QueryContinueDragEvent.cs
- DirectoryGroupQuery.cs
- Single.cs
- TraceLog.cs
- WebConvert.cs
- CrossSiteScriptingValidation.cs
- SiteMapNodeItem.cs
- COM2PropertyDescriptor.cs
- GCHandleCookieTable.cs
- DataMemberAttribute.cs
- TdsValueSetter.cs
- HttpValueCollection.cs
- HebrewCalendar.cs
- ConfigurationSectionHelper.cs
- SoapInteropTypes.cs
- XmlDocumentFragment.cs
- RepeaterItem.cs
- ParallelDesigner.xaml.cs
- IFlowDocumentViewer.cs
- QueueSurrogate.cs
- ProxyWebPart.cs
- EditCommandColumn.cs
- Size3DConverter.cs
- Pair.cs
- ADMembershipProvider.cs
- ApplyImportsAction.cs
- _BaseOverlappedAsyncResult.cs
- RootBrowserWindowAutomationPeer.cs
- CodeDelegateInvokeExpression.cs
- Native.cs
- XmlILTrace.cs
- HttpCookieCollection.cs
- PersonalizationProviderCollection.cs
- TimeSpanMinutesConverter.cs
- XmlSiteMapProvider.cs
- OutputCacheEntry.cs
- CacheAxisQuery.cs
- WithStatement.cs
- CqlBlock.cs
- IgnoreFileBuildProvider.cs
- SqlRowUpdatingEvent.cs
- TextEffect.cs
- EncryptedKey.cs
- SystemIcons.cs
- NamespaceInfo.cs
- UserControlAutomationPeer.cs
- SmtpTransport.cs
- WorkflowMarkupSerializationManager.cs
- ExpressionConverter.cs
- ValidatorCollection.cs
- basevalidator.cs
- Stopwatch.cs
- UniqueConstraint.cs
- HttpCacheParams.cs
- _UriSyntax.cs
- DateTime.cs
- Substitution.cs
- SqlNodeAnnotations.cs
- XmlElementList.cs
- _ListenerAsyncResult.cs
- PermissionListSet.cs
- StaticDataManager.cs
- BindingListCollectionView.cs
- ComplexTypeEmitter.cs
- ObjectSecurity.cs
- NamespaceExpr.cs
- FileLevelControlBuilderAttribute.cs
- DecimalFormatter.cs
- PublishLicense.cs
- VirtualDirectoryMappingCollection.cs
- DragDrop.cs
- InputLanguageManager.cs
- OdbcError.cs
- UnsafeNativeMethods.cs
- ElementFactory.cs
- SystemResourceHost.cs