A simple combobox optimized to work with the ComboBox view-model.
Inheritance: System.Windows.Controls.ComboBox
        public void Build_Items_Collection(CoreComboBox control)
        {

            foreach (MyEnum value in typeof(MyEnum).GetEnumValues())
            {
                viewModel.Add(value.ToString(), value);
            }
            viewModel.SelectFirst();
        }
        public void Initialize(CoreComboBox control)
        {
            // Setup initial conditions.
            control.Width = 300;
            control.Padding = new Thickness(20, 5, 20, 5);

            // Setup view-model.
            viewModel = new ComboBoxViewModel();
            control.ViewModel = viewModel;

            // Wire up events.
            viewModel.SelectionChanged += delegate { Debug.WriteLine("!! SelectionChanged: " + viewModel.SelectedItem); };

            // Finish up.
            Build_Items_Collection(control);
        }
 public void SelectValue_Last(CoreComboBox control)
 {
     var item = viewModel.Items.Last();
     viewModel.SelectValue(item.Value);
 }
 public void Select(CoreComboBox control)
 {
     viewModel.Select(2);
 }
 public void Clear(CoreComboBox control)
 {
     viewModel.Items.RemoveAll();
 }
 public void Set_Tooltip_Null(CoreComboBox control)
 {
     viewModel.ToolTip = null;
 }
 public void Set_Tooltip(CoreComboBox control)
 {
     viewModel.ToolTip = "My ToolTip";
 }
 public void Change__FontSize(CoreComboBox control)
 {
     control.FontSize = 25;
 }
 public void SelectedItem__Null(CoreComboBox control)
 {
     viewModel.SelectedItem = null;
 }