K
K
KerroViT2020-08-23 09:43:00
WPF
KerroViT, 2020-08-23 09:43:00

How to get value from one window to another?

There are 2 windows: FirstWindow and SecondWindow
SecondWindow is called from FirstWindow by clicking on MenuItem. Also in FirstWindow there is a TextBlock whose value should be available from SecondWindow after it is opened. I hope I explained clearly.

How can I do that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2020-08-23
@KerroViT

The simplest, in SecondWindow, pass a link to the textblock to the sw constructor and store it in a private field

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question