The window is instantiated from it’s own class and there may be multiple instances at the same time. The problem is that i can not set any id’s of the window’s content, as new instances after the first window is shown will reported that the id’s are not unique. As a work around for the window i created a new uid as the window’s id and references it on the close button click event. Is this the way to resolve this, or am i missing something ?
example: Code Snippet