Change it to this:
OpenWindow = New RelayCommand(New Action(AddressOf ShowWindow))
The RelayCommand
requires an action without parameters. Your method ShowWindow
also is a method without parameters. But you declare the action with one parameter of type Object
.