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

Is it wrong to use Binding with StyleId?

$
0
0

Hi,

I am trying to bind a property with StyleId, in order to uniquely identify it. But for some reason i get internal exception and application crashes. Below is my code in Xaml:

    <controls:ImageButton x:Name="checkUncheckButton" BackgroundColor="#000000" StyleId="{Binding NoteId}"
                                             Image="icon_unchecked_26x26" ImageHeightRequest="26" ImageWidthRequest="26"/>

In above code, I am able to bind with Text property.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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