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
- AccessDataSourceView.cs
- OracleDataReader.cs
- FixedSOMElement.cs
- CmsInterop.cs
- Types.cs
- XPathQueryGenerator.cs
- WebResourceAttribute.cs
- SwitchExpression.cs
- GestureRecognitionResult.cs
- AQNBuilder.cs
- UrlMappingsModule.cs
- PersonalizationStateInfoCollection.cs
- ReadOnlyDictionary.cs
- BuildDependencySet.cs
- ResourcePart.cs
- diagnosticsswitches.cs
- XpsFilter.cs
- LoginName.cs
- PackUriHelper.cs
- SerializationTrace.cs
- ExtractorMetadata.cs
- DetailsViewPagerRow.cs
- RemotingConfigParser.cs
- ObjectDataSource.cs
- SamlAuthorityBinding.cs
- MimeWriter.cs
- HttpCachePolicyElement.cs
- HwndStylusInputProvider.cs
- ResXDataNode.cs
- ParserContext.cs
- KeyValuePairs.cs
- MediaElement.cs
- JavaScriptString.cs
- TypedServiceChannelBuilder.cs
- PersonalizableTypeEntry.cs
- BidirectionalDictionary.cs
- TreePrinter.cs
- BoundPropertyEntry.cs
- MatrixAnimationUsingPath.cs
- InkCanvasFeedbackAdorner.cs
- UserControlCodeDomTreeGenerator.cs
- ProviderCollection.cs
- indexingfiltermarshaler.cs
- StreamGeometry.cs
- LocalValueEnumerator.cs
- QilCloneVisitor.cs
- ListViewCancelEventArgs.cs
- StringUtil.cs
- NamespaceInfo.cs
- XmlChoiceIdentifierAttribute.cs
- ToolStripLocationCancelEventArgs.cs
- SerializationInfo.cs
- FunctionParameter.cs
- ExtenderControl.cs
- CalendarDayButton.cs
- WebPartEventArgs.cs
- DataControlReferenceCollection.cs
- XmlnsDictionary.cs
- SqlDataSource.cs
- DiscoveryReference.cs
- ContextMarshalException.cs
- coordinator.cs
- OleDbError.cs
- XmlElementList.cs
- PointF.cs
- TextRunTypographyProperties.cs
- BaseAddressPrefixFilterElement.cs
- RSAOAEPKeyExchangeDeformatter.cs
- PropertyKey.cs
- SqlDataRecord.cs
- ArraySegment.cs
- BamlRecordReader.cs
- BinHexEncoder.cs
- StatusStrip.cs
- SequenceDesigner.cs
- CharAnimationBase.cs
- DelayLoadType.cs
- ModelPropertyImpl.cs
- ToolStripLocationCancelEventArgs.cs
- WsdlExporter.cs
- HttpDebugHandler.cs
- formatter.cs
- Odbc32.cs
- IsolatedStorageException.cs
- TextBoxRenderer.cs
- figurelength.cs
- CodeDomSerializationProvider.cs
- DBNull.cs
- TrackingMemoryStream.cs
- ZoneLinkButton.cs
- SqlTypesSchemaImporter.cs
- ZoneLinkButton.cs
- DataListItemEventArgs.cs
- XomlSerializationHelpers.cs
- StaticDataManager.cs
- EmptyEnumerable.cs
- SubMenuStyleCollection.cs
- NumberSubstitution.cs
- CustomValidator.cs
- BitmapInitialize.cs