Is it possible to bind the current item to a tag in button from a listview itemsource like this. How do i do it
Please help
<ListView ItemsSource="Assignments">
<ListView.ItemTemplate>
<DataTemplate>
<Button Tag="{Binding CurrentItem}">
</Button>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Yes, if Assignments is a collection of string then you need
If Assignments is a collection of Assignment where Assignment has a property Name you need