Working With Lists - nicklikescoffee/UltimateUiPlugin GitHub Wiki
Some Controls in WPF accept a list of items. In these cases, you should use the UI Set List command to set a list of items for the Control.
The following Controls will work with UI Set List
- ComboBox
- ListBox
- ListView
Some other Controls will also work but are really not meant for this and will require special commands and functions in order to properly function. For example, DataGrid and TreeView.
Here is an example of setting lists for these Controls:
plugin command("UltimateUI.dll", "UI Load XAML", "<StackPanel>
<ComboBox x:Name=\"comboBox\"/>
<ListBox x:Name=\"listBox\"/>
<ListView x:Name=\"listView\"/>
</StackPanel>", "True", "False", "False", "BaseLight", "Blue")
add list to list(%numbers,$list from text("1,2,3,4",","),"Delete","Global")
plugin command("UltimateUI.dll", "UI Set List", "comboBox", %numbers)
plugin command("UltimateUI.dll", "UI Set ComboBox Property", "SelectedIndex", "comboBox", 0)
plugin command("UltimateUI.dll", "UI Set List", "listBox", %numbers)
plugin command("UltimateUI.dll", "UI Set List", "listView", %numbers)