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
- NonBatchDirectoryCompiler.cs
- DataGridViewTextBoxCell.cs
- DesignerImageAdapter.cs
- XmlDataCollection.cs
- AnnotationHighlightLayer.cs
- BindingValueChangedEventArgs.cs
- InternalsVisibleToAttribute.cs
- VisualTarget.cs
- GridViewColumnHeader.cs
- QuadraticBezierSegment.cs
- TextTreeObjectNode.cs
- TemplateBindingExpression.cs
- XamlClipboardData.cs
- Preprocessor.cs
- SelectionList.cs
- RemotingServices.cs
- StrokeRenderer.cs
- ReadOnlyHierarchicalDataSource.cs
- PrivilegedConfigurationManager.cs
- OutputScope.cs
- FlowDocumentReaderAutomationPeer.cs
- Converter.cs
- ToolStripOverflow.cs
- ILGenerator.cs
- SessionIDManager.cs
- FontResourceCache.cs
- XPathBinder.cs
- ProxyWebPart.cs
- DataTablePropertyDescriptor.cs
- XmlDataImplementation.cs
- ChannelSinkStacks.cs
- ClientFormsIdentity.cs
- Panel.cs
- HandledEventArgs.cs
- mansign.cs
- DtdParser.cs
- TrackingProfileDeserializationException.cs
- GenericXmlSecurityToken.cs
- ToolStripGrip.cs
- SoapHeaders.cs
- XmlConvert.cs
- StreamedFramingRequestChannel.cs
- CharacterBufferReference.cs
- Roles.cs
- ListViewEditEventArgs.cs
- ItemAutomationPeer.cs
- ZipIOCentralDirectoryBlock.cs
- DataTableTypeConverter.cs
- MinimizableAttributeTypeConverter.cs
- SystemSounds.cs
- SingleObjectCollection.cs
- UrlUtility.cs
- XmlRawWriterWrapper.cs
- Visual3D.cs
- SamlSubjectStatement.cs
- Transform.cs
- ListenerElementsCollection.cs
- HwndSourceKeyboardInputSite.cs
- glyphs.cs
- TextElement.cs
- ActivityWithResultValueSerializer.cs
- CTreeGenerator.cs
- ProfileSettings.cs
- KeyTimeConverter.cs
- HttpDictionary.cs
- Hashtable.cs
- BadImageFormatException.cs
- StronglyTypedResourceBuilder.cs
- InvalidateEvent.cs
- AliasedSlot.cs
- TransformBlockRequest.cs
- DataGridRelationshipRow.cs
- EncoderParameters.cs
- COM2TypeInfoProcessor.cs
- _WinHttpWebProxyDataBuilder.cs
- Clock.cs
- BufferAllocator.cs
- MeshGeometry3D.cs
- HttpWebRequestElement.cs
- ComponentConverter.cs
- SiteMapNodeItem.cs
- SpeechDetectedEventArgs.cs
- Number.cs
- ComplexTypeEmitter.cs
- SubMenuStyleCollection.cs
- RecognizerStateChangedEventArgs.cs
- StaticExtension.cs
- OdbcFactory.cs
- ResolveDuplexCD1AsyncResult.cs
- ToolStripSettings.cs
- CultureInfoConverter.cs
- ObjectView.cs
- WrappedKeySecurityTokenParameters.cs
- BindingNavigator.cs
- PngBitmapDecoder.cs
- ZipIOLocalFileDataDescriptor.cs
- DocumentViewerAutomationPeer.cs
- SparseMemoryStream.cs
- PopupRootAutomationPeer.cs
- _AutoWebProxyScriptHelper.cs