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

Binding to FontAttributesProperty

$
0
0

Hi,
I want to bind to the FontAttributesProperty of a button
I have tried the following

var btn = new Button()
            {
                Text = item.Title,
                TextColor = Color.Black,
                HeightRequest = 40,
            };
          btn.SetBinding(Label.FontAttributesProperty, "FontStyle");

But with no result.

How can I do this?
Do I have to make a custom binding?

Br Morten


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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