public void OnRunCommand(string command, ref bool handled) { handled = true; switch (command) { case "@ok": Windows.CloseAsync(this); break; default: handled = false; break; } }