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
- RoleGroupCollection.cs
- CodeEventReferenceExpression.cs
- BitmapEffectGeneralTransform.cs
- HttpCapabilitiesBase.cs
- DataGridCaption.cs
- Int64Converter.cs
- BuildProviderAppliesToAttribute.cs
- WebZone.cs
- ExtendedPropertyCollection.cs
- Policy.cs
- ParseNumbers.cs
- XmlEntityReference.cs
- Int32KeyFrameCollection.cs
- SchemaType.cs
- WorkflowNamespace.cs
- AllMembershipCondition.cs
- XdrBuilder.cs
- DispatcherFrame.cs
- UniformGrid.cs
- SubstitutionList.cs
- WindowsButton.cs
- PropertyInformationCollection.cs
- ScriptReferenceBase.cs
- AnnotationAdorner.cs
- VirtualizingStackPanel.cs
- TryExpression.cs
- XslException.cs
- SmiEventStream.cs
- DataListCommandEventArgs.cs
- PageSetupDialog.cs
- ContextActivityUtils.cs
- SecurityBindingElement.cs
- ResourceManager.cs
- Metadata.cs
- XamlWrappingReader.cs
- BuilderInfo.cs
- ProcessModelInfo.cs
- SyndicationDeserializer.cs
- AbsoluteQuery.cs
- RNGCryptoServiceProvider.cs
- ColorMatrix.cs
- StylusEditingBehavior.cs
- ReferencedType.cs
- DelegateArgument.cs
- DataListDesigner.cs
- QualifiedCellIdBoolean.cs
- GridViewItemAutomationPeer.cs
- XmlILOptimizerVisitor.cs
- SqlErrorCollection.cs
- ExpressionDumper.cs
- BoolExpressionVisitors.cs
- ButtonPopupAdapter.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- FixedSOMTableRow.cs
- BaseCodeDomTreeGenerator.cs
- MouseGestureConverter.cs
- ClientSideProviderDescription.cs
- TextClipboardData.cs
- ProcessHost.cs
- PlainXmlWriter.cs
- LocalizableResourceBuilder.cs
- GenerateTemporaryAssemblyTask.cs
- UserControl.cs
- AppSecurityManager.cs
- LoginUtil.cs
- DesignTimeTemplateParser.cs
- DependencyPropertyHelper.cs
- SByteConverter.cs
- WebPartConnectionsConfigureVerb.cs
- ControlBindingsCollection.cs
- IPipelineRuntime.cs
- RemotingConfiguration.cs
- ProcessModelSection.cs
- DecimalAnimationBase.cs
- SimpleLine.cs
- BitmapEffectrendercontext.cs
- PublisherIdentityPermission.cs
- WindowsTreeView.cs
- SymLanguageVendor.cs
- ControlPropertyNameConverter.cs
- OuterGlowBitmapEffect.cs
- XslTransformFileEditor.cs
- ProcessProtocolHandler.cs
- ColumnResizeUndoUnit.cs
- TextDecorationUnitValidation.cs
- DotAtomReader.cs
- ExtendedPropertyDescriptor.cs
- StylusTip.cs
- datacache.cs
- WorkflowLayouts.cs
- XamlStream.cs
- BufferedGraphicsManager.cs
- UIElementParagraph.cs
- GregorianCalendar.cs
- AutomationPeer.cs
- ReceiveMessageRecord.cs
- OutputCacheModule.cs
- XmlSchemaAttributeGroupRef.cs
- SqlWorkflowInstanceStoreLock.cs
- SamlSubjectStatement.cs