I am new to WPF / XAML and now I am just learning.
I have a nod and I want to resize the text in the tag depending on the position of the scroll bar.
Text is defined by this code:
<FlowDocumentScrollViewer Grid.Row="1"> <FlowDocument> <Paragraph> Text goes here </Paragraph> </FlowDocument> </FlowDocumentScrollViewer>
I am trying to define a Setter, and I got to this:
<Style TargetType="{x:Type Paragraph}"> <Setter Property="FontSize" Value="???" /> </Style>
But I canβt find out what needs to be done in place of β???β. I tried Google to answer this question, but I think I should use the wrong search terms because I haven't found the answer yet.
I suppose this will be really obvious, but I must admit that I'm at a standstill.
source share