Strange behavior when resizing with Horizontal splitter items added at runtime

4 posts, 0 answers
  1. Luc
    Luc avatar
    11 posts
    Member since:
    Feb 2013

    Posted 03 Jul 2015 Link to this post

    Hi,

    I'm using the lastest version of telerik version 2015.2.623.45 with implicit theme.

    I'm able to add items to outlookbar at runtime by adding view in the Items collection of OutlookBar. But when the items are added or when i'm playing with the outlookbar horizontal splitter, the control never accept my first resizing and i'm always mandatory to do operation twice to be able to resize correctly the area.

    You can found a sample here.

    To reproduce :

    1- Click many times on the button in the right side. It adds view to the outloobar in the left side.

    2- Try to collapse new header with the horizontal splitter. For samples collapse two rows and release the mouse button.

    3- The area is automatically resize to original size. 

    4- Repeat exactly same operation works.

     

    Can you help me ?

    Thanks

    Regards

    Luc

     

  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 07 Jul 2015 Link to this post

    Hi Luc,

    Thank you for sharing the sample and for the steps to reproduce the issue. I was able to do so. Looking at the code it seems there is an issue and this is why I will forward this to our developers for further investigation. In the meantime there is a workaround you could use.

    Add a single item to the outlookbar at first - in the MainWIndow constructor for instance. Then remove it by attaching to the Loaded event. This would look like the snippet below:
    public MainWindow()
    {
        InitializeComponent();
        AddItem();
        this.outlookBar.Loaded += outlookBar_Loaded;
    }
     
    void outlookBar_Loaded(object sender, RoutedEventArgs e)
    {
        this.outlookBar.Items.Clear();
    }
    This is will prevent the breaking of the outlookbar minimization when using the splitter.

    Hope this helps.

    Regards,
    Peshito
    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. Luc
    Luc avatar
    11 posts
    Member since:
    Feb 2013

    Posted 08 Jul 2015 in reply to Peshito Link to this post

    Hi Peshito,

     Even if it's not elegant your workaround works. Can wait issue fix with that.

    Regards

    Luc

  5. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 13 Jul 2015 Link to this post

    Hi Luc,

    I am glad the workaround worked well. As for the issue and its fix I found there is already an item that is logged in our public feedback system. You can track its progress and vote for it using the link below:
    http://feedback.telerik.com/Project/143/Feedback/Details/136995-horizontal-splitter-does-not-preserve-its-position

    Regards,
    Peshito
    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
Back to Top