Blur flowdocument in WPF RRS feed

  • Question

  • I'm looking a way to blur `FlowDocument` like this: 

    FlowDocument doc = new FlowDocument();
    BlurEffect blur = new BlurEffect();
    blur.Radius = 10;
    doc.Effect = blur; // it doesn't work! (FlowDocument doesn't have Effect property)

    Above code is a part of a `Converter` which return `FlowDocument` for using in a `FlowDocumentScrollViewer`. Some items (returned flow documents) have specific conditions which should be blurred. 

    <DataGrid ItemsSource="{Binding Items}">
                        Document="{Binding ., Converter={StaticResource ItemToFlowDocConverter}}"/>                

    • Edited by Ayub1987 Tuesday, October 6, 2020 6:51 PM
    Tuesday, October 6, 2020 6:50 PM

All replies

  • Try applying the effect to the parent control of FlowDocument, such as the FlowDocumentScrollViewer.

    Tuesday, October 6, 2020 7:36 PM