I am currently experiencing a problem with ListView.
When I display the list view, i saw the model not the property (cf: image)
enter image description here
This is my XAML :
<ListView ItemsSource="{Binding LinkedProject.LinkedAutomateListVM.Automates}" Margin="8">
<ListView.ItemContainerStyle>
<Style BasedOn="{StaticResource MaterialDesignListBoxItem}" TargetType={x:TypeListViewItem}">
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}"/>
</Style>
</ListView.ItemContainerStyle>
<ListView.View>
<GridView>
<GridViewColumn
DisplayMemberBinding="{Binding Designation}" Header="Designation" />
<GridViewColumn
DisplayMemberBinding="{Binding IpAddress}" Header="IP Address" />
</GridView>
</ListView.View>
</ListView>
This appends since i have had the BasedOn Property.
When i remove the BasedOn Property, that work’s well but i didn’t have the material design style.
New contributor
Quentin Chaumet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.