ContentPresenter.BackgroundSizing 属性

定义

获取或设置一个值,该值指示背景相对于此元素边框的延伸距离。

public:
 property BackgroundSizing BackgroundSizing { BackgroundSizing get(); void set(BackgroundSizing value); };
BackgroundSizing BackgroundSizing();

void BackgroundSizing(BackgroundSizing value);
public BackgroundSizing BackgroundSizing { get; set; }
var backgroundSizing = contentPresenter.backgroundSizing;
contentPresenter.backgroundSizing = backgroundSizing;
Public Property BackgroundSizing As BackgroundSizing

属性值

枚举的一个值,该值指示背景的扩展距离。 默认值为 InnerBorderEdge

注解

可以将此属性设置为 OuterBorderEdge ,使元素的背景在边框下扩展。 如果边框是透明的,背景将通过它显示。

适用于

另请参阅