Goblin - A Platform for 3D AR and VR Applications

ListBox.GetSelectedIndex Method 

For single-selection listbox, returns the index of the selected item. For multi-selection, returns the first selected item after the previousSelected position. To search for the first selected item, the app passes -1 for previousSelected. For subsequent searches, the app passes the returned index back to GetSelectedIndex as. previousSelected. Returns -1 on error or if no item is selected.

public int GetSelectedIndex(
   int previousSelected
);

See Also

ListBox Class | Microsoft.Samples.DirectX.UtilityToolkit Namespace