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
- TailCallAnalyzer.cs
- BinaryMethodMessage.cs
- TextEditorCharacters.cs
- DataControlButton.cs
- NestPullup.cs
- PackageProperties.cs
- TopClause.cs
- TreeViewItemAutomationPeer.cs
- Opcode.cs
- AncillaryOps.cs
- DataGridViewToolTip.cs
- Function.cs
- SendParametersContent.cs
- ValidatorCollection.cs
- ClockGroup.cs
- TargetConverter.cs
- GetPageCompletedEventArgs.cs
- DBPropSet.cs
- InternalDuplexChannelFactory.cs
- UInt32Converter.cs
- RegionData.cs
- ContextMenu.cs
- MetadataPropertyCollection.cs
- ServiceActivationException.cs
- CompositeTypefaceMetrics.cs
- MatrixKeyFrameCollection.cs
- Style.cs
- XMLSyntaxException.cs
- ADMembershipUser.cs
- Splitter.cs
- SystemException.cs
- TransformCryptoHandle.cs
- ActiveXSerializer.cs
- TextCharacters.cs
- SelectionProviderWrapper.cs
- IssuedTokenClientElement.cs
- URLMembershipCondition.cs
- SequenceQuery.cs
- WorkflowMarkupSerializationException.cs
- TransformGroup.cs
- ScanQueryOperator.cs
- AppDomainProtocolHandler.cs
- MulticastOption.cs
- HtmlContainerControl.cs
- SqlUserDefinedAggregateAttribute.cs
- DateTimeSerializationSection.cs
- CharUnicodeInfo.cs
- Model3DGroup.cs
- SqlSelectStatement.cs
- __Filters.cs
- ChannelProtectionRequirements.cs
- CalendarData.cs
- XPathBuilder.cs
- UserPersonalizationStateInfo.cs
- BehaviorService.cs
- AssemblyBuilder.cs
- WmfPlaceableFileHeader.cs
- PriorityQueue.cs
- XmlNodeChangedEventArgs.cs
- RawStylusInput.cs
- WebRequestModuleElementCollection.cs
- ModuleConfigurationInfo.cs
- AnimationClockResource.cs
- WindowsSolidBrush.cs
- ProcessMessagesAsyncResult.cs
- HwndSubclass.cs
- WinInetCache.cs
- PriorityBindingExpression.cs
- XamlWriter.cs
- DataServiceRequest.cs
- EntityCollection.cs
- Pkcs9Attribute.cs
- MenuItem.cs
- StylusTip.cs
- BuildProviderCollection.cs
- ProfileGroupSettingsCollection.cs
- TimeIntervalCollection.cs
- PreservationFileReader.cs
- Single.cs
- BitmapSizeOptions.cs
- DataGridViewSelectedRowCollection.cs
- NativeBuffer.cs
- SourceItem.cs
- DirectoryNotFoundException.cs
- OleDbPermission.cs
- DataContractSerializerSection.cs
- TimelineGroup.cs
- PageThemeParser.cs
- WebServicesDescriptionAttribute.cs
- RoutedEventArgs.cs
- CrossSiteScriptingValidation.cs
- StandardCommandToolStripMenuItem.cs
- EntitySet.cs
- PackagePart.cs
- SelectedCellsCollection.cs
- WebEvents.cs
- SQLInt16.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- ToolboxDataAttribute.cs
- PersonalizationProvider.cs