开发者

WPF ListView Headers

开发者 https://www.devze.com 2022-12-24 09:34 出处:网络
I was wondering, Most wpf list view the header/columns are movable. Is it possible开发者_如何学C so that we can make them non-draggable or movable at all?

I was wondering, Most wpf list view the header/columns are movable. Is it possible开发者_如何学C so that we can make them non-draggable or movable at all? does anyone know what this property is called by any chance?

Thanks in advance!


MSDN is your friend ;)

  • ListView on MSDN
  • GridView on MSDN
  • GridView.AllowsColumnReorder on MSDN

Specifically, the property you're looking for is the GridView.AllowsColumnReorder

<ListView>
  <ListView.View>
    <GridView AllowsColumnReorder="true">
    <!-- content -->
    </GridView>
  </ListView.View>
</ListView>
0

精彩评论

暂无评论...
验证码 换一张
取 消