DropDown.cs 749 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using Avalonia.Logging;
  3. using Avalonia.Styling;
  4. namespace Avalonia.Controls
  5. {
  6. [Obsolete("Use ComboBox")]
  7. public class DropDown : ComboBox, IStyleable
  8. {
  9. public DropDown()
  10. {
  11. Logger.TryGet(LogEventLevel.Warning)?.Log(LogArea.Control, this, "DropDown is deprecated: Use ComboBox");
  12. }
  13. Type IStyleable.StyleKey => typeof(ComboBox);
  14. }
  15. [Obsolete("Use ComboBoxItem")]
  16. public class DropDownItem : ComboBoxItem, IStyleable
  17. {
  18. public DropDownItem()
  19. {
  20. Logger.TryGet(LogEventLevel.Warning)?.Log(LogArea.Control, this, "DropDownItem is deprecated: Use ComboBoxItem");
  21. }
  22. Type IStyleable.StyleKey => typeof(ComboBoxItem);
  23. }
  24. }