我正在尝试将StandardEventLevel
显示为文字,但我不明白该怎么做。
我的XAML代码(级别为StandardEventLevel
枚举):
<ListView x:Name="eventsView"
Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"
MouseDoubleClick="eventsView_MouseDoubleClick" >
<ListView.View>
<GridView>
<GridViewColumn Width="Auto"
Header="Level"
DisplayMemberBinding="{Binding Level}"/>
</GridView>
</ListView.View>
</ListView>