xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:c="clr-namespace:WpfApplication1"
x:Class="WpfApplication1.Window1"
Title="CompositeCollections"
SizeToContent="WidthAndHeight">
Other Listbox Item 1
//File:Window.xaml.vb
Imports System
Imports System.ComponentModel
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Documents
Imports System.Windows.Navigation
Imports System.Windows.Shapes
Imports System.Windows.Data
Imports System.Collections.ObjectModel
Namespace WpfApplication1
Public Partial Class Window1
Inherits Window
Public Sub New()
InitializeComponent()
End Sub
End Class
Public Class Employee
Private _name As String
Public Property Name() As String
Get
Return _name
End Get
Set
_name = value
End Set
End Property
Public Sub New(name__1 As String)
Name = name__1
End Sub
End Class
Public Class Employees
Inherits ObservableCollection(Of Employee)
Public Sub New()
Add(New Employee("A"))
Add(New Employee("B"))
Add(New Employee("C"))
End Sub
End Class
End Namespace