public void Support_Font_Styles(IconChar icon) { var bitmap = icon.ToImageSource(IconFont.Auto, IconHelper.DefaultBrush, 48); bitmap.Should().NotBeEmpty(); bitmap = icon.ToImageSource(IconFont.Regular, IconHelper.DefaultBrush, 48); bitmap.Should().NotBeEmpty(); }
public IconSource(IconChar icon) { _icon = icon; _imageSource = _icon.ToImageSource(_foreground, _size); }
private void UpdateImageSource() { _imageSource = _icon.ToImageSource(_foreground, _size); }