bind Foreground to font_brush
This commit is contained in:
1 parent
e2d065f6b3
commit
d52ec704fb
1 file changed
+2
-1
+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 });
|
||||
|
||||
Reference in new issue
Block a user