Xamarin.Forms-Music-Streaming icon indicating copy to clipboard operation
Xamarin.Forms-Music-Streaming copied to clipboard

The attachable property 'BindingContext' was not found in type 'ContentPage'

Open docfresh opened this issue 4 years ago • 1 comments

Hi, thanks for this sample. I'm trying to use it with Xamarin.Forms 5 on the latest Visual Studio 2019.

In master/Radio021/Radio021/Views/Radio.xaml, I'm getting an error on Line 3, XLS0415, "The attachable property 'BindingContext' was not found in type 'ContentPage'" on line 3

image

The app loads on iOSSimulator and streams, but I think it is affecting things in the UI, maybe other areas as well. Hot Reload is definitely affected because it has the error

Hot Reload changes cannot be applied due to this error in the XAML: Xamarin.Forms-Music-Streaming\Radio021\Radio021\Views\Radio.xaml(3,1): The member "BindingContext" is not recognized or is not accessible.

Any update to the source at all? I will keep investigating what causes the error (Xamarin newb here). Thanks again

docfresh avatar Nov 10 '21 03:11 docfresh

Could it be that this is supposed to be

<ContentView.BindingContext> <vm:RadioViewModel /> </ContentView.BindingContext>

to match the ContentView declaration above?

docfresh avatar Nov 10 '21 03:11 docfresh