Hi Wolfgang,
I've been studying the sample you suggested. I understand it a bit more but I'm still pvery much in dark. Hopefully you can shed some more light on me.
I find case of textbox, it uses <TextBox Text="{Binding ItemID}"> in .xaml file, to bind the data returned from the codes in Dockpane1ViewModel.cs .
My case I have to use listview to list all lines returned from excel. Which property of listview should I use for binding in .xaml file ?
And many properties like View = View.Details; GridLines = true; FullRowSelect = true are not available in .xaml too.
Your help is greatly appreciated.
---codes from my arcmap addin---------------
Dim workbook = package.Workbook
If workbook IsNot Nothing Then
Dim sheet = workbook.Worksheets(1)
Dim firstColumnRows = sheet.Cells("A1:A") ' Loop through rows in the first column, get values based on offset
Dim cell As Object
myForm.lstAllAcct.View = View.Details
myForm.lstAllAcct.Clear()
myForm.lstAllAcct.Columns.Add("Account Number", 122)
For Each cell In firstColumnRows
Dim column1CellValue = cell.GetValue(Of String)()
lvItem = myForm.lstAllAcct.Items.Add(Trim(column1CellValue.ToString))
Next
End If
-----------------------------------------------------------