internal void DeselectItem(DropDownItemControl item) { if (item != null) { item.IsSelected = false; } SelectedItemIndex = -1; }
internal void SelectItem(DropDownItemControl item) { int index = base.IndexFromContainer(item); if (index >= 0) { SelectItem(index, true); } }
/// <summary> /// Creates a new instance of the <see cref="T:DropDownItemControl" /> class. /// </summary> public DropDownItemControl() { DropDownItemControl control = this; control.PointerEntered += DropDownItemControl_PointerEntered; DropDownItemControl control2 = this; control2.PointerExited += DropDownItemControl_PointerExited; DropDownItemControl control3 = this; control3.PointerReleased += DropDownItemControl_PointerReleased; base.DefaultStyleKey = typeof(DropDownItemControl); }