Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / QuaternionAnimation.cs / 1305600 / 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
- GenericUriParser.cs
- EffectiveValueEntry.cs
- DecimalStorage.cs
- WindowHideOrCloseTracker.cs
- ComPlusThreadInitializer.cs
- HtmlUtf8RawTextWriter.cs
- ListViewContainer.cs
- DesignerActionService.cs
- SafeNativeMethods.cs
- CodeThrowExceptionStatement.cs
- DataBindEngine.cs
- WebUtil.cs
- ServicePointManager.cs
- SelectionEditor.cs
- CacheRequest.cs
- SqlClientWrapperSmiStream.cs
- DataGridViewCellStyleBuilderDialog.cs
- HttpCacheVaryByContentEncodings.cs
- XmlLoader.cs
- MatrixValueSerializer.cs
- DBSchemaTable.cs
- FrameDimension.cs
- PublisherIdentityPermission.cs
- PropertyStore.cs
- CharacterString.cs
- TransactionManager.cs
- FilterElement.cs
- ContentPlaceHolderDesigner.cs
- ProfileProvider.cs
- METAHEADER.cs
- TypeKeyValue.cs
- GridViewColumnCollectionChangedEventArgs.cs
- BindingExpressionBase.cs
- QilChoice.cs
- StylusPlugInCollection.cs
- WebPartCloseVerb.cs
- BitmapEffectGeneralTransform.cs
- FontConverter.cs
- ConstructorBuilder.cs
- HandleRef.cs
- Binding.cs
- formatter.cs
- CodeExporter.cs
- WinFormsUtils.cs
- Utilities.cs
- OleDbSchemaGuid.cs
- CrossSiteScriptingValidation.cs
- EncodingDataItem.cs
- StreamInfo.cs
- ImageAutomationPeer.cs
- SoapAttributeOverrides.cs
- HMACSHA512.cs
- X509ThumbprintKeyIdentifierClause.cs
- Buffer.cs
- ResourcesBuildProvider.cs
- CodeObjectCreateExpression.cs
- Image.cs
- PackagePart.cs
- ThumbButtonInfo.cs
- ForEachAction.cs
- XmlSchemaDatatype.cs
- ChangeProcessor.cs
- CodeGenerator.cs
- WebRequestModuleElementCollection.cs
- XmlBindingWorker.cs
- Quaternion.cs
- ProfileProvider.cs
- NonBatchDirectoryCompiler.cs
- ImageAttributes.cs
- RawContentTypeMapper.cs
- BlockingCollection.cs
- BindingNavigator.cs
- OdbcUtils.cs
- BindingList.cs
- streamingZipPartStream.cs
- TransformCollection.cs
- EventLogEntry.cs
- XmlSchemaComplexType.cs
- AutomationEvent.cs
- TreeSet.cs
- ClosableStream.cs
- CollectionBase.cs
- CompilerParameters.cs
- LinqDataSourceStatusEventArgs.cs
- SchemaCollectionCompiler.cs
- PersonalizationAdministration.cs
- Int64Storage.cs
- Compiler.cs
- ColumnReorderedEventArgs.cs
- XmlSchemaObject.cs
- SymbolDocumentGenerator.cs
- StyleModeStack.cs
- PrefixQName.cs
- InvalidPropValue.cs
- ObjectViewFactory.cs
- comcontractssection.cs
- SBCSCodePageEncoding.cs
- SmiGettersStream.cs
- DataObjectMethodAttribute.cs
- MarkupObject.cs