Reduce the width of left pane of BackStageView

7 posts, 2 answers
  1. Akhil
    Akhil avatar
    38 posts
    Member since:
    Jul 2010

    Posted 10 Apr 2011 Link to this post

    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

  2. Akhil
    Akhil avatar
    38 posts
    Member since:
    Jul 2010

    Posted 12 Apr 2011 Link to this post

    Any ideas ?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 12 Apr 2011 Link to this post

    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
  5. Akhil
    Akhil avatar
    38 posts
    Member since:
    Jul 2010

    Posted 13 Apr 2011 Link to this post

    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

  6. Akhil
    Akhil avatar
    38 posts
    Member since:
    Jul 2010

    Posted 14 Apr 2011 Link to this post

    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 ?

  7. Answer
    Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 15 Apr 2011 Link to this post

    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
  8. Akhil
    Akhil avatar
    38 posts
    Member since:
    Jul 2010

    Posted 21 Apr 2011 Link to this post

    Thanks ivan :-)

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

    And sorry for being late.

Back to Top
UI for WinForms is Visual Studio 2017 Ready