I’m busy with a realtime event list and I created a containercontrol with 2 labels (date/time & header of event), 1 canvas (for event kind icon) and a textbox for more detailed information. The ContainerControl is 704w x 100h. In my project I created a listbox with rows of the same sizes and each row will be separated by a thin double line.
When I drag the Container control into the listbox it looks like it gets embedded in the listbox. When I move the listbox to right or left, the container control moves with it.
Now I try to do the same with code, so I can add and delete rows at runtime. Somehow this will not work for me. I read through the docs, searched on the internet, but I cannot find anything on how to add the container control
Does somebody have an idea how to do this? Is it possible anyway?