Allora, ho cambiato le origini... ora sto cercando gli ordini dei vari clienti.... e sono a buon punto!
Il codice che ho scritto è:
Private Sub OrdiniPerCliente()
For Each c In db.Customers
Dim ordine = From o In db.Orders Where pr.Customers.CustomerID = o.CustomerID Select o
Dim stk As New StackPanel
With stk
.Orientation = Orientation.Vertical
End With
Dim chk As New CheckBox
With chk
.Content = c.CompanyName
End With
Dim lst As New ListBox
With lst
.ItemsSource = ordine
.DisplayMemberPath = "OrderID"
End With
Me.wrap1.Children.Add(stk)
stk.Children.Add(chk)
stk.Children.Add(lst)
Next
End Sub
E tutto questo, come dicevo, funziona, ma.... come inserisco i vari stili?