Gridsplitter stretch limits - WPF

Sumeru Suresh picture Sumeru Suresh · Jun 30, 2009 · Viewed 7k times · Source

I would like to set some limits/boundaries on the amount of pixels we can stretch a gridsplitter control which is inside a grid.How is this possible? Basically one should not be allowed to pull the gridsplitter to large limits(it should be restricted to smaller grid boundaries)

Answer

Kent Boogaart picture Kent Boogaart · Jun 30, 2009

You could use MinWidth and MaxWidth on the ColumnDefinition class.