HandyControl发现bug

HandyControl 3.4 以上的版本 ListView  这样写 不显示数据,3.4可以

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Button Content="Add" Click="btnAddClick"></Button>
<ListView Grid.Row="1" Margin="10" Name="lvDataBinding">
<ListView.ItemTemplate>
<DataTemplate>
<WrapPanel>
<TextBlock Text="Name: " />
<TextBlock Text="{Binding Name}" FontWeight="Bold" />
</WrapPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>

posted @ 2024-05-25 20:10  simadi  阅读(22)  评论(0编辑  收藏  举报