问题描述:如题
解决方法:
if (_isBatch == false )
{
_isBatch = true;
ListHeignt.Height = new GridLength(120, GridUnitType.Pixel);
btnBatch.Content = "取消批量操作";
}
else
{
_isBatch = false ;
ListHeignt.Height = new GridLength(0, GridUnitType.Pixel);
btnBatch.Content = "批量操作";
}