Method CreateAndRun
CreateAndRun(Func<Window>, Action?)
Creates application and main form, runs and disposes them.
public static void CreateAndRun(Func<Window> createFunc, Action? runAction = null)
Parameters
createFunc
Func<Window>Function which creates main form.
runAction
ActionRuns action after main form is created.
Exceptions
- Exception
If application is already created.