I am trying to fix one issue and suddenly this:
What is wrong? It's compilable and seems to work at run-time without problems. Restarting VS doesn't help, xaml designer say "Invalid markup" all time.
Xaml:
<Window x:Class="WpfApplication1.MainWindow"
...
xmlns:SystemGlobalization="clr-namespace:System.Globalization;assembly=mscorlib">
<TextBlock Text="{Binding Test, ConverterCulture={x:Static SystemGlobalization:CultureInfo.CurrentCulture}}" />
</Window>
Compiler error:
The member "CurrentCulture" is not recognized or is not accessible.
Some more details:
- VS 2015
- .Net Framework 4.5