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
- StringUtil.cs
- MergablePropertyAttribute.cs
- HotCommands.cs
- UserMapPath.cs
- GenericIdentity.cs
- LocationFactory.cs
- PartialCachingControl.cs
- UrlPath.cs
- LinkDesigner.cs
- ExpressionParser.cs
- SQLCharsStorage.cs
- EventTrigger.cs
- PointConverter.cs
- XmlAggregates.cs
- ReflectionTypeLoadException.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- RemoteWebConfigurationHostServer.cs
- ReaderWriterLock.cs
- LocalizationComments.cs
- MemoryRecordBuffer.cs
- ObjectQuery_EntitySqlExtensions.cs
- Switch.cs
- XmlArrayItemAttribute.cs
- BaseDataList.cs
- TaskExtensions.cs
- SQLMoneyStorage.cs
- StringValidator.cs
- HttpFileCollection.cs
- CommunicationObjectManager.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- PingOptions.cs
- BuildResult.cs
- LinearGradientBrush.cs
- DBBindings.cs
- MultiByteCodec.cs
- BrowserTree.cs
- HuffCodec.cs
- ObjectTag.cs
- TextServicesCompartmentEventSink.cs
- FragmentQuery.cs
- xsdvalidator.cs
- ManagementScope.cs
- SchemaNames.cs
- DataChangedEventManager.cs
- ReferenceEqualityComparer.cs
- SpecialNameAttribute.cs
- PropagatorResult.cs
- sqlpipe.cs
- ActivityScheduledRecord.cs
- StateMachine.cs
- StateItem.cs
- Visual3D.cs
- MultipleViewPatternIdentifiers.cs
- WebSysDescriptionAttribute.cs
- OwnerDrawPropertyBag.cs
- XmlSchemaParticle.cs
- HttpRuntime.cs
- WebUtil.cs
- Interlocked.cs
- sqlmetadatafactory.cs
- DefaultEventAttribute.cs
- Misc.cs
- TransformerInfo.cs
- DataGridSortCommandEventArgs.cs
- HttpWriter.cs
- CodeValidator.cs
- NetworkInterface.cs
- LocationUpdates.cs
- TreeNodeCollectionEditor.cs
- propertyentry.cs
- Events.cs
- DependencyProperty.cs
- PreloadedPackages.cs
- invalidudtexception.cs
- DataRowView.cs
- SettingsAttributeDictionary.cs
- ContractCodeDomInfo.cs
- XmlReflectionMember.cs
- DrawingServices.cs
- HighlightOverlayGlyph.cs
- QueryAccessibilityHelpEvent.cs
- ImageSource.cs
- XmlSerializerAssemblyAttribute.cs
- XmlAtomicValue.cs
- DescendantQuery.cs
- DomNameTable.cs
- MatrixValueSerializer.cs
- XmlSortKey.cs
- ForceCopyBuildProvider.cs
- PresentationSource.cs
- EraserBehavior.cs
- ExclusiveNamedPipeTransportManager.cs
- PostBackTrigger.cs
- EventLogHandle.cs
- AspNetSynchronizationContext.cs
- ApplicationServiceManager.cs
- HatchBrush.cs
- RSAPKCS1KeyExchangeFormatter.cs
- MarshalDirectiveException.cs
- DiscoveryVersionConverter.cs