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
- WeakRefEnumerator.cs
- DataServiceExpressionVisitor.cs
- AnnotationComponentChooser.cs
- DocumentApplicationJournalEntry.cs
- AnnouncementInnerClient11.cs
- PKCS1MaskGenerationMethod.cs
- XmlCollation.cs
- GeneralTransform3DTo2D.cs
- AddInStore.cs
- RemoteDebugger.cs
- SchemaAttDef.cs
- DSACryptoServiceProvider.cs
- TCEAdapterGenerator.cs
- BaseTreeIterator.cs
- DrawListViewColumnHeaderEventArgs.cs
- SwitchExpression.cs
- SignedPkcs7.cs
- DockAndAnchorLayout.cs
- CheckBoxBaseAdapter.cs
- CellLabel.cs
- SchemaContext.cs
- ClientSponsor.cs
- ReadOnlyCollection.cs
- OdbcStatementHandle.cs
- DefaultCommandConverter.cs
- PowerModeChangedEventArgs.cs
- XmlSiteMapProvider.cs
- DataGridTablesFactory.cs
- HtmlTableRowCollection.cs
- TiffBitmapDecoder.cs
- ActiveXSite.cs
- TypeBuilder.cs
- ProcessDesigner.cs
- TemplatePagerField.cs
- ModelTreeEnumerator.cs
- RoleProviderPrincipal.cs
- SafeSecurityHelper.cs
- XPathAncestorQuery.cs
- XmlDocumentFragment.cs
- _ConnectionGroup.cs
- TableLayoutPanelBehavior.cs
- XmlSchemaAny.cs
- Button.cs
- XmlSchemaSimpleType.cs
- Normalizer.cs
- IntranetCredentialPolicy.cs
- AsyncWaitHandle.cs
- LoopExpression.cs
- Line.cs
- SerializationBinder.cs
- DispatchChannelSink.cs
- EventTask.cs
- RNGCryptoServiceProvider.cs
- MetadataArtifactLoaderComposite.cs
- ViewManagerAttribute.cs
- StickyNoteContentControl.cs
- SQLDecimal.cs
- WindowsSolidBrush.cs
- SortDescriptionCollection.cs
- RTLAwareMessageBox.cs
- StrongNamePublicKeyBlob.cs
- EntityTemplateFactory.cs
- DeferredSelectedIndexReference.cs
- OracleDateTime.cs
- HtmlMeta.cs
- MenuItemBinding.cs
- DispatcherFrame.cs
- DataGridViewColumn.cs
- XamlSerializerUtil.cs
- ColumnMapVisitor.cs
- EnterpriseServicesHelper.cs
- ObjectDataSourceView.cs
- VirtualPath.cs
- ParallelQuery.cs
- GroupStyle.cs
- XmlIterators.cs
- DeclarativeCatalogPart.cs
- StringAnimationBase.cs
- DataGridViewBindingCompleteEventArgs.cs
- CodeConstructor.cs
- CachedBitmap.cs
- MenuItemCollection.cs
- InfoCardSymmetricAlgorithm.cs
- TextPatternIdentifiers.cs
- RelationshipManager.cs
- CharConverter.cs
- RSAOAEPKeyExchangeFormatter.cs
- ParallelTimeline.cs
- StylusTouchDevice.cs
- CodeNamespace.cs
- XmlCountingReader.cs
- EmissiveMaterial.cs
- DeclarativeCatalogPart.cs
- RadioButtonStandardAdapter.cs
- HttpInputStream.cs
- ZipPackagePart.cs
- TypeSource.cs
- StringCollectionMarkupSerializer.cs
- InstanceCollisionException.cs
- SqlUserDefinedTypeAttribute.cs