Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / ManipulationStartedEventArgs.cs / 1305600 / ManipulationStartedEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; using System.Security; using System.Windows; using System.Windows.Media; namespace System.Windows.Input { ////// Provides information regarding the beginning of a manipulation. /// public sealed class ManipulationStartedEventArgs : InputEventArgs { ////// Instantiates a new instance of this class. /// internal ManipulationStartedEventArgs( ManipulationDevice manipulationDevice, int timestamp, IInputElement manipulationContainer, Point origin) : base(manipulationDevice, timestamp) { RoutedEvent = Manipulation.ManipulationStartedEvent; ManipulationContainer = manipulationContainer; ManipulationOrigin = origin; } ////// Invokes a handler of this event. /// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { if (genericHandler == null) { throw new ArgumentNullException("genericHandler"); } if (genericTarget == null) { throw new ArgumentNullException("genericTarget"); } if (RoutedEvent == Manipulation.ManipulationStartedEvent) { ((EventHandler)genericHandler)(genericTarget, this); } else { base.InvokeEventHandler(genericHandler, genericTarget); } } /// /// Defines the coordinate space of the other properties. /// public IInputElement ManipulationContainer { get; private set; } ////// Returns the value of the origin. /// public Point ManipulationOrigin { get; private set; } ////// Preempts further processing and completes the manipulation without any inertia. /// public void Complete() { RequestedComplete = true; RequestedCancel = false; } ////// Method to cancel the Manipulation /// ///A bool indicating the success of Cancel public bool Cancel() { RequestedCancel = true; RequestedComplete = false; return true; } ////// A handler requested that the manipulation complete. /// internal bool RequestedComplete { get; private set; } ////// A handler Requested to cancel the Manipulation /// internal bool RequestedCancel { get; private set; } ////// The Manipulators for this manipulation. /// public IEnumerableManipulators { get { if (_manipulators == null) { _manipulators = ((ManipulationDevice)Device).GetManipulatorsReadOnly(); } return _manipulators; } } private IEnumerable _manipulators; } } // 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
- GridItemPatternIdentifiers.cs
- RuleConditionDialog.Designer.cs
- RawTextInputReport.cs
- WebPartManager.cs
- EntityDataSourceSelectingEventArgs.cs
- HttpFileCollection.cs
- ObjectDataSourceSelectingEventArgs.cs
- NativeMethods.cs
- FunctionImportMapping.cs
- DuplicateWaitObjectException.cs
- Function.cs
- PhonemeEventArgs.cs
- Int64KeyFrameCollection.cs
- ErrorHandler.cs
- Version.cs
- NameNode.cs
- DesignSurfaceServiceContainer.cs
- ConditionValidator.cs
- SqlDataSourceCommandParser.cs
- XsltSettings.cs
- SubqueryRules.cs
- XmlSerializationReader.cs
- VectorConverter.cs
- MultiView.cs
- COM2ComponentEditor.cs
- TypeReference.cs
- CookielessHelper.cs
- DataMemberFieldEditor.cs
- Utils.cs
- PrintDialog.cs
- BrowsableAttribute.cs
- PropertyValueUIItem.cs
- PreviewPrintController.cs
- GridViewDeletedEventArgs.cs
- SchemaMapping.cs
- OracleRowUpdatedEventArgs.cs
- HtmlInputRadioButton.cs
- DbInsertCommandTree.cs
- EntityDataReader.cs
- _SSPIWrapper.cs
- DATA_BLOB.cs
- MemberDomainMap.cs
- ModuleBuilderData.cs
- SqlInternalConnection.cs
- PreservationFileReader.cs
- IndependentlyAnimatedPropertyMetadata.cs
- panel.cs
- DocumentPaginator.cs
- CodeLinePragma.cs
- DoubleUtil.cs
- ParagraphResult.cs
- RegexWriter.cs
- BitmapEffectInput.cs
- ValueConversionAttribute.cs
- CounterSample.cs
- ConfigXmlAttribute.cs
- SortExpressionBuilder.cs
- XmlSchemaCompilationSettings.cs
- Evidence.cs
- XmlSchemaAll.cs
- WebZone.cs
- DropSourceBehavior.cs
- VarRemapper.cs
- WebSysDisplayNameAttribute.cs
- QuaternionConverter.cs
- BufferedReadStream.cs
- StyleXamlParser.cs
- Parameter.cs
- CodeTryCatchFinallyStatement.cs
- Processor.cs
- CodeMemberField.cs
- HtmlInputSubmit.cs
- OperationAbortedException.cs
- AdornerLayer.cs
- DataGridViewComboBoxCell.cs
- HttpHeaderCollection.cs
- DesignerGeometryHelper.cs
- DetailsView.cs
- FileChangesMonitor.cs
- OdbcHandle.cs
- ApplyImportsAction.cs
- _ListenerResponseStream.cs
- PackWebRequest.cs
- AuthenticateEventArgs.cs
- AutomationProperty.cs
- SymbolTable.cs
- TextRangeProviderWrapper.cs
- SchemaContext.cs
- StreamWriter.cs
- baseaxisquery.cs
- WriteFileContext.cs
- Events.cs
- AmbientEnvironment.cs
- PenCursorManager.cs
- storepermissionattribute.cs
- SecurityUtils.cs
- RuntimeWrappedException.cs
- QueryOperationResponseOfT.cs
- ActivityMarkupSerializer.cs
- XamlHostingSection.cs