Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Custom control properties and Styles

$
0
0

I have made a custom element that consists of a button, some labels and images etc.

I made bindable properties like TextColor, Command etc, and they all work properly when used on the individual control, but when I try to use a Style that sets those same properties, I get an error saying that TextColor is an unknown property for my control.

When I use TextColor in XAML as a property of the element, it works as expected, but the style gives me an error.

What would be the reason for this and how can I solve it?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>