ThumbButtonInfoCollection.cs 799 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Windows;
  3. namespace Microsoft.Windows.Shell;
  4. public class ThumbButtonInfoCollection : FreezableCollection<ThumbButtonInfo>
  5. {
  6. protected override Freezable CreateInstanceCore()
  7. {
  8. return new ThumbButtonInfoCollection();
  9. }
  10. internal static ThumbButtonInfoCollection Empty
  11. {
  12. get
  13. {
  14. if (ThumbButtonInfoCollection.s_empty == null)
  15. {
  16. ThumbButtonInfoCollection thumbButtonInfoCollection = new ThumbButtonInfoCollection();
  17. thumbButtonInfoCollection.Freeze();
  18. ThumbButtonInfoCollection.s_empty = thumbButtonInfoCollection;
  19. }
  20. return ThumbButtonInfoCollection.s_empty;
  21. }
  22. }
  23. private static ThumbButtonInfoCollection s_empty;
  24. }