Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / ManipulationBoundaryFeedbackEventArgs.cs / 1305600 / ManipulationBoundaryFeedbackEventArgs.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 { ////// Allows a handler to provide feedback when a manipulation has encountered a boundary. /// public sealed class ManipulationBoundaryFeedbackEventArgs : InputEventArgs { ////// Instantiates a new instance of this class. /// internal ManipulationBoundaryFeedbackEventArgs( ManipulationDevice manipulationDevice, int timestamp, IInputElement manipulationContainer, ManipulationDelta boundaryFeedback) : base(manipulationDevice, timestamp) { RoutedEvent = Manipulation.ManipulationBoundaryFeedbackEvent; ManipulationContainer = manipulationContainer; BoundaryFeedback = boundaryFeedback; } ////// 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.ManipulationBoundaryFeedbackEvent) { ((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 excess portion of a direct manipulation. /// public ManipulationDelta BoundaryFeedback { get; private set; } ////// Function to compensate the Manipulation positions /// with respect to BoundaryFeedback. /// internal FuncCompensateForBoundaryFeedback { get; 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
- AspNetSynchronizationContext.cs
- SimpleExpression.cs
- SimpleExpression.cs
- XMLSchema.cs
- ApplicationCommands.cs
- ComplexBindingPropertiesAttribute.cs
- EntityDataSourceSelectingEventArgs.cs
- WorkBatch.cs
- listviewsubitemcollectioneditor.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MetadataUtilsSmi.cs
- PrinterResolution.cs
- NameValuePermission.cs
- TextTrailingWordEllipsis.cs
- GestureRecognizer.cs
- CriticalHandle.cs
- SecurityToken.cs
- ImageClickEventArgs.cs
- X509SecurityTokenProvider.cs
- SearchForVirtualItemEventArgs.cs
- OperationParameterInfo.cs
- Pens.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ArcSegment.cs
- CodeExpressionStatement.cs
- ContentOperations.cs
- StylusButtonEventArgs.cs
- ObjectCloneHelper.cs
- SafeArrayRankMismatchException.cs
- ViewBox.cs
- SafeNativeMethods.cs
- PartialArray.cs
- NullNotAllowedCollection.cs
- SourceFilter.cs
- Array.cs
- HighlightComponent.cs
- MasterPage.cs
- ColorIndependentAnimationStorage.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ZoneLinkButton.cs
- CopyNodeSetAction.cs
- StylusDownEventArgs.cs
- ParamArrayAttribute.cs
- TrackingMemoryStreamFactory.cs
- DataGridViewCellFormattingEventArgs.cs
- TypeUnloadedException.cs
- CngAlgorithmGroup.cs
- Axis.cs
- TypeToken.cs
- DataSetUtil.cs
- GlobalDataBindingHandler.cs
- ThreadAbortException.cs
- ObjectDataSource.cs
- ApplicationSecurityManager.cs
- PeerObject.cs
- ListBoxAutomationPeer.cs
- DependencySource.cs
- SrgsText.cs
- externdll.cs
- FixedDocument.cs
- DbException.cs
- AsyncResult.cs
- RegexRunnerFactory.cs
- EditorZoneBase.cs
- ADRoleFactoryConfiguration.cs
- ClientTargetSection.cs
- EncoderParameter.cs
- ViewLoader.cs
- CellParaClient.cs
- ProtocolsConfigurationHandler.cs
- ContainerAction.cs
- XslAst.cs
- GridViewEditEventArgs.cs
- SystemPens.cs
- DocumentPageHost.cs
- ViewManagerAttribute.cs
- EncodingDataItem.cs
- StateMachineSubscription.cs
- RNGCryptoServiceProvider.cs
- StretchValidation.cs
- AesCryptoServiceProvider.cs
- ExpressionHelper.cs
- WebPartDisplayModeCollection.cs
- TreeNodeCollection.cs
- Thread.cs
- QueueSurrogate.cs
- VectorAnimationUsingKeyFrames.cs
- DispatchChannelSink.cs
- StructuralType.cs
- MD5CryptoServiceProvider.cs
- ConnectionProviderAttribute.cs
- PagerSettings.cs
- BuildResultCache.cs
- TextSchema.cs
- ConfigurationValues.cs
- FontCollection.cs
- CultureInfo.cs
- CssClassPropertyAttribute.cs
- ConstructorBuilder.cs
- ContextQuery.cs