C# wpf --- This is a "continuation" of c-sharpcorner.com/forums/how-do-change-the-background-color-on-one-listbox-item-continued-sharp3.
This code
C#
results in
C#
The property "Value" is missing.
The property 'Condition' does not exist in XML namespace.
Rohini ParadeRank #1,014 · 1.9K reputationPosted Mar 16, 2024, 9:45 PM EDT
Try this
Color="Transparent"/>
------------------------
ItemContainerStyle="{StaticResource myLBStyle}">
If you want to highlight selected item
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 17, 2024, 2:48 PM EDT
Conditioninstead ofValuewithin theTrigger. In XAML, triggers useValueto specify the condition for activation.Condition. It doesn't exist within the relevant XML namespaces for XAML triggers.Triggerelement, changeCondition="True"toValue="True". This accurately sets the condition for the trigger to activate when theIsSelectedproperty of theListBoxItemis true.