Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.37 KB

listviewitempresenter_disabledopacity.md

File metadata and controls

36 lines (26 loc) · 1.37 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.Primitives.ListViewItemPresenter.DisabledOpacity
winrt property

Microsoft.UI.Xaml.Controls.Primitives.ListViewItemPresenter.DisabledOpacity

-description

Gets or sets the opacity of an item that is disabled.

-xaml-syntax

<listViewItemPresenterDisabledOpacity="themeResourceReference"/>
- or -
<listViewItemPresenter Opacity="double"/>

-xaml-values

themeResourceReference
themeResourceReferenceA ThemeResource markup extension reference to an existing keyed resource that defines a Double-type resource in a XAML resource dictionary. For example, to reference a resource with the key ListViewItemDisabledThemeOpacity, the string is {ThemeResource ListViewItemDisabledThemeOpacity}.
## -property-value The opacity of an item that is disabled. The value should be between 0 and 1. 0 is no opacity (transparent), 1 is full opacity (renders normally). The effective default value at run-time comes from themes.

-remarks

Notes on XAML syntax

The first XAML usage shown is for referencing a theme resource. This is how values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that values can be shared by different templates.

-examples

-see-also