TabStrip.SizeInfo not changing the size.

3 posts, 0 answers
  1. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 28 Apr 2015 Link to this post

    After docking a Tool Window i set the TabStrip.SizeInfo.Absolute size. But whenever i run the application the size never changes.
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 29 Apr 2015 Link to this post

    Hello Hugues,

    Thank you for writing.

    You need to set both SizeMode and AbsoluteSize properties:
    window4.TabStrip.SizeInfo.SizeMode = SplitPanelSizeMode.Absolute;
    window4.TabStrip.SizeInfo.AbsoluteSize = new Size(150, 0);

    Here you can find an example: http://www.telerik.com/help/winforms/dock-object-model-example-building-an-advanced-layout-at-runtime.html.

    I hope this helps.

    Regards,
    Stefan
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hugues
    Hugues avatar
    54 posts
    Member since:
    Sep 2014

    Posted 30 Apr 2015 in reply to Stefan Link to this post

    Thanks Stefan, it works now.
Back to Top