Abdullah Malikyar
Abdullah Malikyar

Reputation: 231

Access a parent window control(e.g a Label) inside Child page

enter image description hereI am developing a WPF application where i have a MainWindow that has a Frame control and a Label Control inside it, i have set the source of the Frame control to one of the pages i have created, what i want is to be able to change the content of Label control (inside Main window) from my Page.xaml which is displayed inside the Frame control.

Here is an Image to further illustrate what i really want . excuse my drawing!!

Upvotes: 0

Views: 1039

Answers (1)

paparazzo
paparazzo

Reputation: 45106

Page page = new Page(this);  
Framme.Content = page;

Upvotes: 1

Related Questions