Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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) { // _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
- GenerateHelper.cs
- LabelEditEvent.cs
- PLINQETWProvider.cs
- StopStoryboard.cs
- InternalRelationshipCollection.cs
- XslCompiledTransform.cs
- GridViewCancelEditEventArgs.cs
- CustomAttribute.cs
- CatalogZone.cs
- RectangleHotSpot.cs
- ControlTemplate.cs
- FrameAutomationPeer.cs
- CustomCategoryAttribute.cs
- CallContext.cs
- TrackingLocationCollection.cs
- DesignerActionList.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- GeometryDrawing.cs
- MetadataArtifactLoaderCompositeFile.cs
- ApplicationInfo.cs
- XmlSchema.cs
- FormatControl.cs
- Renderer.cs
- Transform.cs
- NativeObjectSecurity.cs
- PersonalizationState.cs
- DataGridViewCellStyleChangedEventArgs.cs
- RegexRunner.cs
- ProviderBase.cs
- EntityDataSourceChangedEventArgs.cs
- XmlChoiceIdentifierAttribute.cs
- Visual3D.cs
- XmlSchemaDocumentation.cs
- ConfigurationLockCollection.cs
- Control.cs
- SelectionRangeConverter.cs
- Menu.cs
- CorrelationKey.cs
- LogPolicy.cs
- nulltextnavigator.cs
- XmlEventCache.cs
- MTConfigUtil.cs
- RenderOptions.cs
- ApplicationInfo.cs
- DetailsViewPageEventArgs.cs
- ReverseQueryOperator.cs
- SchemaCollectionPreprocessor.cs
- ListView.cs
- TrackingMemoryStreamFactory.cs
- HttpRuntime.cs
- DataSourceControl.cs
- FaultPropagationQuery.cs
- Label.cs
- StretchValidation.cs
- GenerateDerivedKeyRequest.cs
- Pen.cs
- ExtendedPropertyDescriptor.cs
- WebServiceParameterData.cs
- CodeObject.cs
- Int32Rect.cs
- AddressHeader.cs
- TextSpan.cs
- DocumentScope.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MsmqReceiveParameters.cs
- RichTextBoxAutomationPeer.cs
- Char.cs
- InplaceBitmapMetadataWriter.cs
- DispatcherOperation.cs
- ActiveXHost.cs
- EditorPartCollection.cs
- EncoderParameter.cs
- ProxyHwnd.cs
- MeasureData.cs
- DataListItem.cs
- GlobalItem.cs
- VBCodeProvider.cs
- ServiceDescriptionData.cs
- HitTestParameters3D.cs
- CompoundFileReference.cs
- WindowsServiceElement.cs
- ValidatorUtils.cs
- DbConnectionStringCommon.cs
- TrackBar.cs
- DataContractSerializerOperationGenerator.cs
- DesignerWidgets.cs
- MediaContextNotificationWindow.cs
- LogSwitch.cs
- SafeThreadHandle.cs
- RadioButtonBaseAdapter.cs
- IList.cs
- DateTimeFormat.cs
- SqlGenericUtil.cs
- MemberPath.cs
- AnnotationMap.cs
- CategoryAttribute.cs
- RegexCaptureCollection.cs
- DrawItemEvent.cs
- XmlTypeMapping.cs
- BindingCompleteEventArgs.cs