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
- ConfigurationProperty.cs
- EntryPointNotFoundException.cs
- AppDomainAttributes.cs
- SafeFileMappingHandle.cs
- FontDialog.cs
- Select.cs
- RectConverter.cs
- HostingPreferredMapPath.cs
- OLEDB_Enum.cs
- Model3D.cs
- DataGridViewSelectedColumnCollection.cs
- BindingGroup.cs
- SqlClientWrapperSmiStream.cs
- ZipArchive.cs
- StringInfo.cs
- HybridDictionary.cs
- DataServiceHostFactory.cs
- KerberosSecurityTokenAuthenticator.cs
- CodeDelegateInvokeExpression.cs
- ReceiveParametersContent.cs
- CommandConverter.cs
- IDataContractSurrogate.cs
- PolicyManager.cs
- ControlParameter.cs
- OleDbCommand.cs
- EntityExpressionVisitor.cs
- MruCache.cs
- AutoCompleteStringCollection.cs
- XmlQueryOutput.cs
- OpenFileDialog.cs
- RelatedImageListAttribute.cs
- Help.cs
- XPathScanner.cs
- Matrix3DStack.cs
- DateRangeEvent.cs
- SoapSchemaExporter.cs
- FormatterConverter.cs
- Maps.cs
- BitHelper.cs
- exports.cs
- StringConverter.cs
- XslAstAnalyzer.cs
- WebPartDisplayModeEventArgs.cs
- CompleteWizardStep.cs
- BatchParser.cs
- BitSet.cs
- CounterSample.cs
- PublishLicense.cs
- UTF7Encoding.cs
- TypeDefinition.cs
- InputElement.cs
- DBCSCodePageEncoding.cs
- ComponentManagerBroker.cs
- InkPresenterAutomationPeer.cs
- FlowDocumentReaderAutomationPeer.cs
- EncoderReplacementFallback.cs
- DashStyles.cs
- XmlDataLoader.cs
- InkCanvas.cs
- SecurityTokenInclusionMode.cs
- StateValidator.cs
- CalculatedColumn.cs
- Propagator.JoinPropagator.cs
- Error.cs
- RenderContext.cs
- DataGridCellItemAutomationPeer.cs
- DateTimeFormat.cs
- PointAnimationBase.cs
- DataControlFieldCell.cs
- NavigationWindow.cs
- StreamInfo.cs
- OleDbError.cs
- Input.cs
- ScopeCompiler.cs
- XmlSchemaObjectCollection.cs
- RankException.cs
- SectionUpdates.cs
- Fault.cs
- InfiniteTimeSpanConverter.cs
- SmiEventStream.cs
- XamlPointCollectionSerializer.cs
- RegionData.cs
- ClientApiGenerator.cs
- DependsOnAttribute.cs
- DbMetaDataCollectionNames.cs
- DockPatternIdentifiers.cs
- MarkupExtensionReturnTypeAttribute.cs
- ActivityTypeResolver.xaml.cs
- CharAnimationBase.cs
- ExceptionCollection.cs
- ADRoleFactoryConfiguration.cs
- WorkItem.cs
- WinEventHandler.cs
- JsonClassDataContract.cs
- NegatedCellConstant.cs
- AttributeData.cs
- RuntimeVariableList.cs
- FontCacheLogic.cs
- TimestampInformation.cs
- NullableIntAverageAggregationOperator.cs