Why isnt it outputting the same

im following this https://wpf.2000things.com/2014/07/01/1105-using-applications-windows-collection-to-interact-with-other-windows/

i looked up the error on ms docs and what i think im doing wrong is that im not referencing something but im not sure what to referense
error:
'OtherWindow' does not contain a definition for 'OtherWindow' and no accessible extension method 'OtherWindow' accepting a first argument of type 'OtherWindow' could be found (are you missing a using directive or an assembly reference?)

msdocs:https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1061
image.png
image.png
image.png
image.png
2,000 Things You Should Know About WPFSean
You can use the Application object’s Windows property to get a list of all active windows.  If you then cast to your specific subclass of Window, you can interact with the various child windo
Was this page helpful?