예제 #1
0
 internal void DeselectItem(DropDownItemControl item)
 {
     if (item != null)
     {
         item.IsSelected = false;
     }
     SelectedItemIndex = -1;
 }
예제 #2
0
        internal void SelectItem(DropDownItemControl item)
        {
            int index = base.IndexFromContainer(item);

            if (index >= 0)
            {
                SelectItem(index, true);
            }
        }
예제 #3
0
        /// <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);
        }