[Solved] Combobox show and hide ComboBox items in WPF

Create a custom control such as: public class CrazyCombo : ComboBox { static CrazyCombo() { DefaultStyleKeyProperty.OverrideMetadata(typeof(CrazyCombo), new FrameworkPropertyMetadata(typeof(CrazyCombo))); } public int InitialDisplayItem { get { return (int)GetValue(InitialDisplayItemProperty); } set { SetValue(InitialDisplayItemProperty, value); } } // Using a DependencyProperty as the backing store for InitialDisplayItem. This enables animation, styling, binding, etc… public static readonly DependencyProperty InitialDisplayItemProperty … Read more