Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / VisualTransition.cs / 1305600 / VisualTransition.cs
// --------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved.
// -------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows;
using System.Windows.Markup;
using System.Windows.Media.Animation;
namespace System.Windows
{
///
/// Defines a transition between VisualStates.
///
[ContentProperty("Storyboard")]
public class VisualTransition : DependencyObject
{
public VisualTransition()
{
DynamicStoryboardCompleted = true;
ExplicitStoryboardCompleted = true;
}
///
/// Name of the state to transition from.
///
public string From
{
get;
set;
}
///
/// Name of the state to transition to.
///
public string To
{
get;
set;
}
///
/// Storyboard providing fine grained control of the transition.
///
public Storyboard Storyboard
{
get;
set;
}
///
/// Duration of the transition.
///
[TypeConverter(typeof(System.Windows.DurationConverter))]
public Duration GeneratedDuration
{
get { return _generatedDuration; }
set { _generatedDuration = value; }
}
///
/// Easing Function for the transition
///
public IEasingFunction GeneratedEasingFunction
{
get;
set;
}
internal bool IsDefault
{
get { return From == null && To == null; }
}
internal bool DynamicStoryboardCompleted
{
get;
set;
}
internal bool ExplicitStoryboardCompleted
{
get;
set;
}
private Duration _generatedDuration = new Duration(new TimeSpan());
}
}
// 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.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows;
using System.Windows.Markup;
using System.Windows.Media.Animation;
namespace System.Windows
{
///
/// Defines a transition between VisualStates.
///
[ContentProperty("Storyboard")]
public class VisualTransition : DependencyObject
{
public VisualTransition()
{
DynamicStoryboardCompleted = true;
ExplicitStoryboardCompleted = true;
}
///
/// Name of the state to transition from.
///
public string From
{
get;
set;
}
///
/// Name of the state to transition to.
///
public string To
{
get;
set;
}
///
/// Storyboard providing fine grained control of the transition.
///
public Storyboard Storyboard
{
get;
set;
}
///
/// Duration of the transition.
///
[TypeConverter(typeof(System.Windows.DurationConverter))]
public Duration GeneratedDuration
{
get { return _generatedDuration; }
set { _generatedDuration = value; }
}
///
/// Easing Function for the transition
///
public IEasingFunction GeneratedEasingFunction
{
get;
set;
}
internal bool IsDefault
{
get { return From == null && To == null; }
}
internal bool DynamicStoryboardCompleted
{
get;
set;
}
internal bool ExplicitStoryboardCompleted
{
get;
set;
}
private Duration _generatedDuration = new Duration(new TimeSpan());
}
}
// 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
- BinaryParser.cs
- EntityTransaction.cs
- DbgUtil.cs
- BooleanAnimationUsingKeyFrames.cs
- ScriptComponentDescriptor.cs
- UInt32Storage.cs
- DebugController.cs
- DataListDesigner.cs
- UnionCodeGroup.cs
- CompilerGlobalScopeAttribute.cs
- NativeMethods.cs
- InheritanceRules.cs
- WindowsFont.cs
- ListenerSessionConnectionReader.cs
- SqlVisitor.cs
- RectValueSerializer.cs
- NativeWindow.cs
- Manipulation.cs
- ValueTypePropertyReference.cs
- ICspAsymmetricAlgorithm.cs
- PrivacyNoticeBindingElementImporter.cs
- DiscoveryClientDuplexChannel.cs
- ScrollViewer.cs
- StorageRoot.cs
- InvokeBase.cs
- Int64AnimationUsingKeyFrames.cs
- SchemaCollectionCompiler.cs
- VirtualizingPanel.cs
- Config.cs
- ListItemConverter.cs
- InternalsVisibleToAttribute.cs
- SqlDataSourceCommandParser.cs
- MatrixTransform.cs
- EmissiveMaterial.cs
- XPathMultyIterator.cs
- LinkDescriptor.cs
- SqlConnectionFactory.cs
- OperationResponse.cs
- ThicknessAnimation.cs
- Line.cs
- TextElementCollectionHelper.cs
- BoundsDrawingContextWalker.cs
- Image.cs
- ActiveXHelper.cs
- activationcontext.cs
- ComPlusSynchronizationContext.cs
- ConsumerConnectionPoint.cs
- EllipseGeometry.cs
- AuthorizationRuleCollection.cs
- WorkflowApplicationCompletedEventArgs.cs
- RightNameExpirationInfoPair.cs
- PropertyChangingEventArgs.cs
- MarginCollapsingState.cs
- IsolatedStorageException.cs
- SystemIPGlobalProperties.cs
- SearchForVirtualItemEventArgs.cs
- ListViewInsertionMark.cs
- PersonalizationProviderHelper.cs
- contentDescriptor.cs
- WorkflowTraceTransfer.cs
- HttpCookieCollection.cs
- WebExceptionStatus.cs
- XXXInfos.cs
- NativeRecognizer.cs
- TypeNameParser.cs
- BooleanToVisibilityConverter.cs
- XmlDictionaryString.cs
- MappingItemCollection.cs
- PerformanceCountersElement.cs
- SecurityKeyUsage.cs
- SocketException.cs
- ExpressionUtilities.cs
- Logging.cs
- ContentElementAutomationPeer.cs
- Send.cs
- FtpRequestCacheValidator.cs
- Journaling.cs
- __Filters.cs
- DbConnectionPoolIdentity.cs
- WS2007HttpBinding.cs
- ImplicitInputBrush.cs
- UnionCqlBlock.cs
- updatecommandorderer.cs
- SqlConnectionManager.cs
- TraceEventCache.cs
- TagPrefixInfo.cs
- DropDownList.cs
- SafeNativeMethods.cs
- TreeViewItemAutomationPeer.cs
- _TransmitFileOverlappedAsyncResult.cs
- DynamicResourceExtension.cs
- SqlInternalConnection.cs
- DesignTimeParseData.cs
- HttpServerUtilityWrapper.cs
- dbdatarecord.cs
- PersistenceTypeAttribute.cs
- WebPartVerbsEventArgs.cs
- SafeSystemMetrics.cs
- Array.cs
- XpsFontSerializationService.cs