Hide grid row in WPF

前端 未结 8 1489
旧巷少年郎
旧巷少年郎 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:30

    For reference, Visibility is a three-state System.Windows.Visibility enumeration:

    • Visible - The element gets rendered and participates in layout.
    • Collapsed - The element is invisible and does not participate in layout. Effectively giving it a height and width of 0 and behaving as if it doesn't exist.
    • Hidden - The element is invisible but continues to participate in layout.

    See this tip and other tips on the WPF Tips and Tricks thread.

提交回复
热议问题