프로그래밍언어/VB.NET
wpf Property lisview
부산딸랑이
2013. 7. 15. 22:32
Public Class User
Public Property Name() As String
Get
Return m_Name
End Get
Set(value As String)
m_Name = Value
End Set
End Property
Private m_Name As String
Public Property Age() As Integer
Get
Return m_Age
End Get
Set(value As Integer)
m_Age = Value
End Set
End Property
Private m_Age As Integer
End Class
Dim items As New List(Of User)()
items.Add(New User With {.Name = "이름", .Age = "40"})
listview1.ItemsSource = items