| File: System\Windows\Shell\ThumbButtonInfoCollection.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj (PresentationFramework) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Windows.Shell { public class ThumbButtonInfoCollection : FreezableCollection<ThumbButtonInfo> { protected override Freezable CreateInstanceCore() { return new ThumbButtonInfoCollection(); } /// <summary> /// A frozen empty ThumbButtonInfoCollection. /// </summary> internal static ThumbButtonInfoCollection Empty { get { if (s_empty == null) { var collection = new ThumbButtonInfoCollection(); collection.Freeze(); s_empty = collection; } return s_empty; } } private static ThumbButtonInfoCollection s_empty; } }