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