I use the Title property for the page to set the text block in the main window.
Software data binding works once. But when I change the title property on the page, the browser title and tab are updated, but my text block is not working.
In the NavigatedTo method in mainview:
Page page = ((Page)e.Content);
Binding binding = new Binding();
binding.Path = new PropertyPath("Title");
binding.Source = page;
binding.Mode = BindingMode.OneWay;
Header.SetBinding(TextBlock.TextProperty, binding);
source
share