I have to add two columns in Listview , One columns show different images and another columns is used to show button. It will be great help if anybody provide the any link or example source code. Thanks in advance.
+2
A:
maybe like this, it would give you two columns one with a button one with an image. if i was doing it i would put a command on my item so i could bind my button to it.
<ListView
Name="myListView">
<ListView.View>
<GridView>
<GridViewColumn>
<GridViewColumn.CellTemplate>
<DataTemplate>
<Button
Content="Click Me"
Margin="0"
VerticalAlignment="Center"
Click="Button_Click" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn>
<GridViewColumn.CellTemplate>
<DataTemplate>
<Image
Source="{Binding ImageSource}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
you would need to have an items source containgin items that had a property called ImageSource
Aran Mulholland
2009-12-18 06:00:30