Table of Contents

Interface IViewAdapter

Namespace
EasySoftware.MvvmMini.Core
Assembly
EasySoftware.MvvmMini.Core.dll

Wraps a view so a view model can control it without depending on WPF types.

public interface IViewAdapter

Properties

DataContext

Gets or sets the data context of the view.

object DataContext { get; set; }

Property Value

object

View

Gets the wrapped view.

object View { get; }

Property Value

object

Methods

Close()

Closes the view.

void Close()

Show()

Shows the view as a non-modal window.

void Show()

ShowDialog()

Shows the view as a modal dialog and returns when it is closed.

void ShowDialog()

Events

Loaded

Occurs the first time the view is loaded.

event EventHandler Loaded

Event Type

EventHandler

Unloaded

Occurs when the view is unloaded after it was loaded.

event EventHandler Unloaded

Event Type

EventHandler