https://docs.wisej.com/api/wisej.web/general/application#findcomponent-match
Is there a limitation to how deep this method will locate a IWisejComponent?
I have an implementation where it is properly identifying (finding) open pages, as I am attempting to prevent duplicates from being opened.
Control openViewInstance = (Control)Application.FindComponent(o => o is Control && ((Control)o).Name == viewName);
But it is not finding open pages that are four elements deep in the fully qualified namespace.
For Example:
it will locate an open instance of this IWisejComponent: Controls.Production.SomeControlName
but not this one: Controls.Production.Labor.SomeOtherControlName
Thank you
There is no depth for FindComponents(). The list is flat. Send a small runnable complete test project that shows your issue and we may be able to help you further.
Hi Christian,
there should be no limit, you might want to check your search predicate.
Please note that it stops after finding the first match.
There is also a FindComponents method that finds all matches.
Best regards
Frank
Please login first to submit.