Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No property, bindable property, or event found for 'BorderColor' #1

Open
MichaelLant opened this issue Jul 24, 2018 · 2 comments
Open

Comments

@MichaelLant
Copy link

I am using the latest version of Xamarin Forms, and all Nuget packages and I am building for Android Oreo 8.x When I add the following XAML I get errors for both BorderColor and FillColor indicating that neither is a bindable property:

XAML
<shapes:Circle> <shapes:Circle.Paint> <shapes:SSPaint BorderColor="Blue" FillColor="Red" BorderWidth="1" /> </shapes:Circle.Paint> </shapes:Circle>

Error Message
Severity Code Description Project File Line Suppression State Error Position 196:53. No property, bindable property, or event found for 'BorderColor', or mismatching type between value and property. PlanitUX.Client.Forms C:\Dev\PlanitUX\PlanitUX\PlanitUX.Client.Forms\Views\TestPage.xaml 196

I have downloaded the project source code and successfully run the Android test app using these properties. However, Nuget Manager reports 24 packages that are out of date. Running Nuget Update does not complete and fails with the following message:

Severity Code Description Project File Line Suppression State Error Could not install package 'Xamarin.Android.Support.Animated.Vector.Drawable 27.0.2.1'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v8.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Any ideas?

Michael

@LouwrensP
Copy link

I have the same problem with BorderColor, CardColor and IconBackgroundColor in my CardView. Did the tutorial on https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/contentview?view=net-maui-8.0 (ContentView). Intelisense picks up the properties, but gives the same error when running the App.

@LouwrensP
Copy link

I just found the issue. In my .cs file I used System.Drawing.Color instead of Microsoft.Maui.Graphics.Color.
Changing the tipe to Microsoft.Maui.Graphics.Color fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants