For updating the variable TText to update the TextBox Text?

<textbox name="TextBoxText" text="{Binding Source={x:Static local:G. TText}, Mode=OneWay}">
</textbox>


public /*static*/ class G
{
 public static string TText { get; set; }
June 10th 19 at 16:20
2 answers
June 10th 19 at 16:22
Without distortions in any way, because a static field can not be the subject of INotifyPropertyChanged etc.
Have to either build an intermediate wrapper that supports the logic change notification, or manually to notify Binding about changes through UpdateSource.

Find more questions by tags XAMLWPFC#