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
- odbcmetadatacollectionnames.cs
- AsymmetricAlgorithm.cs
- DesignerOptionService.cs
- DataControlButton.cs
- Base64Encoder.cs
- SqlNodeAnnotations.cs
- PageCache.cs
- FileDialogCustomPlace.cs
- CfgArc.cs
- WarningException.cs
- TdsParserStateObject.cs
- ViewManager.cs
- IndexedString.cs
- EventItfInfo.cs
- MdbDataFileEditor.cs
- TimeManager.cs
- Method.cs
- EntityCommandDefinition.cs
- HttpPostedFile.cs
- SocketPermission.cs
- IsolatedStorageFilePermission.cs
- ButtonBaseDesigner.cs
- ConstantCheck.cs
- MultipleViewProviderWrapper.cs
- LoginView.cs
- FormViewUpdateEventArgs.cs
- Comparer.cs
- TdsEnums.cs
- HtmlSelect.cs
- Ppl.cs
- LambdaCompiler.ControlFlow.cs
- ScriptReferenceEventArgs.cs
- PopOutPanel.cs
- ComponentResourceKeyConverter.cs
- DBParameter.cs
- ParameterModifier.cs
- CodeIterationStatement.cs
- CorrelationService.cs
- RewritingProcessor.cs
- ItemsChangedEventArgs.cs
- WebPageTraceListener.cs
- BreadCrumbTextConverter.cs
- PageParserFilter.cs
- Int32CollectionConverter.cs
- Serializer.cs
- ThreadStartException.cs
- DurationConverter.cs
- XmlSchemaSequence.cs
- Debug.cs
- UInt64Converter.cs
- Label.cs
- CultureInfoConverter.cs
- RoutedEventValueSerializer.cs
- XmlNamespaceMapping.cs
- ToolStripItemTextRenderEventArgs.cs
- FixedTextContainer.cs
- ToggleButton.cs
- DtcInterfaces.cs
- TimeZone.cs
- MetaForeignKeyColumn.cs
- FormViewModeEventArgs.cs
- AvTraceFormat.cs
- BitmapData.cs
- DrawingState.cs
- IIS7UserPrincipal.cs
- NavigationService.cs
- WorkflowOperationFault.cs
- SolidBrush.cs
- DispatcherEventArgs.cs
- LinkLabel.cs
- SourceFilter.cs
- datacache.cs
- WebPartConnectionsCancelVerb.cs
- TextTreeTextElementNode.cs
- GroupBox.cs
- NativeActivityContext.cs
- ScrollChangedEventArgs.cs
- SelectionGlyphBase.cs
- FigureParagraph.cs
- XmlHelper.cs
- TextBlockAutomationPeer.cs
- Token.cs
- ProfileService.cs
- VisualStateManager.cs
- XLinq.cs
- TrackingStringDictionary.cs
- SecurityManager.cs
- UriParserTemplates.cs
- XmlQueryTypeFactory.cs
- SecurityManager.cs
- WindowsGrip.cs
- DependencyObjectType.cs
- StaticDataManager.cs
- DynamicResourceExtension.cs
- MetaTable.cs
- XhtmlBasicListAdapter.cs
- AnimatedTypeHelpers.cs
- PrinterUnitConvert.cs
- RankException.cs
- SqlUserDefinedAggregateAttribute.cs