bind Foreground to font_brush

This commit is contained in:
Jake Norbut committed 2019-08-27 15:14:49 -05:00
1 parent e2d065f6b3
commit d52ec704fb
1 file changed
+2 -1
@@ -24,7 +24,8 @@ namespace mbts.ui.controls {
public Thickness padding { get; set; } = _default_padding;
public override FrameworkElement view_factory() {
var hl = new HyperlinkCell { Foreground = font_brush, Padding = padding };
var hl = new HyperlinkCell { Padding = padding };
hl.SetBinding(HyperlinkCell.ForegroundProperty, new Binding(nameof(font_brush)) { Source = this });
hl.SetBinding(HyperlinkCell.TextProperty, _binding);
hl.SetBinding(HyperlinkCell.FontFamilyProperty, new Binding(nameof(font_family)) { Source = this });
hl.SetBinding(HyperlinkCell.FontSizeProperty, new Binding(nameof(font_size)) { Source = this });