Imports System
Imports System.ComponentModel
Imports System.Collections.Generic
Imports System.Diagnostics
Imports System.Text

Imports DevExpress.ExpressApp
Imports DevExpress.ExpressApp.Actions
Imports DevExpress.Persistent.Base
Imports DevExpress.ExpressApp.Editors

Public Class ViewModeEditVC
    Inherits DevExpress.ExpressApp.ViewController(Of DetailView)

    Public Sub New()
        MyBase.New()

        'This call is required by the Component Designer.
        InitializeComponent()
        RegisterActions(components)

    End Sub
    Protected Overrides Sub OnActivated()
        MyBase.OnActivated()
        Dim fView As DetailView = TryCast(View, DetailView)
        If (Not fView Is Nothing) Then
            fView.ViewEditMode = ViewEditMode.Edit
        End If
    End Sub
End Class
