Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
Stretch ExpandableFieldRecordPresenter vertically.
posted

How can I stretch ExpandableFieldRecordPresenter vertically such that it will occupy whole width of XamDataGrid.

I was unable to find any property in XamDataGrid but by using Snoop utility I've found that I need to set HorizontalAlignment=Stretch on ExpandableFieldRecordPresenter and on ancestor element named PART_NestedContentSite, on the latter I also had to set Grid.ColumnSpan=3.

I am currently using attached property with changed handler that walks visual tree and does what is needed but it's a hack.