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
- CategoryAttribute.cs
- BamlWriter.cs
- CodeIndexerExpression.cs
- ProviderConnectionPointCollection.cs
- RuleDefinitions.cs
- ContentElementAutomationPeer.cs
- TextServicesContext.cs
- PageBreakRecord.cs
- SyndicationCategory.cs
- unitconverter.cs
- SqlConnectionStringBuilder.cs
- Brush.cs
- PointCollection.cs
- Configuration.cs
- DependencyObjectProvider.cs
- TranslateTransform.cs
- OutputCacheEntry.cs
- safesecurityhelperavalon.cs
- ellipse.cs
- HtmlShim.cs
- QilParameter.cs
- Aggregates.cs
- ApplicationGesture.cs
- SafePointer.cs
- KeyTimeConverter.cs
- OperandQuery.cs
- WriteLineDesigner.xaml.cs
- ColorDialog.cs
- SemanticResultKey.cs
- NetworkCredential.cs
- validation.cs
- DataControlFieldCell.cs
- SiteMembershipCondition.cs
- WhitespaceSignificantCollectionAttribute.cs
- SecurityPolicySection.cs
- ArglessEventHandlerProxy.cs
- UnSafeCharBuffer.cs
- CacheMemory.cs
- LineServicesCallbacks.cs
- ValueProviderWrapper.cs
- ReflectionTypeLoadException.cs
- CacheEntry.cs
- PrintDocument.cs
- WorkflowMarkupSerializerMapping.cs
- ArraySubsetEnumerator.cs
- IndexedGlyphRun.cs
- GenericArgumentsUpdater.cs
- QueueNameHelper.cs
- ExpressionBuilder.cs
- XmlEventCache.cs
- DataListItemCollection.cs
- SiteMap.cs
- Imaging.cs
- DbModificationClause.cs
- StringFreezingAttribute.cs
- ChameleonKey.cs
- JpegBitmapEncoder.cs
- ProjectionAnalyzer.cs
- XmlSchemaSimpleTypeRestriction.cs
- IndentedWriter.cs
- CodeMethodInvokeExpression.cs
- SqlMethodCallConverter.cs
- CurrentChangingEventArgs.cs
- SQLInt32Storage.cs
- SmiEventSink_DeferedProcessing.cs
- AutomationElementCollection.cs
- OraclePermission.cs
- ChannelFactoryRefCache.cs
- ClientRolePrincipal.cs
- PermissionSetTriple.cs
- WindowsListView.cs
- HTMLTagNameToTypeMapper.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- CaseDesigner.xaml.cs
- SqlDataSourceCommandEventArgs.cs
- CredentialCache.cs
- RoleService.cs
- DocumentPageTextView.cs
- CallSiteHelpers.cs
- Comparer.cs
- TypeSource.cs
- AddressHeaderCollection.cs
- KeyFrames.cs
- XmlHierarchicalDataSourceView.cs
- TickBar.cs
- TextRange.cs
- EdgeModeValidation.cs
- InvalidateEvent.cs
- BackStopAuthenticationModule.cs
- X509Extension.cs
- DescendantBaseQuery.cs
- Subset.cs
- SecurityTokenProvider.cs
- WorkflowHostingEndpoint.cs
- DiscoveryProxy.cs
- InputScopeNameConverter.cs
- StorageModelBuildProvider.cs
- RegistrationServices.cs
- PageRouteHandler.cs
- UdpDiscoveryEndpointElement.cs