Skip to content

Instantly share code, notes, and snippets.

@IranthaJ
Created April 7, 2015 07:56
Show Gist options
  • Select an option

  • Save IranthaJ/f8779cc946cacc4b500b to your computer and use it in GitHub Desktop.

Select an option

Save IranthaJ/f8779cc946cacc4b500b to your computer and use it in GitHub Desktop.
<StackPanel>
<ComboBox SelectedItem="{Binding Item}" ItemsSource="{Binding itemList}"
Margin="105,56,52,0" Height="27" SelectionChanged="ComboBox_SelectionChanged">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<ListView Name="VitaminsListView" SelectedItem="{Binding SubItem}"
ItemsSource="{Binding subItemList}" HorizontalAlignment="Left"
Height="201" Margin="105,50,0,0" VerticalAlignment="Top" Width="283">
<ListView.View>
<GridView>
<GridViewColumn Width="100" Header="ID" DisplayMemberBinding="{Binding subItemID}"/>
<GridViewColumn Header="Vitamins" DisplayMemberBinding="{Binding SubName}"/>
</GridView>
</ListView.View>
</ListView>
</StackPanel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment