From 18f2e4e6be6eba17d0b2432555a09f733eb07a43 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Wed, 27 Mar 2019 00:34:02 +0100 Subject: [PATCH] Re-added an obsolete DropDown control. To provide backwards compatibility for the moment. --- src/Avalonia.Controls/DropDown.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/Avalonia.Controls/DropDown.cs diff --git a/src/Avalonia.Controls/DropDown.cs b/src/Avalonia.Controls/DropDown.cs new file mode 100644 index 0000000000..b67d9ef89a --- /dev/null +++ b/src/Avalonia.Controls/DropDown.cs @@ -0,0 +1,28 @@ +using System; +using Avalonia.Logging; +using Avalonia.Styling; + +namespace Avalonia.Controls +{ + [Obsolete("Use ComboBox")] + public class DropDown : ComboBox, IStyleable + { + public DropDown() + { + Logger.Warning(LogArea.Control, this, "DropDown is deprecated: Use ComboBox"); + } + + Type IStyleable.StyleKey => typeof(ComboBox); + } + + [Obsolete("Use ComboBoxItem")] + public class DropDownItem : ComboBoxItem, IStyleable + { + public DropDownItem() + { + Logger.Warning(LogArea.Control, this, "DropDownItem is deprecated: Use ComboBoxItem"); + } + + Type IStyleable.StyleKey => typeof(ComboBoxItem); + } +}