Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I'm creating an application that requres flowDocumentScrollViewer.
Under that flowDocumentScrollViewer, FlowDocuments can be put.

I want to divide that flowdocument into 3 parts, i.e. header,body,footer
These sections should be of variable length. for that my approach was like:

Section header = new Section();
header.Background = new SolidColorBrush(Colors.Aqua);
//header.
Section body = new Section();
body.Background = new SolidColorBrush(Colors.BlueViolet);
Section footer = new Section();
footer.Background = new SolidColorBrush(Colors.Black);
myFlowDoc.Blocks.Add(header);
myFlowDoc.Blocks.Add(body);
myFlowDoc.Blocks.Add(footer);


It reflects the section in FlowDocument but I'm unable to resize these sections.
I cant even set height of these sections. Does anyone have any Idea about how to tackle this problem??
Posted
Updated 7-Apr-11 20:19pm
v2
Comments
Wendelius 8-Apr-11 2:20am    
Pre tags added

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900