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