GridViewItemPresenter.DisabledOpacity Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the opacity of an item that is disabled.
public:
property double DisabledOpacity { double get(); void set(double value); };
double DisabledOpacity();
void DisabledOpacity(double value);
public double DisabledOpacity { get; set; }
var double = gridViewItemPresenter.disabledOpacity;
gridViewItemPresenter.disabledOpacity = double;
Public Property DisabledOpacity As Double
<gridViewItemPresenterDisabledOpacity="themeResourceReference"/>
- or -
<gridViewItemPresenter DisabledOpacity="double"/>
Property Value
double
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.