// Token: 0x06005822 RID: 22562 RVA: 0x00186884 File Offset: 0x00184A84 private static void OnOverflowModeChanged(DependencyObject element, DependencyPropertyChangedEventArgs e) { ToolBar toolBar = ItemsControl.ItemsControlFromItemContainer(element) as ToolBar; if (toolBar != null) { toolBar.InvalidateLayout(); } }
private static void OnOverflowModeChanged(DependencyObject element, DependencyPropertyChangedEventArgs e) { // When OverflowMode changes on a child container of a ToolBar, // invalidate layout so that the child can be placed in the correct // location (in the main bar or the overflow menu). ToolBar toolBar = ItemsControl.ItemsControlFromItemContainer(element) as ToolBar; if (toolBar != null) { toolBar.InvalidateLayout(); } }