Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to fit a checkbox in DataGrid cell in WPF

$
0
0

Hi,

  I am facing a problem while rendering check box in DataGrid cell . When the row height has been changed , check box is not rendering accordingly and there is no change in check box height at all. The reason here is in XAML file I have hard coded the height of the check box. So as a result the height of the check box remains same for all cases.

 Now my requiremt is I have to bind the row height as the height of the check box so that change in the row height automatically changes check box height as well and finally check box should be well fit in DataGird cell.

 Could you please help me how can I map the the row hieght as the height of the check box?

Thanks in Advance,

Brahmaji.

 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>