Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / EasingQuaternionKeyFrame.cs / 1305600 / EasingQuaternionKeyFrame.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//---------------------------------------------------------------------------
using System;
using System.Windows;
using MS.Internal.KnownBoxes;
namespace System.Windows.Media.Animation
{
///
/// This class is used as part of a QuaternionKeyFrameCollection in
/// conjunction with a KeyFrameQuaternionAnimation to animate a
/// Quaternion property value along a set of key frames.
///
/// This QuaternionKeyFrame interpolates the between the Quaternion Value of
/// the previous key frame and its own Value Linearly with Easing to produce its output value.
///
public partial class EasingQuaternionKeyFrame : QuaternionKeyFrame
{
///
/// UseShortestPath Property
///
public static readonly DependencyProperty UseShortestPathProperty =
DependencyProperty.Register(
"UseShortestPath",
typeof(bool),
typeof(EasingQuaternionKeyFrame),
new PropertyMetadata(/* defaultValue = */ BooleanBoxes.TrueBox));
///
/// If true, the animation will automatically flip the sign of the destination
/// Quaternion to ensure the shortest path is taken.
///
public bool UseShortestPath
{
get
{
return (bool) GetValue(UseShortestPathProperty);
}
set
{
SetValue(UseShortestPathProperty, value);
}
}
}
}
// 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.Windows;
using MS.Internal.KnownBoxes;
namespace System.Windows.Media.Animation
{
///
/// This class is used as part of a QuaternionKeyFrameCollection in
/// conjunction with a KeyFrameQuaternionAnimation to animate a
/// Quaternion property value along a set of key frames.
///
/// This QuaternionKeyFrame interpolates the between the Quaternion Value of
/// the previous key frame and its own Value Linearly with Easing to produce its output value.
///
public partial class EasingQuaternionKeyFrame : QuaternionKeyFrame
{
///
/// UseShortestPath Property
///
public static readonly DependencyProperty UseShortestPathProperty =
DependencyProperty.Register(
"UseShortestPath",
typeof(bool),
typeof(EasingQuaternionKeyFrame),
new PropertyMetadata(/* defaultValue = */ BooleanBoxes.TrueBox));
///
/// If true, the animation will automatically flip the sign of the destination
/// Quaternion to ensure the shortest path is taken.
///
public bool UseShortestPath
{
get
{
return (bool) GetValue(UseShortestPathProperty);
}
set
{
SetValue(UseShortestPathProperty, value);
}
}
}
}
// 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
- ConnectionsZoneAutoFormat.cs
- ResourceContainer.cs
- CodeTypeReferenceExpression.cs
- PreviewPrintController.cs
- CultureSpecificStringDictionary.cs
- SafeSecurityHandles.cs
- ContextDataSource.cs
- IxmlLineInfo.cs
- StatusBarAutomationPeer.cs
- DrawingContextDrawingContextWalker.cs
- WindowsComboBox.cs
- FormViewPagerRow.cs
- MailAddressParser.cs
- XmlTypeAttribute.cs
- ContextMenuStrip.cs
- WindowsFormsHostPropertyMap.cs
- ServicePoint.cs
- TextAction.cs
- TraceSection.cs
- HighlightVisual.cs
- AQNBuilder.cs
- CustomAttributeSerializer.cs
- BufferedGraphicsManager.cs
- XhtmlConformanceSection.cs
- ResourceDescriptionAttribute.cs
- DisplayNameAttribute.cs
- PrePrepareMethodAttribute.cs
- BulletChrome.cs
- PrtCap_Base.cs
- LeaseManager.cs
- SafeViewOfFileHandle.cs
- SqlInternalConnection.cs
- StylusButton.cs
- SplitterCancelEvent.cs
- RpcCryptoContext.cs
- LayoutEditorPart.cs
- HttpCacheVaryByContentEncodings.cs
- SyndicationItemFormatter.cs
- ThemeDirectoryCompiler.cs
- FontStyle.cs
- DataTableMapping.cs
- SystemColorTracker.cs
- SqlTypeConverter.cs
- ElapsedEventArgs.cs
- CompiledXpathExpr.cs
- xmlsaver.cs
- ZoneLinkButton.cs
- BitStack.cs
- ExpressionStringBuilder.cs
- TypeDependencyAttribute.cs
- DataGridViewHitTestInfo.cs
- SplitterDesigner.cs
- contentDescriptor.cs
- BuildProviderUtils.cs
- SingleAnimation.cs
- XmlAtomicValue.cs
- _DisconnectOverlappedAsyncResult.cs
- EUCJPEncoding.cs
- MSAAWinEventWrap.cs
- RightsManagementErrorHandler.cs
- HtmlShimManager.cs
- Brushes.cs
- TranslateTransform3D.cs
- X509Certificate2Collection.cs
- COM2PropertyDescriptor.cs
- ButtonStandardAdapter.cs
- ManipulationVelocities.cs
- InputScope.cs
- PictureBox.cs
- shaperfactory.cs
- StorageEndPropertyMapping.cs
- HttpListenerRequest.cs
- TableCell.cs
- HitTestDrawingContextWalker.cs
- DataGridColumnCollection.cs
- FixedSOMLineRanges.cs
- TemplatedMailWebEventProvider.cs
- SqlIdentifier.cs
- Pair.cs
- DocumentViewerBase.cs
- InvalidProgramException.cs
- InstalledVoice.cs
- EventLog.cs
- XmlProcessingInstruction.cs
- DateTimeConverter2.cs
- EventLogPermissionEntry.cs
- TextSpanModifier.cs
- Stack.cs
- DataGridViewImageColumn.cs
- UIPermission.cs
- MetabaseReader.cs
- BoundPropertyEntry.cs
- QilBinary.cs
- BufferAllocator.cs
- FontResourceCache.cs
- AccessText.cs
- CompModSwitches.cs
- FunctionDefinition.cs
- AutomationIdentifierGuids.cs
- ConnectionOrientedTransportChannelFactory.cs