ListViewItemPresenter.SelectedBackground 属性

定义

获取或设置用于呈现选定项的背景的画笔。

public:
 property Brush ^ SelectedBackground { Brush ^ get(); void set(Brush ^ value); };
Brush SelectedBackground();

void SelectedBackground(Brush value);
public Brush SelectedBackground { get; set; }
var brush = listViewItemPresenter.selectedBackground;
listViewItemPresenter.selectedBackground = brush;
Public Property SelectedBackground As Brush
<ListViewItemPresenter SelectedBackground="themeResourceReference"/>

属性值

用于呈现选定项的背景的画笔。

注解

有关 XAML 语法的说明

显示的 XAML 用法用于引用主题资源。 这是通常定义演示者的 Brush 值的方式,以便在主题更改时更改这些值,并且可能使 Brush 值可由不同的模板共享。 使用直接引用 Brush 值的 XAML 语法是可能的,但不太常见。 有关 Brush 的直接 XAML 用法示例,请参阅 Brush 类主题中的 XAML 部分。

如果要将此属性设置为自定义 GridViewItemPresenter 上的属性,请在显示的 XAML 用法中替换自定义类的前缀名称。

适用于

另请参阅