Hide grid row in WPF

前端 未结 8 1488
旧巷少年郎
旧巷少年郎 2020-12-02 15:21

I have a simple WPF form with a Grid declared on the form. This Grid has a bunch of rows:


    

        
8条回答
  •  囚心锁ツ
    2020-12-02 15:29

    Simply do this:
    rowToHide.Height = new GridLength(0);

    if u will use visibility.Collapse then u have to set it for every member of the row.

提交回复
热议问题