Dim item As Object For Each item In Me.ListBox1.SelectedItems //here i just could not do it. Next
Dim proxy As New ...() AddHandler proxy.GetDistrictCompleted, AddressOf Proxy_GetDistrictCompleted proxy.GetDistrictAsync() Me.ListBox1.ItemsSource = e.Result Me.ListBox1.DisplayMemberPath = "District" Me.ListBox1.SelectedValuePath = "District"
item
MyType myType = (MyType)item; DoStuff(myType.MyProperty, etc...);
Dim lbi As ListBoxItem = TryCast(TryCast(sender, ListBox).SelectedItem, ListBoxItem) textBlock1.Text = " You selected " + lbi.Content.ToString() + "."
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)