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

Custom renderer for picker in WP

$
0
0

Hey,

Some updates ago this stopped working (it used to work):

        if (Control != null)
        {
            Control.Foreground = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Black);
        }

Because "Foreground" is not available.
This won't work as well:

        if (Control != null)
        {
            ListPicker picker = Control as ListPicker;
            picker.Foreground = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Black);
        }

The renderer is correctly written. It used to work some updates ago.
How can i access the text color now?

Thanks in advance


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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