Since update from Visual Studio 2015 to 2017, I keep getting error for my binding code:
The program works just fine despite this error. When I rebuild the solution this information is gone until I change the xaml file. Resharper has to 2 solutions for this:
Binding Path=(resources:CaptionResources.WarehouseManagement), Source={StaticResource CaptionResources}
and
<controls:LabeledControl.Caption>
<Binding Path="WarehouseManagement" Source="{StaticResource CaptionResources}" />
</controls:LabeledControl.Caption>
Is it any Visual Studio 2017 setting, that I miss?
Probably your WarehouseManagement property is static, so the message: "expected to be an instance member". In this case you have to specify the full path like:
Caption={Binding Path=(namespace:className.WarehouseManagement)}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With