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