Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / Animation / QuaternionAnimation.cs / 1 / QuaternionAnimation.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//---------------------------------------------------------------------------
using System;
using System.Windows;
using MS.Internal.KnownBoxes;
namespace System.Windows.Media.Animation
{
///
/// Animates the value of a bool property using linear interpolation
/// between two values. The values are determined by the combination of
/// From, To, or By values that are set on the animation.
///
public partial class QuaternionAnimation : QuaternionAnimationBase
{
///
/// UseShortestPath Property
///
public static readonly DependencyProperty UseShortestPathProperty =
DependencyProperty.Register(
"UseShortestPath",
typeof(bool),
typeof(QuaternionAnimation),
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
{
///
/// Animates the value of a bool property using linear interpolation
/// between two values. The values are determined by the combination of
/// From, To, or By values that are set on the animation.
///
public partial class QuaternionAnimation : QuaternionAnimationBase
{
///
/// UseShortestPath Property
///
public static readonly DependencyProperty UseShortestPathProperty =
DependencyProperty.Register(
"UseShortestPath",
typeof(bool),
typeof(QuaternionAnimation),
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
- DataObjectAttribute.cs
- DbProviderManifest.cs
- GridItemProviderWrapper.cs
- _TransmitFileOverlappedAsyncResult.cs
- FactoryMaker.cs
- PreloadedPackages.cs
- odbcmetadatacollectionnames.cs
- JavaScriptObjectDeserializer.cs
- SetIterators.cs
- SystemMulticastIPAddressInformation.cs
- UnsafeNativeMethods.cs
- Roles.cs
- OleDbTransaction.cs
- HyperLinkDesigner.cs
- ResourceReferenceExpressionConverter.cs
- Avt.cs
- InkCanvasInnerCanvas.cs
- ClientUtils.cs
- PrtCap_Public.cs
- RegularExpressionValidator.cs
- XmlSchemaDatatype.cs
- RangeValuePatternIdentifiers.cs
- WebConfigurationHostFileChange.cs
- InternalBase.cs
- CaseStatement.cs
- documentsequencetextview.cs
- CodeAttachEventStatement.cs
- EnlistmentState.cs
- LongTypeConverter.cs
- TypeForwardedToAttribute.cs
- BufferedReadStream.cs
- UriScheme.cs
- LinkTarget.cs
- KeyManager.cs
- Table.cs
- BindingExpressionBase.cs
- DynamicDiscoveryDocument.cs
- Stream.cs
- TypeUtils.cs
- ServiceHostingEnvironmentSection.cs
- EntityDesignerDataSourceView.cs
- KnownColorTable.cs
- OLEDB_Util.cs
- GACMembershipCondition.cs
- HttpWebRequest.cs
- DesigntimeLicenseContext.cs
- DateTimeFormat.cs
- TraceInternal.cs
- Size.cs
- SafeRightsManagementPubHandle.cs
- webeventbuffer.cs
- Behavior.cs
- DbException.cs
- X509ImageLogo.cs
- CompilerTypeWithParams.cs
- UTF8Encoding.cs
- ServicesUtilities.cs
- TransportElement.cs
- BordersPage.cs
- XPathSingletonIterator.cs
- SecurityManager.cs
- _IPv4Address.cs
- XmlSchemaAll.cs
- WpfSharedBamlSchemaContext.cs
- EncoderExceptionFallback.cs
- TrustManagerPromptUI.cs
- SoapSchemaExporter.cs
- ProviderCommandInfoUtils.cs
- _ConnectStream.cs
- LightweightCodeGenerator.cs
- WindowsFormsSectionHandler.cs
- XmlBaseWriter.cs
- ZipIORawDataFileBlock.cs
- RenderData.cs
- CheckedListBox.cs
- ListSourceHelper.cs
- BaseDataListPage.cs
- SafeThemeHandle.cs
- PropertyReference.cs
- AdRotatorDesigner.cs
- TraceHandler.cs
- UnsafeNativeMethods.cs
- SpecialTypeDataContract.cs
- SafeSecurityHandles.cs
- Trace.cs
- HashAlgorithm.cs
- AspCompat.cs
- ScrollData.cs
- DataList.cs
- ConnectionConsumerAttribute.cs
- StructuralObject.cs
- CommandPlan.cs
- EntityDataReader.cs
- FatalException.cs
- ConnectionInterfaceCollection.cs
- FixedTextPointer.cs
- _PooledStream.cs
- ScriptReferenceBase.cs
- ServiceDescriptionData.cs
- SystemIPInterfaceStatistics.cs