Привязка в TextBlock не работает в WPF

Я хочу динамически менятьTextBlock текст в моем классе.

XAML-Code:

<TextBlock Name="Footer_text"  Text=""/>

C#:

string footerMainMenuText = "Setting";
Binding  set = new Binding("");
set.Mode = BindingMode.OneWay;
set.Source = footerMainMenuText;
Footer_text.DataContext = footerMainMenuText;
Footer_text.SetBinding(TextBlock.TextProperty, set);

Я проверил последнюю строку, иFooter_text.Text установлен правильно. (Footer_text.Text="Setting"), ноTextBlock в моем приложении не отображается "Настройка". В чем здесь проблема?

Ответы на вопрос(1)

Ваш ответ на вопрос