question

Angelru-4290 avatar image
0 Votes"
Angelru-4290 asked Angelru-4290 commented

macOS ListView VisualStateManager

This doesn't work in a macOS app, how can I change the background color of a selected item in a ListView in macOS cocoa?

dotnet-xamarin
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Angelru-4290 , Visual State Manager is in Xamarin.Forms. If you create a macOS cocoa app, it may be the tableview or the Collection Views in Xamarin.Mac. We need to customize the cell. It's easier to help you if you share more information and some code snippets with me.


0 Votes 0 ·

Add macOS cocoa app to Xamarin Forms and use Xamarin Forms ListView.

0 Votes 0 ·

I'm not clear how did you add macOS cocoa app to Xamarin Forms. But I have to say, Xamarin.Forms utilizes platform renderers to convert the cross-platform UI elements into native controls on Xamarin.Android, Xamarin.iOS and UWP. And Xamarin.Mac exposes the complete macOS SDK for .NET developers to build native Mac applications using C#.
See https://docs.microsoft.com/en-us/xamarin/get-started/what-is-xamarin-forms
https://docs.microsoft.com/en-us/xamarin/mac/

0 Votes 0 ·
Show more comments

0 Answers