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
- OSFeature.cs
- PrintingPermissionAttribute.cs
- FtpCachePolicyElement.cs
- IUnknownConstantAttribute.cs
- NamespaceListProperty.cs
- FixedDocumentPaginator.cs
- VectorAnimationUsingKeyFrames.cs
- ContentPresenter.cs
- NavigationProperty.cs
- WasAdminWrapper.cs
- WebSysDefaultValueAttribute.cs
- KnownIds.cs
- CacheHelper.cs
- BitmapEffectvisualstate.cs
- ComponentTray.cs
- MsmqBindingElementBase.cs
- TemplateBaseAction.cs
- DataGridViewRowEventArgs.cs
- WhitespaceRuleLookup.cs
- AddInDeploymentState.cs
- ConsumerConnectionPointCollection.cs
- DataGridAutoFormat.cs
- FilterQuery.cs
- ComponentSerializationService.cs
- WCFServiceClientProxyGenerator.cs
- ThreadInterruptedException.cs
- InternalTypeHelper.cs
- ModuleBuilderData.cs
- InstanceContextMode.cs
- FixedDocumentSequencePaginator.cs
- BeginStoryboard.cs
- BaseCAMarshaler.cs
- PropertyPathWorker.cs
- GPPOINTF.cs
- UIElementPropertyUndoUnit.cs
- SqlXmlStorage.cs
- ContextStaticAttribute.cs
- XamlSerializerUtil.cs
- RuntimeWrappedException.cs
- PointLightBase.cs
- WebEventCodes.cs
- CodeGotoStatement.cs
- ProgressChangedEventArgs.cs
- PersistChildrenAttribute.cs
- SettingsSavedEventArgs.cs
- WindowsFormsSynchronizationContext.cs
- OutputScope.cs
- PackageRelationshipCollection.cs
- EventLogPermissionEntryCollection.cs
- CacheRequest.cs
- ProcessModuleDesigner.cs
- BufferAllocator.cs
- BamlLocalizationDictionary.cs
- SoapAttributes.cs
- ContractMapping.cs
- CompilerLocalReference.cs
- Image.cs
- odbcmetadatacolumnnames.cs
- SrgsText.cs
- DateTimePicker.cs
- PeerCredentialElement.cs
- DBNull.cs
- UseLicense.cs
- SqlNamer.cs
- ApplicationSettingsBase.cs
- StringUtil.cs
- FixedTextBuilder.cs
- Math.cs
- XmlSchemaFacet.cs
- SafeRightsManagementQueryHandle.cs
- SchemaLookupTable.cs
- ProfilePropertyNameValidator.cs
- DefaultHttpHandler.cs
- CoreChannel.cs
- DescriptionCreator.cs
- XamlPointCollectionSerializer.cs
- Equal.cs
- ImageAnimator.cs
- Directory.cs
- DesignerAdapterUtil.cs
- LayoutEditorPart.cs
- GridViewColumnHeaderAutomationPeer.cs
- ReturnValue.cs
- FacetValues.cs
- ConfigurationSectionGroupCollection.cs
- HostAdapter.cs
- ClientTarget.cs
- StorageFunctionMapping.cs
- TextRangeEditLists.cs
- SecurityStandardsManager.cs
- handlecollector.cs
- XmlTypeMapping.cs
- PtsContext.cs
- SQLInt16.cs
- ReferenceEqualityComparer.cs
- WindowVisualStateTracker.cs
- StatusBar.cs
- CryptoConfig.cs
- WsatStrings.cs
- RelationshipWrapper.cs