I have a listbox with the ItemsPanelTemplate set to UniformGrid with rows= 6 and cols= 7.
I want the listbox items to fill their space.
I am using a datatemplete defined in a dictionary.
The outer control of my template is a Border with HorizontalAlignment=Stretch and VerticalAlignent=Strectch but the templates do not fill the listbox items space?
Any ideas? Malcolm
The answer to this to set HorizontalContentAligment and VerticalContentAlignment to Stretch on the LISTBOX not the datatemplate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With