Hello @Louie88 ,
There is not a Style
property for the TextCell . To apply a Style
, the target object must be a VisualElement
that matches the TargetType property value of the Style, please see Style apps using XAML - .NET MAUI | Microsoft Learn
However, you can check the inheritance of TextCell : Object ->BindableObject->Element->Cell->TextCell
If you want to style the TextColor
/DetailColor
for a TextCell
, you have to customize a View cell that contains two Labels for displaying primary and secondary text, so that it looks like a TextCell
. Then you can add style to the Label
.
In addition, there is a known issue reported at Xamarin Repo- Bug Setting style on TextCell does not take effect #8755, you could follow the progress.
(Note: there is no official doc in MAUI, some APIs are Xamarin.Forms )
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.