Disable resizing of RadOutlookBar in a RadPane

3 posts, 1 answers
  1. Pierre
    Pierre avatar
    23 posts
    Member since:
    Oct 2015

    Posted 18 Dec 2015 Link to this post

    How can I prevent changing the width of the RadOutlookBar inside a RadPane?

    What I did for now is to process SizeChanged event and force the RadOutlookBar's Width property to the Width of its LogicalTreeHelper.GetParent() but it's still possible to have the mouse catch the edge of the RadOutlookBar instead of the RadPane parent's splitter which gives the illusion that the splitter won't move.  Is there a better way to do this?

     

  2. Answer
    Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 22 Dec 2015 Link to this post

    Hello Pierre,

    The RadoutlookBar exposes a property which controls whether you can resize it то Left and Right which is the thing you want to disable if I understand you correctly. You can do that by setting the IsVerticalResizerVisible property to "False", doing so you will not see and be able to resize the RadOutlookBar using that resizer.

    I hope this information helps.

    Kind regards,
    Kiril Vandov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Pierre
    Pierre avatar
    23 posts
    Member since:
    Oct 2015

    Posted 22 Dec 2015 Link to this post

    Oh, that's what it's for?  To me, the "vertical resizer" was the bar that splits the visible panel with the collapsed panels that allows to set the vertical size of the visible panel.  That's why I had discarded that property without even trying it.  I would have called the property "CanChangeWidth" or something more obvious.

     Nevertheless, it works.  Thanks.

     

Back to Top