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

Reduce the width of left pane of BackStageView

6 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Akhil
Top achievements
Rank 1
Akhil asked on 10 Apr 2011, 09:34 AM

Hi,

The new BackStageView of PageView control is awesome. But the Office2007Black theme doesn't work on it !

My question is how can we reduce the width of the left pane (where the buttons for each page is listed) ?

Thanks

6 Answers, 1 is accepted

Sort by
0
Akhil
Top achievements
Rank 1
answered on 12 Apr 2011, 02:10 PM
Any ideas ?
0
Accepted
Ivan Todorov
Telerik team
answered on 12 Apr 2011, 05:42 PM
Hi Akhil,

Thank you for sharing your feedback. I am glad you like the new backstage look.

The Office2007 themes will be supported by the backstage view controls in the near future. As to setting the size of the items panel, here is how this should be done:

(radPageView1.ViewElement as RadPageViewBackstageElement).ItemContainer.MinSize = new Size(150, 0);

I hope you find this useful. Feel free to ask if you have any additional questions.

Best wishes,
Ivan Todorov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Akhil
Top achievements
Rank 1
answered on 13 Apr 2011, 05:16 AM

Thank you

I'm using VB. So, used this code:

TryCast(RadPageView1.ViewElement, RadPageViewBackstageElement).ItemContainer.MinSize = New Size(200, 0)
at Form_Shown event.

For conversion of your code (C#) to VB, I used Telerik Converter

0
Akhil
Top achievements
Rank 1
answered on 14 Apr 2011, 12:02 PM

Sorry to ask, but is there a workaround during design time ? Because when I placed controls in each page and at runtime, it will be shifted a bit to the left. Because we are changing the size at runtime !

Is there any way to solve this, ie. to change the size at design time ?

0
Accepted
Ivan Todorov
Telerik team
answered on 15 Apr 2011, 05:55 PM
Hello Akhil,

Yes, there is a way to set this at design time. To do so, click on the smart tag menu of the page view and select 'Edit UI Elements'. A form with the control's hierarchy will open. Please check the attached screenshot to see how to set the MinSize property at design time.

Hope this helps. Feel free to contact me if you have any additional questions.

All the best,
Ivan Todorov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Akhil
Top achievements
Rank 1
answered on 21 Apr 2011, 03:19 PM

Thanks ivan :-)

That was easy. I have never bothered to check that facility until you have mentioned it.

And sorry for being late.

Tags
General Discussions
Asked by
Akhil
Top achievements
Rank 1
Answers by
Akhil
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or