Ribbon slowing down typing + CPU load

Ribbon for WPF Forum

Posted 14 years ago by Radu

We noticed the typing performance in our app is very low... and the CPU load gets very high. That's not the case in a standard WPF app.

Using a very simple test app that has ONLY a Ribbon we could reproduce the behavior:

<ribbon:RibbonWindow x:Class="WpfApplication1.MainWindow"
        Title="MainWindow" Height="350" Width="525">
        <ribbon:Ribbon DockPanel.Dock="Top"
            <ribbon:Tab Label="A">
                <ribbon:Group Label="Edit">
                    <TextBox Width="500"/>
            <ribbon:Tab Label="B"/>
            <ribbon:Tab Label="C"/>

Start typing quite fast something in the TextBox and in the meanwhile watch CPU load...
Having a Ribbon with a lot of buttons inside makes also the caret in the TextBox to be displayed a bit delayed compared with the current typing position.

Any advice?


[Modified at 05/25/2010 05:17 AM]

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA

I ran your sample and didn't notice any real slowdowns. I was banging on the keyboard pretty hard and it still was fast for me. Further I used dotTrace to performance profile the application and it didn't show any of our code as being in the code hotspots.

I'd be interested to see if putting the TextBox in a native WPF ToolBar control yields some CPU load as well. Perhaps it's due to the TextBox being in a separate focus scope. Both Ribbon and ToolBar use separate focus scopes from the normal focus scope.

If that doesn't help then you can try running dotTrace or another performance profiler yourself.

Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.