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
- DesignerAutoFormatCollection.cs
- ConvertBinder.cs
- PingOptions.cs
- ButtonBase.cs
- AliasExpr.cs
- SqlGatherConsumedAliases.cs
- RoutedCommand.cs
- UnknownWrapper.cs
- EventSinkHelperWriter.cs
- ListViewGroup.cs
- Pen.cs
- CryptoApi.cs
- NullRuntimeConfig.cs
- HttpRequestWrapper.cs
- AnimationException.cs
- PersonalizationDictionary.cs
- _LocalDataStoreMgr.cs
- SerialReceived.cs
- PageSettings.cs
- ConnectionProviderAttribute.cs
- Deserializer.cs
- LinkClickEvent.cs
- DiscoveryProxy.cs
- HttpConfigurationSystem.cs
- TypeSystem.cs
- XmlSchemaNotation.cs
- SqlStatistics.cs
- WebControlParameterProxy.cs
- ListViewTableCell.cs
- TypeSystemProvider.cs
- CorrelationTokenInvalidatedHandler.cs
- WebPartEditorApplyVerb.cs
- CustomError.cs
- DaylightTime.cs
- ConfigurationPermission.cs
- linebase.cs
- SourceChangedEventArgs.cs
- ClientSettingsProvider.cs
- InvokeHandlers.cs
- OdbcConnectionString.cs
- LoginView.cs
- OdbcConnectionFactory.cs
- SettingsProviderCollection.cs
- DataGridColumn.cs
- AspProxy.cs
- NodeLabelEditEvent.cs
- invalidudtexception.cs
- TokenFactoryFactory.cs
- MarkupObject.cs
- RadioButton.cs
- SHA512Managed.cs
- DirectoryInfo.cs
- Encoding.cs
- TextEditorContextMenu.cs
- FileStream.cs
- Stroke.cs
- SafeLocalAllocation.cs
- ApplicationInterop.cs
- SecurityResources.cs
- PackageRelationship.cs
- UserControlParser.cs
- Freezable.cs
- NominalTypeEliminator.cs
- ScaleTransform.cs
- TypeExtensions.cs
- TextOutput.cs
- ValueSerializer.cs
- TextEmbeddedObject.cs
- ThreadExceptionDialog.cs
- Base64Encoder.cs
- DrawingImage.cs
- IisTraceListener.cs
- BoundColumn.cs
- VirtualizedItemProviderWrapper.cs
- NoResizeHandleGlyph.cs
- CodeTypeMember.cs
- OracleEncoding.cs
- TaskFormBase.cs
- Expression.cs
- PropertyGridCommands.cs
- Literal.cs
- DefaultMergeHelper.cs
- FileDataSourceCache.cs
- LineVisual.cs
- MailDefinition.cs
- ControlBuilderAttribute.cs
- EntitySetBaseCollection.cs
- ConfigXmlComment.cs
- RegistrationServices.cs
- TextEffect.cs
- DynamicQueryStringParameter.cs
- FilterQuery.cs
- Stack.cs
- DesignObjectWrapper.cs
- CharacterShapingProperties.cs
- PassportPrincipal.cs
- AssemblyInfo.cs
- ComplexLine.cs
- Matrix3DValueSerializer.cs
- DataColumnPropertyDescriptor.cs