Loading files
366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.
namespace IDE.Controls
{
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
/// <summary>
/// This class implements a lookless combobox control with
/// a unit drop-down selection that can be used to pre-select
/// a list of useful combobox entries.
/// </summary>
[TemplatePart(Name = "PART_Popup", Type = typeof(Popup))]
[Localizability(LocalizationCategory.ComboBox)]
[TemplatePart(Name = "PART_EditableTextBox", Type = typeof(TextBox))]
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(ComboBoxItem))]
public class UnitCombobox : ComboBox
{
#region constructor
/// <summary>
/// Static class constructor to register look-less <seealso cref="UnitCombobox"/> class
/// control with the dependency property system.
/// </summary>
static UnitCombobox()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(UnitCombobox), new FrameworkPropertyMetadata(typeof(UnitCombobox)));
}
/// <summary>
/// public class constructor.
/// </summary>
public UnitCombobox() : base()
{
}
#endregion constructor
}
}