Heading color does not change. #283

Closed
opened 2026-01-29 14:32:43 +00:00 by claunia · 2 comments
Owner

Originally created by @Tum4ik on GitHub (Mar 19, 2019).

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.
...
Originally created by @Tum4ik on GitHub (Mar 19, 2019). ![image](https://user-images.githubusercontent.com/21317790/54643248-1e4b0800-4a9f-11e9-900e-eae1cb8b7777.png) ```xaml <UserControl ... Loaded="LicenseDialog_OnLoaded"> <FlowDocumentScrollViewer x:Name="FlowDocumentScrollViewer" /> </UserControl> ``` ```csharp 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** ```md ### License Test license. **Test license.** Test license. Test license. ... ```
Author
Owner

@MihaZupan commented on GitHub (Mar 19, 2019):

This is an issue for https://github.com/Kryptos-FR/markdig.wpf

@MihaZupan commented on GitHub (Mar 19, 2019): This is an issue for https://github.com/Kryptos-FR/markdig.wpf
Author
Owner

@Tum4ik commented on GitHub (Mar 19, 2019):

Should I open it there?

@Tum4ik commented on GitHub (Mar 19, 2019): Should I open it there?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#283