I show some items from the database in the list and I want the user to be able to mark some of them as favorites. The best way would be to show some star icon for user to click on which then would turn into slightly different star to indicate that the item is now favorite. What controls should I use for those stars? Could I bind them to some boolean property of the item?
Share
You can also use vector graphics to achieve this without using png icons.
I created this style a while a go, basically it is for
CheckBoxbut I think it also works forToggleButtonby simply changing theTargetTypefromCheckBoxtoToggleButton.By setting the
IsCheckedof eitherCheckBoxorToggleButtontoTrue, the star will be filled with the accent color of the phone.The Style
Apply the style
How they look