benruehl / adonis-ui

Lightweight UI toolkit for WPF applications offering classic but enhanced windows visuals
https://benruehl.github.io/adonis-ui/
MIT License
1.73k stars 145 forks source link

ListView - Content not rendered #68

Closed Swiftpaws closed 4 years ago

Swiftpaws commented 4 years ago

Describe the bug Seems like the ListViewItem style is causing some issues with the rendering of the listview item content. The text is not visible at all

To Reproduce In my test project I boiled the issue down to the ListViewItem style https://github.com/Swiftpaws/Adonis-ListViewBug

benruehl commented 4 years ago

At the moment, the list view style expects the list view to have a grid view assigned. So adding the following to your demo makes it work:

<ListView.View>
    <GridView>
        <GridViewColumn Header="Content"
                        DisplayMemberBinding="{Binding Content}" />
    </GridView>
</ListView.View>