question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Heading color does not change.

See original GitHub issue

image

<UserControl ...
             Loaded="LicenseDialog_OnLoaded">
  <FlowDocumentScrollViewer x:Name="FlowDocumentScrollViewer" />
</UserControl>
private void LicenseDialog_OnLoaded(object sender, RoutedEventArgs e)
{
    var licenseContent = File.ReadAllText("License.md");
    var flowDocument = Markdown.ToFlowDocument(licenseContent);
    flowDocument.Foreground = Brushes.White;
    FlowDocumentScrollViewer.Document = flowDocument;
}

License.md

### License

Test license.
**Test license.**
Test license.
Test license.
...

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Tum4ikcommented, May 29, 2019

@Otiel , I’ve created a separate resource dictionary file and define the style there like:

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:markdig="clr-namespace:Markdig.Wpf;assembly=Markdig.Wpf">
...
<Style TargetType="{x:Type Paragraph}" x:Key="{x:Static markdig:Styles.Heading2StyleKey}">
    <Setter Property="FontSize" Value="20" />
    <Setter Property="Foreground" Value="#FF007ACC" />
    <Setter Property="FontWeight" Value="Bold" />
</Style>
...
</ResourceDictionary>
1reaction
Otielcommented, May 29, 2019

Thanks, exactly what I needed!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No matter what I try the header won't change color
This sounds like a caching issue. I can change the bg color of .top-header using developer tools and it changes with no problem....
Read more >
Style of header gone wild: colors do not change
After a comment by @cybernetic.nomad, I have shown the hidden signs and changed the color of the pilcrow sign (¶).
Read more >
How to change the colour of heading 2
With your cursor in any Heading 2 title, press ctrl+shift+s, in the apply style dialog click Modify, click the Format button at the...
Read more >
Header Text Color not changing
Hi, I can't get the header text color to change. I change it under Customizing -> Colors -> Header Text Color. It changes...
Read more >
My customizer will not let me change the color of ...
Now your instructions say that the customizer will let me do that under the 'Colors' section, but it will not. It will change...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found