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

Strange behavior when resizing with Horizontal splitter items added at runtime

3 Answers 104 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
Luc
Top achievements
Rank 1
Luc asked on 03 Jul 2015, 01:01 PM

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

 

3 Answers, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 07 Jul 2015, 02:00 PM
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
0
Luc
Top achievements
Rank 1
answered on 08 Jul 2015, 12:17 PM

Hi Peshito,

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

Regards

Luc

0
Peshito
Telerik team
answered on 13 Jul 2015, 10:55 AM
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
Tags
OutlookBar
Asked by
Luc
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Luc
Top achievements
Rank 1
Share this question
or