Hallo, ich bin gerade am umstieg auf wpf.
Ich habe eine Listview von der ich gerne den Inhalt der Aktuellen zeile ausgeben möchte. In Windows Forms ist das ja so gegangen
ListView.SelectedListViewItemCollection breakfast =
ListView1.SelectedItems;
double price = 0.0;
foreach (ListViewItem item in breakfast)
{
price += Double.Parse(item.SubItems[1].Text);
}
// Output the price to TextBox1.
TextBox1.Text = price.ToString();
nur in wpf kann ich keine SelectedListViewCollection erstellen.
danke
Ich habe eine Listview von der ich gerne den Inhalt der Aktuellen zeile ausgeben möchte. In Windows Forms ist das ja so gegangen
ListView.SelectedListViewItemCollection breakfast =
ListView1.SelectedItems;
double price = 0.0;
foreach (ListViewItem item in breakfast)
{
price += Double.Parse(item.SubItems[1].Text);
}
// Output the price to TextBox1.
TextBox1.Text = price.ToString();
nur in wpf kann ich keine SelectedListViewCollection erstellen.
danke