You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a grid in the ItemTemplate or the DetailsTemplate of the MasterDetailsView, it does not work as expected. Consider this example based on the SampleApp.
Expected behaviour of the first column is to stretch (indicated with Width="*") to the next column. However, this does not work in the ItemTemplate/DetailsTemplate: the Button is placed immediately after the first column, whose width is based on its child item with the highest width.
The same appears to occur with RowDefinitions and Height.
The text was updated successfully, but these errors were encountered:
The MasterDetailsView does use a ListView for the Master portion. The behavior you are experiencing is the default behavior for a ListView. You can override this by modifying the style of the ListViewItem within your page.
Example:
@skendrot Thank you very much. Modifying the style of the ListViewItem resolved my issue. I used another custom control (also using ListView) of my own before and never had this issue, but I guess somewhere I did set that style manually as well.
Regarding the DetailsTemplate, I looked again with a fresh mind and the cause was a property on the grid which I had overlooked a lot of times trying to analyse the cause. Whoops... I'll close this issue now :-).
When creating a grid in the ItemTemplate or the DetailsTemplate of the MasterDetailsView, it does not work as expected. Consider this example based on the SampleApp.
Expected behaviour of the first column is to stretch (indicated with
Width="*"
) to the next column. However, this does not work in the ItemTemplate/DetailsTemplate: the Button is placed immediately after the first column, whose width is based on its child item with the highest width.The same appears to occur with RowDefinitions and Height.
The text was updated successfully, but these errors were encountered: