1

how can I create button in each row I add in listview in c# WPF Like what when you connect to wireless network in windows 7 ?

0

1 Answer 1

2

You need to assign the ListView a DataTemplate for it's items. Try this:

<ListView ItemsSource="{Binding Path=MyCollection}">
    <ListView.ItemTemplate>
        <DataTemplate >
            <Button>Go</Button>
        </DataTemplate>
    </ListView.ItemTemplate>
</ListView>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.