//----------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//----------------------------------------------------------------
namespace System.Activities.Presentation.ViewState
{
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows.Markup;
///
/// This class is used to hold ViewStateData for all activities in the workflow as an attached
/// property on the root of the xaml document.
///
[ContentProperty("ViewStateData")]
public sealed class ViewStateManager
{
Collection viewStateData;
///
/// Creates a new instance of ViewStateManager
///
public ViewStateManager()
{
}
///
/// Gets a collection of ViewStateData for all activities in the workflow
///
public Collection ViewStateData
{
get
{
if (this.viewStateData == null)
{
this.viewStateData = new Collection();
}
return this.viewStateData;
}
}
}
}