<DockPanel Margin="0,55,0,0" > <ListView x:Name="listName" > <ListView.View > <GridView x:Name="li"> <GridViewColumn x:Name="lis" Header="任务名称" Width="120" DisplayMemberBinding="{Binding projectName}" /> <GridViewColumn Header="负责人" Width="80" DisplayMemberBinding="{Binding principal}" /> <GridViewColumn Header="总时间" Width="80" DisplayMemberBinding="{Binding totaltime }" /> <GridViewColumn Header="完成度" Width="80" DisplayMemberBinding="{Binding Finish}" /> </GridView> </ListView.View> </ListView> </DockPanel>
修改 GridViewRow 模板,设置 Height.
还请说详细一点,我刚解除wpf 不怎么会。
@豌豆夹: <GridViewColumn Header="负责人" Width="80" Height="80"/>
@Launcher: <GridViewColumn Header="负责人" Width="80" Height="80"/> 没有这个属性的。。
@豌豆夹: <ListView>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="Height" Value="50" />
</Style>
</ListView.ItemContainerStyle>
</ListView>