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
- PermissionListSet.cs
- DocumentSequence.cs
- WebConfigurationHostFileChange.cs
- TemplateXamlParser.cs
- DisplayInformation.cs
- ClientSideProviderDescription.cs
- XmlWriterTraceListener.cs
- RouteItem.cs
- TryExpression.cs
- TabControlEvent.cs
- Transform3DGroup.cs
- Crc32Helper.cs
- TextRange.cs
- UpdateProgress.cs
- WebException.cs
- TdsParserSafeHandles.cs
- WindowsTooltip.cs
- BufferedReadStream.cs
- Guid.cs
- AutomationEvent.cs
- TextCollapsingProperties.cs
- NameNode.cs
- MenuItemBindingCollection.cs
- FileDialogPermission.cs
- Annotation.cs
- GridViewDesigner.cs
- SchemaImporter.cs
- ParallelTimeline.cs
- MiniCustomAttributeInfo.cs
- ObjectKeyFrameCollection.cs
- GenericTypeParameterBuilder.cs
- ObjectConverter.cs
- SqlNotificationRequest.cs
- ThreadStaticAttribute.cs
- X509Extension.cs
- SystemGatewayIPAddressInformation.cs
- Typography.cs
- InstanceNotReadyException.cs
- wgx_commands.cs
- ContentPosition.cs
- VirtualPath.cs
- SiteMapProvider.cs
- ContentDisposition.cs
- SerTrace.cs
- FontWeights.cs
- TextRangeAdaptor.cs
- XmlBoundElement.cs
- ThreadStateException.cs
- HttpRuntime.cs
- SafeRegistryHandle.cs
- PlatformNotSupportedException.cs
- ProcessHostMapPath.cs
- DateTimeConverter.cs
- ByteAnimation.cs
- DependencySource.cs
- FormViewCommandEventArgs.cs
- DrawingContextWalker.cs
- KeyValueConfigurationCollection.cs
- MiniConstructorInfo.cs
- GridViewItemAutomationPeer.cs
- RenderingBiasValidation.cs
- CheckBoxFlatAdapter.cs
- QuaternionAnimationBase.cs
- HtmlTernaryTree.cs
- _NetworkingPerfCounters.cs
- UniformGrid.cs
- SqlProviderManifest.cs
- Filter.cs
- StrokeNodeOperations2.cs
- AssemblyNameProxy.cs
- GifBitmapDecoder.cs
- MSG.cs
- webeventbuffer.cs
- InputElement.cs
- GridItemPatternIdentifiers.cs
- PageFunction.cs
- ServiceNameElementCollection.cs
- CultureTable.cs
- TextViewBase.cs
- CompilerGeneratedAttribute.cs
- sortedlist.cs
- AnnotationObservableCollection.cs
- Matrix.cs
- HtmlInputCheckBox.cs
- RadioButtonFlatAdapter.cs
- DesignerLoader.cs
- SmtpTransport.cs
- HandlerBase.cs
- ImageEditor.cs
- SqlCachedBuffer.cs
- Bitmap.cs
- Visitors.cs
- DateRangeEvent.cs
- httpstaticobjectscollection.cs
- StrongNameUtility.cs
- AggregatePushdown.cs
- DynamicPropertyHolder.cs
- MethodBody.cs
- CodeAssignStatement.cs
- BooleanKeyFrameCollection.cs