File: System\Activities\Core\Presentation\Themes\DesignerStyleDictionary.xaml.cs
Project: ndp\cdf\src\NetFx40\Tools\System.Activities.Core.Presentation\System.Activities.Core.Presentation.csproj (System.Activities.Core.Presentation)
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//----------------------------------------------------------------
namespace System.Activities.Core.Presentation.Themes
{
    using System.Windows;
    using System.Runtime;
 
    sealed partial class DesignerStylesDictionary
    {
        static DesignerStylesDictionary instance;
        
        internal DesignerStylesDictionary()
        {
            InitializeComponent();
        }
 
        static DesignerStylesDictionary Instance
        {
            get
            {
                if (null == instance)
                {
                    instance = new DesignerStylesDictionary();
                }
                return instance;
            }
        }
 
        public static Style SequenceStyle
        {
            get
            {
                var key = "SequenceStyle";
                if (!Instance.Contains(key))
                {
                    throw FxTrace.Exception.ArgumentNull(key);
                }
                var style = (Style)Instance[key];
                if (!style.IsSealed)
                {
                    style.Seal();
                }
                return style;
            }
        }
 
    }
}