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
- MediaTimeline.cs
- DataContract.cs
- SystemSounds.cs
- DictionaryGlobals.cs
- WindowsGraphicsCacheManager.cs
- ApplicationServiceHelper.cs
- DataSetMappper.cs
- HostedBindingBehavior.cs
- ProxyAttribute.cs
- WebDescriptionAttribute.cs
- SQLBinaryStorage.cs
- SQLBinaryStorage.cs
- TiffBitmapDecoder.cs
- SByte.cs
- UpdateTracker.cs
- Roles.cs
- TraceListeners.cs
- ToolStripContainer.cs
- XslNumber.cs
- RenderOptions.cs
- PasswordRecovery.cs
- CqlQuery.cs
- DataViewSetting.cs
- WindowsStatusBar.cs
- CharKeyFrameCollection.cs
- BitStream.cs
- AssemblyCache.cs
- EndPoint.cs
- ObjectDataSourceEventArgs.cs
- SqlDeflator.cs
- AccessedThroughPropertyAttribute.cs
- MetabaseServerConfig.cs
- SQLMembershipProvider.cs
- ConsoleCancelEventArgs.cs
- SearchForVirtualItemEventArgs.cs
- RoutedEvent.cs
- HandleRef.cs
- InkCanvasSelection.cs
- DefaultTypeArgumentAttribute.cs
- ViewCellRelation.cs
- InheritanceAttribute.cs
- IsolatedStorageFileStream.cs
- NumberSubstitution.cs
- RadioButtonFlatAdapter.cs
- WindowsGraphicsCacheManager.cs
- OleDbError.cs
- FindCriteriaCD1.cs
- XmlSchemaObjectTable.cs
- DataGridViewAccessibleObject.cs
- PackageProperties.cs
- HMACSHA384.cs
- RequestCachePolicy.cs
- DateTimeConstantAttribute.cs
- TextSelectionHighlightLayer.cs
- FileEnumerator.cs
- ComboBoxItem.cs
- InteropExecutor.cs
- GridViewUpdatedEventArgs.cs
- SapiAttributeParser.cs
- DbExpressionBuilder.cs
- XhtmlBasicCalendarAdapter.cs
- WebException.cs
- PeerCollaborationPermission.cs
- PartialCachingAttribute.cs
- UserNameSecurityTokenProvider.cs
- columnmapfactory.cs
- CmsUtils.cs
- DSASignatureDeformatter.cs
- RegexTree.cs
- Base64Decoder.cs
- AllowedAudienceUriElement.cs
- DBPropSet.cs
- __ConsoleStream.cs
- TextEffectCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- TaiwanCalendar.cs
- XmlSchemaRedefine.cs
- XmlSchemaExternal.cs
- LayoutEvent.cs
- NTAccount.cs
- EntityDataSourceChangingEventArgs.cs
- XhtmlBasicLabelAdapter.cs
- SessionStateSection.cs
- TemplatedMailWebEventProvider.cs
- InheritanceContextHelper.cs
- QueryOutputWriter.cs
- XomlCompilerResults.cs
- Keyboard.cs
- HttpConfigurationSystem.cs
- PersonalizationStateInfo.cs
- TemplateBamlTreeBuilder.cs
- XmlSchema.cs
- GatewayDefinition.cs
- SaveFileDialog.cs
- ObjectCache.cs
- SQLDateTime.cs
- WorkflowWebService.cs
- Overlapped.cs
- ErrorStyle.cs
- NativeMethodsOther.cs