Hello @aluzi liu,
I have tested that the ItemTemplate property can be changed dynamically using the WinUI-Gallery sample(MessageViewTemplate -> null).
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a WinUI3 C# project, I use a ListView to display data.
I have total of 5 type of data, so I create 5 ListViewItem template, use it when window size less than 800px;
If window size is greater than 800px, I need to use another 5 type template to show data.
My requirement is when size exceed 800px, the item in the listview can automatically change to large size template.
So how to do it?
Hello @aluzi liu,
I have tested that the ItemTemplate property can be changed dynamically using the WinUI-Gallery sample(MessageViewTemplate -> null).