+4  A: 

There is a bug in the toolbar, if you re-size the window, the problem goes away.

The solution is using another control, like:

public class WorkaroundToolBar : ToolBar
{
    private delegate void IvalidateMeasureJob();

    public override void OnApplyTemplate()
    {
        Dispatcher.BeginInvoke(new IvalidateMeasureJob(InvalidateMeasure), 
                                     DispatcherPriority.Background, null);
        base.OnApplyTemplate();
    }
}

Check out this thread for more info

Eduardo Molteni
Unfortunately, this didn't work. You are right though, when I resize the screen, the buttons appear as expected.
Rick Kierner
Works in my machine, try this barebones sample I made http://www.bizcacha.com/public/WpfApplication3.rar
Eduardo Molteni
This solution didn't work directly for me either. I haven't checked your supplied sample though.
Oskar
Sorry Eduardo, my bad. This solution works. I forgot to replace `<ToolBar.ItemTemplate...` with `<WorkaroundToolBar.ItemTemp...` as well.
Oskar
Unfortunately this does not work completely. If the button-collection is empty at first, the application is launched and some buttons are added dynamically by code later the (Workaround)ToolBar is still visually invalid. It looks just like the screenshot above and redraws correctly as soon as the window is resized. Any more hints?
Buthrakaur
@Buthrankaur: Not tested, but I think that you may call the `IvalidateMeasureJob` again when you add buttons.
Eduardo Molteni
+1  A: 

You can also set the height of the toolbar in the xaml to a reasonable value which has worked for me.

Recep