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
- DataGridViewRowStateChangedEventArgs.cs
- Section.cs
- RSAOAEPKeyExchangeDeformatter.cs
- GlyphRunDrawing.cs
- DeviceContext2.cs
- ZoomPercentageConverter.cs
- UxThemeWrapper.cs
- PolygonHotSpot.cs
- ImagingCache.cs
- ServiceHostingEnvironment.cs
- ListViewEditEventArgs.cs
- PathFigureCollection.cs
- Command.cs
- StatusBar.cs
- SchemaConstraints.cs
- EdmProviderManifest.cs
- HttpListenerPrefixCollection.cs
- ThemeInfoAttribute.cs
- SchemaTypeEmitter.cs
- XDeferredAxisSource.cs
- EntityParameter.cs
- ObjectAnimationUsingKeyFrames.cs
- AnchoredBlock.cs
- SpeechUI.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- XPathScanner.cs
- LinkArea.cs
- ConfigurationSchemaErrors.cs
- TextEvent.cs
- Matrix.cs
- GridLengthConverter.cs
- GradientSpreadMethodValidation.cs
- DeviceFiltersSection.cs
- XPathDocumentIterator.cs
- CryptoStream.cs
- SqlParameter.cs
- HtmlElementEventArgs.cs
- PointCollectionConverter.cs
- ListViewSelectEventArgs.cs
- HwndKeyboardInputProvider.cs
- ProcessInfo.cs
- ViewBox.cs
- WorkflowOperationBehavior.cs
- XMLUtil.cs
- StructuralObject.cs
- _DisconnectOverlappedAsyncResult.cs
- AttributeCollection.cs
- ParameterToken.cs
- RenderCapability.cs
- ConfigXmlAttribute.cs
- XsltArgumentList.cs
- TextParaLineResult.cs
- EntityDataSourceSelectingEventArgs.cs
- UpdateEventArgs.cs
- BeginStoryboard.cs
- IdentityModelStringsVersion1.cs
- OperatorExpressions.cs
- Debugger.cs
- QuaternionAnimation.cs
- RectAnimationUsingKeyFrames.cs
- PropertyInformation.cs
- InteropTrackingRecord.cs
- _NegotiateClient.cs
- XmlCharacterData.cs
- SqlNamer.cs
- _ListenerResponseStream.cs
- SystemPens.cs
- XmlTextReader.cs
- DataGridViewRowStateChangedEventArgs.cs
- MouseGesture.cs
- TextSimpleMarkerProperties.cs
- RijndaelManagedTransform.cs
- XmlSchema.cs
- CharacterShapingProperties.cs
- BrowserInteropHelper.cs
- EventSourceCreationData.cs
- CodeAttributeArgumentCollection.cs
- SafeLocalMemHandle.cs
- SmuggledIUnknown.cs
- Rights.cs
- WebPartCollection.cs
- ModelMemberCollection.cs
- PropertyOverridesTypeEditor.cs
- CommunicationObjectAbortedException.cs
- SymmetricSecurityProtocolFactory.cs
- FileRecordSequenceCompletedAsyncResult.cs
- FileLogRecordHeader.cs
- StylusEventArgs.cs
- NegatedCellConstant.cs
- ElapsedEventArgs.cs
- DesignConnectionCollection.cs
- LocalizedNameDescriptionPair.cs
- DocumentViewerBase.cs
- Geometry3D.cs
- TypeNameHelper.cs
- Stack.cs
- ProcessInputEventArgs.cs
- Timer.cs
- FilteredDataSetHelper.cs
- Hashtable.cs