WPF ListBox Question
-
I'm working on a contacts list[^] I have 2 questions: 1) I would like to only see the drop shadow when the contact is selected. Of course only one can be selected at any time. 2) How do i get the contact cards to flow across, right to left, then top to bottom? I'm guessing I need to implement a wrap panel, but I'm not sure how to fit it into my item template. Here's my XAML:
-
I'm working on a contacts list[^] I have 2 questions: 1) I would like to only see the drop shadow when the contact is selected. Of course only one can be selected at any time. 2) How do i get the contact cards to flow across, right to left, then top to bottom? I'm guessing I need to implement a wrap panel, but I'm not sure how to fit it into my item template. Here's my XAML:
for your second question try this link. code taken from the link:
<Label Content="{Binding TitleWithYear}"/>
-
for your second question try this link. code taken from the link:
<Label Content="{Binding TitleWithYear}"/>
Ok, that did it - sort of. The cards are listed horizontally intially. When I make the app smaller, they dont't wrap around.
If it's not broken, fix it until it is