Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- AddressAccessDeniedException.cs
- ExpressionNode.cs
- ResourcePermissionBase.cs
- WorkflowApplicationIdleEventArgs.cs
- TrustLevelCollection.cs
- BinaryObjectInfo.cs
- XmlNamespaceManager.cs
- ImageIndexConverter.cs
- GregorianCalendar.cs
- SecurityMessageProperty.cs
- MsdtcWrapper.cs
- TextServicesContext.cs
- DataTableClearEvent.cs
- CodeAccessSecurityEngine.cs
- ToolStripLocationCancelEventArgs.cs
- DataGridViewHitTestInfo.cs
- FormViewInsertedEventArgs.cs
- URI.cs
- TempFiles.cs
- DocumentEventArgs.cs
- VerticalAlignConverter.cs
- DataListCommandEventArgs.cs
- ViewEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- SimpleHandlerBuildProvider.cs
- PDBReader.cs
- SmtpFailedRecipientsException.cs
- SystemWebExtensionsSectionGroup.cs
- Odbc32.cs
- Trustee.cs
- DataDocumentXPathNavigator.cs
- ModuleConfigurationInfo.cs
- DataGridViewDataConnection.cs
- StringDictionary.cs
- PolicyReader.cs
- EventLog.cs
- TableAutomationPeer.cs
- ItemCheckEvent.cs
- HandlerBase.cs
- QuaternionKeyFrameCollection.cs
- ContentElementAutomationPeer.cs
- IDictionary.cs
- MenuEventArgs.cs
- DbConnectionPool.cs
- SequentialWorkflowHeaderFooter.cs
- XsltArgumentList.cs
- ChangeTracker.cs
- ELinqQueryState.cs
- ThemeDirectoryCompiler.cs
- FormViewPageEventArgs.cs
- SkewTransform.cs
- DataConnectionHelper.cs
- ControlBuilder.cs
- CodeSnippetTypeMember.cs
- TabItem.cs
- SafeNativeMethods.cs
- PageAsyncTask.cs
- Help.cs
- InputLanguageEventArgs.cs
- PropertyManager.cs
- Image.cs
- Stream.cs
- ConfigurationSectionGroup.cs
- NativeObjectSecurity.cs
- StackBuilderSink.cs
- Journaling.cs
- AppDomainUnloadedException.cs
- COMException.cs
- StatusBarAutomationPeer.cs
- HttpChannelListener.cs
- KeySplineConverter.cs
- CompilerState.cs
- baseshape.cs
- EncodingFallbackAwareXmlTextWriter.cs
- ErrorWebPart.cs
- ZoneMembershipCondition.cs
- DataTemplate.cs
- ConfigurationFileMap.cs
- InvalidDataException.cs
- HScrollProperties.cs
- MDIClient.cs
- FontEditor.cs
- ZipIOLocalFileHeader.cs
- TypeUnloadedException.cs
- ConfigurationSection.cs
- UserValidatedEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- TdsRecordBufferSetter.cs
- BoundColumn.cs
- UIInitializationException.cs
- DataGridViewMethods.cs
- DataPagerCommandEventArgs.cs
- Italic.cs
- UnsafeNativeMethods.cs
- EntityCommandCompilationException.cs
- DataGridViewComboBoxCell.cs
- FontStretches.cs
- securitycriticaldataformultiplegetandset.cs
- EventHandlerList.cs
- ConfigErrorGlyph.cs