We start by adding some UI to the ImageAnalysis.xaml file. All the Computer Vision example UIs will be built in the same manner:
<Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions>
The UI should have two columns. The first one will contain the image selection, while the second one will display our results.
In the left-hand column, we create a vertically oriented StackPanel label. In this, we add a label and a ListBox label. The listbox will display a list of visual features we can add to our analysis query. Notice how we have a SelectionChanged event hooked up in the ListBox label. This will be added behind the code and will be covered shortly: