ListViewItemPresenter.SelectedForeground 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 brush used to render the foreground of an item that's selected.
public:
property Brush ^ SelectedForeground { Brush ^ get(); void set(Brush ^ value); };
Brush SelectedForeground();
void SelectedForeground(Brush value);
public Brush SelectedForeground { get; set; }
var brush = listViewItemPresenter.selectedForeground;
listViewItemPresenter.selectedForeground = brush;
Public Property SelectedForeground As Brush
<ListViewItemPresenter SelectedForeground="themeResourceReference"/>
Property Value
The brush used to render the foreground of an item that's selected.
Remarks
Notes on XAML syntax
The XAML usage shown is for referencing a theme resource. This is how Brush values for a presenter are typically defined, so that the values can be changed when the theme changes, and potentially so that Brush values can be shared by different templates. It's possible but less common to use a XAML syntax that refers to a Brush value directly. For examples of direct XAML usages for a Brush, see the XAML section in the Brush class topic.
If you're setting this property as an attribute on a custom ListViewItemPresenter , substitute the prefixed name of your custom class in the XAML usage shown.
Applies to
See also
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: