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 Func CompensateForBoundaryFeedback
{
get;
set;
}
///
/// The Manipulators for this manipulation.
///
public IEnumerable Manipulators
{
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
- IsolatedStorageSecurityState.cs
- LifetimeServices.cs
- HttpResponseHeader.cs
- ContentFileHelper.cs
- CfgSemanticTag.cs
- SocketPermission.cs
- IApplicationTrustManager.cs
- DocumentSchemaValidator.cs
- ImageAutomationPeer.cs
- OdbcDataAdapter.cs
- PeerPresenceInfo.cs
- WebUtil.cs
- SqlInternalConnection.cs
- SafeFileMappingHandle.cs
- __Error.cs
- ItemContainerGenerator.cs
- EditorZoneBase.cs
- SerializationException.cs
- DataSourceView.cs
- IconBitmapDecoder.cs
- PageBuildProvider.cs
- MissingMemberException.cs
- ValidationHelpers.cs
- _ProxyChain.cs
- DateTimeHelper.cs
- CryptoApi.cs
- KerberosTicketHashIdentifierClause.cs
- BackEase.cs
- BindingBase.cs
- dbenumerator.cs
- CustomLineCap.cs
- Compiler.cs
- DefaultValueConverter.cs
- DbParameterHelper.cs
- TypedRowHandler.cs
- ParserContext.cs
- SafeCryptoHandles.cs
- ResourceDictionary.cs
- CallContext.cs
- SelectionWordBreaker.cs
- ContextStaticAttribute.cs
- HttpFormatExtensions.cs
- ErasingStroke.cs
- XmlMapping.cs
- HttpFileCollection.cs
- QueryInterceptorAttribute.cs
- CqlGenerator.cs
- GeneralTransform3DGroup.cs
- AssemblyInfo.cs
- UpdateTracker.cs
- X509Certificate2.cs
- SafeCoTaskMem.cs
- ArgumentException.cs
- RegistrySecurity.cs
- ListBindingHelper.cs
- GroupBoxAutomationPeer.cs
- FormViewPageEventArgs.cs
- HtmlControl.cs
- OleDbCommandBuilder.cs
- DashStyle.cs
- WebErrorHandler.cs
- MatrixUtil.cs
- DesignerToolboxInfo.cs
- MergeEnumerator.cs
- Tokenizer.cs
- AutoGeneratedField.cs
- DesignerVerbCollection.cs
- EndpointDiscoveryBehavior.cs
- FormViewModeEventArgs.cs
- DataSysAttribute.cs
- SqlOuterApplyReducer.cs
- QilList.cs
- TdsValueSetter.cs
- IndicShape.cs
- BitmapEffectState.cs
- XmlSchemaRedefine.cs
- DateTimeConverter2.cs
- Rect3D.cs
- SystemParameters.cs
- ChildDocumentBlock.cs
- StatusBarDrawItemEvent.cs
- HostingPreferredMapPath.cs
- HttpCacheParams.cs
- GeometryGroup.cs
- PageThemeCodeDomTreeGenerator.cs
- EntityTemplateUserControl.cs
- ThousandthOfEmRealPoints.cs
- dsa.cs
- NodeFunctions.cs
- StdRegProviderWrapper.cs
- WindowsTreeView.cs
- LabelDesigner.cs
- DataGridViewRowPostPaintEventArgs.cs
- Helpers.cs
- Renderer.cs
- Debug.cs
- EntityDataSourceContextDisposingEventArgs.cs
- OdbcCommandBuilder.cs
- CreateUserWizard.cs
- InterleavedZipPartStream.cs