How to build dock UI according to MVVM pattern using LayoutAdapter

  • 3 minutes to read

This example shows how to use the LayoutAdapter to build a dock UI according to the MVVM design pattern. See the MVVM Support - Building Dock UI document to learn more.

Imports System.Collections.ObjectModel

Namespace dxSampleGrid
    Public Class MyViewModel
        Public Sub New()
        End Sub

        Public Property PersonList() As ObservableCollection(Of Person)

        Private Sub CreateList()
            PersonList = New ObservableCollection(Of Person)()
            For i As Integer = 0 To 4
                Dim p As New Person(i)
                p.ParentName = "LayoutGroup1"
            Next i
            PersonList(0).IsTabbed = True
            PersonList(1).IsTabbed = True
            PersonList(2).IsFloat = True
        End Sub
    End Class

End Namespace