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
2009-10-19 18:40:02