9 references to DefaultPadding
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (9)
393ribbonTabHeader.Padding = ribbonTabHeader.DefaultPadding; // Always do first meassure with default padding 394double tabHeaderPadding = ribbonTabHeader.DefaultPadding.Left + ribbonTabHeader.DefaultPadding.Right; 447double leftPadding = Math.Max(0, ribbonTabHeader.DefaultPadding.Left - (isContextualTab ? reducePaddingContextualTabHeader : reducePaddingRegularTabHeader)); 448double rightPadding = Math.Max(0, ribbonTabHeader.DefaultPadding.Right - (isContextualTab ? reducePaddingContextualTabHeader : reducePaddingRegularTabHeader)); 449ribbonTabHeader.Padding = new Thickness(leftPadding, ribbonTabHeader.DefaultPadding.Top, rightPadding, ribbonTabHeader.DefaultPadding.Bottom); 506elementSize = elementSize - tabHeader.DefaultPadding.Left - tabHeader.DefaultPadding.Right;