Is there any GOOD way to bind a static property of static class in a two way mode?
Here is an example class:
static class SettingsModel
{
static public string ModelFolder { set; get; }
}
And a text box:
<TextBox x:Name="ModelTB" Text="{Binding Source={x:Static local:SettingsModel.ModelFolder}, Mode=TwoWay, Path=???/>
I've been searching for a lot and I've found only 2 not really good answers: Make class not static or create a dummy window resource class.