V
V
VM-032022-04-08 08:25:53
WPF
VM-03, 2022-04-08 08:25:53

How from Application to address to an open window?

I have an application that contains a TextBox and a Button. It is necessary that by clicking on the button in the TextBox all events that have occurred with the application since the launch are displayed.
I receive events in the App class, but I can't display it in a TextBlock

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2022-04-08
@VM-03

The Application class has a Windows property https://docs.microsoft.com/ru-ru/dotnet/api/system...
from which you can get the desired window and display the result by assigning the Text property to the TextBlock

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question