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
- SafeNativeMethodsOther.cs
- NavigationProgressEventArgs.cs
- InternalTypeHelper.cs
- RepeaterItemCollection.cs
- Multiply.cs
- OracleColumn.cs
- SelectionManager.cs
- WebPartEditorCancelVerb.cs
- ProtocolsConfigurationEntry.cs
- WhitespaceSignificantCollectionAttribute.cs
- ValidatingReaderNodeData.cs
- SecurityKeyIdentifierClause.cs
- SerializerWriterEventHandlers.cs
- DataTableMapping.cs
- XmlChildEnumerator.cs
- DataErrorValidationRule.cs
- ArrangedElementCollection.cs
- QueryCacheKey.cs
- XamlStyleSerializer.cs
- PopupControlService.cs
- SwitchAttribute.cs
- TypeConverter.cs
- x509store.cs
- PointAnimationBase.cs
- UpdatePanelTriggerCollection.cs
- ProviderSettings.cs
- QueryContinueDragEvent.cs
- TextBlock.cs
- StrongNamePublicKeyBlob.cs
- XmlRawWriterWrapper.cs
- TransformValueSerializer.cs
- FastEncoderStatics.cs
- WebCategoryAttribute.cs
- Brush.cs
- ObjectToIdCache.cs
- PropertyChangedEventArgs.cs
- datacache.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ServerReliableChannelBinder.cs
- Literal.cs
- SSmlParser.cs
- TTSEngineProxy.cs
- EpmSyndicationContentSerializer.cs
- XmlDeclaration.cs
- FileRecordSequenceCompletedAsyncResult.cs
- MouseCaptureWithinProperty.cs
- TypeForwardedToAttribute.cs
- EpmCustomContentDeSerializer.cs
- reliableinputsessionchannel.cs
- ForwardPositionQuery.cs
- OutputCacheSettingsSection.cs
- ConfigurationManagerHelper.cs
- InternalDispatchObject.cs
- MatrixAnimationBase.cs
- TextDocumentView.cs
- XmlSchemaIdentityConstraint.cs
- FtpCachePolicyElement.cs
- CommandField.cs
- Environment.cs
- CollectionConverter.cs
- ObjectQuery.cs
- EventHandlingScope.cs
- Emitter.cs
- FormViewDeleteEventArgs.cs
- ChtmlTextWriter.cs
- DisposableCollectionWrapper.cs
- WindowsSecurityToken.cs
- RawAppCommandInputReport.cs
- Matrix3DValueSerializer.cs
- LogEntryDeserializer.cs
- OdbcConnectionHandle.cs
- WebScriptMetadataInstanceContextProvider.cs
- HttpClientCertificate.cs
- RedistVersionInfo.cs
- MissingMemberException.cs
- RSAProtectedConfigurationProvider.cs
- ColumnPropertiesGroup.cs
- TemplatedMailWebEventProvider.cs
- SessionStateSection.cs
- ModuleBuilder.cs
- SymmetricSecurityBindingElement.cs
- OperationContextScope.cs
- TextEffectCollection.cs
- XmlNodeList.cs
- MultiView.cs
- ValidationManager.cs
- ProjectedSlot.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- VectorAnimationUsingKeyFrames.cs
- future.cs
- AppSettingsExpressionBuilder.cs
- ConnectionsZoneAutoFormat.cs
- AssemblyBuilderData.cs
- BinaryFormatterWriter.cs
- ZipIOModeEnforcingStream.cs
- EntityContainerRelationshipSetEnd.cs
- HtmlControlPersistable.cs
- RuntimeConfigLKG.cs
- SmtpReplyReader.cs
- TextLineBreak.cs