Interface IViewAdapter
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
View
Gets the wrapped view.
object View { get; }
Property Value
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
Unloaded
Occurs when the view is unloaded after it was loaded.
event EventHandler Unloaded