Software-specific binding of Silverlight to page title Property is not updated

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);
+5
source share
1 answer

Title It is not implemented as a property of dependencies, therefore, bindings are not reported on changes made to it.

Ultimately, you will need to collaborate with code that modifies a property Title.

, ChangeTitle Title, "".

+1

All Articles