This is a migrated thread and some comments may be shown as answers.

set height of header area in stack / outlook mode

3 Answers 102 Views
PageView
This is a migrated thread and some comments may be shown as answers.
erwin
Top achievements
Rank 1
Veteran
Iron
erwin asked on 21 Dec 2010, 12:50 PM
Is there a way to set the height of the header area in (that displays the Page Title and Icon) in Outlook or Stack mode in the designer or at runtime.
In my case the default size is a bit too much. The control shows ok in the designer, but at runtime, the header height is about twice as much as in the designer.

Regards
Erwin

3 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 21 Dec 2010, 05:38 PM
Hi Erwin,

How are you?
Can you tell me how you are setting this at the moment? I'd like to give it a try with your code.
thanks
Richard
0
erwin
Top achievements
Rank 1
Veteran
Iron
answered on 21 Dec 2010, 11:57 PM
Hello Richard,

I do not set anything in code yet, but I would like to have the header / title region of the pages smaller than the default and I could not find a setting in the designer.

Regards
Erwin
0
Ivan Todorov
Telerik team
answered on 27 Dec 2010, 11:41 AM
Hello erwin,

Please follow these steps in the designer:

  1. Select the page view you want to edit..
  2. In the property grid expand the ViewElement property.
  3. Expand the Header property of the ViewElement.
  4. Modify the MaxSize and Font properties of the Header to match your needs.

This can be also achieved using the following code:

RadPageViewOutlookElement viewElement = radPageView1.ViewElement as RadPageViewOutlookElement;
if (viewElement != null)
{
    viewElement.Header.MaxSize = new Size(0, 20);
    viewElement.Header.Font = new Font("Segoe UI", 8, FontStyle.Bold, GraphicsUnit.Point);
}

Hope this helps. Should you have any further questions, do not hesitate to ask.

Best wishes,
Ivan Todorov
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
PageView
Asked by
erwin
Top achievements
Rank 1
Veteran
Iron
Answers by
Richard Slade
Top achievements
Rank 2
erwin
Top achievements
Rank 1
Veteran
Iron
Ivan Todorov
Telerik team
Share this question
or