309 views
in GUI Development by
how to set background color at runtime in verticallist.

1 Answer

0 votes
by

Hello GuruRamesh,

you can simply arrange a Filled Rectangle behind the Vertical List. Or, if the Vertical List is configured to use your own Item Class, the Items can determine their own background. Which option you  select depends in fact on your application case.

Best regards

Paul Banach

by
Thank you for the suggestion.when  i select particular value that data  i want to apply color.then where i have to add code
by
Hello GuruRamesh,

I'm sorry, but I don't understand your question.

Best regards

Paul Banach
by
Hi Paul Banach,

     I have added list of items in vertical list like option 1,option2 ....when i select option 2 -i want to change backgroundcolor in option2 only not other options.

  i want to apply color in selected item only from verticallist.
by

Hello GuruRamesh,

please see following documentation sections:

Select an item within the list

Common component states (in particular the state Selected)

I hope it helps you further

Best regards

Paul Banach

by
Yes i got it.but verticallist class dont have color property.then how i add color.

 

With Regards,

Ramesh.G
by

Hello Ramesh,

no, Vertical List is designed to be universal for different application cases. The aspect of color, font, etc. is a detail of the used Item Class. I recommend you the chapter Vertical List. Especially the sections Specify the class of the items within the list and Select an item within the list. The last one contains also an example demonstrating the idea.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...