private DrawItemState getState(int row)
{
DrawItemState state = DrawItemState.None;
if(Host is ListBox)
{
var lbox = (ListBox)Host;
if (lbox.SelectedIndices.Contains (row))
state |= DrawItemState.Selected;
if (lbox.has_focus && lbox.FocusedItem == row)
state |= DrawItemState.Focus;
}
return state;
}
}