Timeout for detect the WPF application

When I execute my test cases, the appium sometimes doesn’t detect the application, you know some time out or command that assign more time for detect the application when it’s opened.