正如标题所说,我想将List视图绑定到List
X有多个布尔属性,我想在绑定时显示"死"或者" Alive"取代False / True。
我该怎么做?
<ListView Name="ListDisplay" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" ItemsSource="{Binding}">
<ListView.View>
<GridView AllowsColumnReorder="True">
<GridViewColumn Width="100" Header="Status" DisplayMemberBinding="{Binding Alive}"/>
</GridView>
</ListView.View>
</ListView>