xamarin/Xamarin.Forms

StyleSheet is not working in TableView

Open

#6,563 opened on Jun 18, 2019

 (3 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/CSSa/listviewe/3 :clock3:help wantedinactivet/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

StyleSheet is not working in TableView,

Steps to Reproduce

  1. I add a css file in /Assets/styles.css ,and includee in App.xaml <ResourceDictionary> <StyleSheet Source="/Assets/styles.css" /> </ResourceDictionary>

2.write code in page image 3.write css in styles.css image

4.run application image

Expected Behavior

StyleSheet in TableView.ViewCell should work.

Actual Behavior

Only works outside the TableView

Basic Information

  • Version with issue: vs 2019 version 16.1.3 Xamarin.Forms 4.0.0.482894
  • Last known good version:
  • IDE:
  • Platform Target Frameworks:
    • iOS: Not tested
    • Android: 9.0
    • UWP: Not tested
  • Android Support Library Version: 28.0.1
  • Nuget Packages:
  • Affected Devices:

Screenshots

Reproduction Link

Contributor guide