コード例 #1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var xamarinFormsFont = (Font)value;

            //Need a TextBlock so that I can call the extension method
            var tempTextBlock = new TextBlock();

            tempTextBlock.ApplyFont(xamarinFormsFont);

            return(tempTextBlock.FontWeight);
        }