How to pass a string[] to populate New-List?

Sep 2, 2014 at 1:18 PM
There seems to be some knowledge missing that prevents easily passing an array variable to New-List/New-ComboBox etc. as a list of ListItems. What am I missing?
Sep 22, 2014 at 5:29 AM
Hey sorry, didn't see ya here. You can use Items or ItemsSource on either of them with an array.
New-ListView -Items "one","two","three","four","five" -show

New-ComboBox -ItemsSource @("one","two","three","four","five") -show