I’m creating a logger application thing to learn WPF, and I want new messages to appear at the bottom of a scrollviewer every time some listener picks up a new message. I want each message to create something that looks like this:
==================================
= Source | Message =
= | =
= | =
==================================
I’ve got 2 WPF books here, and they both have “warnings” saying that there are other simpler and better mechanisms than custom/user controls in most cases. I was wondering if this can be solved using control templates, and if so, what control type should I use as a base?
Try using using a
ListViewand setting its View to aGridView.Refer: How to: Display ListView Contents by Using a GridView