An alternative would be to have two controls bound to the same thing and control which is visible. Then just switch between them (can also be done via a binding and converter)
On Sat, Jun 16, 2012 at 12:50 PM, Greg Keogh <[email protected]> wrote: > Would you consider using a ListBox, and just swapping between two ItemsPanel > templates? One a StackPanel (the default) and one a WrapPanel? I’ve just > never done that at runtime… > > > > I’d prefer to use a real grid for the details view, as it has fancy features > like selected row template, column clicking, etc. > > > > However, you’ve reminded me that the ListBox probably can be re-templated to > use a WrapPanel is its container and the items can be converted into things > that looks like address labels. I think a lot of people forget that you can > completely subvert familiar WPF controls and turn them into other weird > appearances. > > > > I guess a starting point would be to extract the template of the standard > ListBox and see how it works and how I can change it (and break it). > > > > I just have to find an example of someone who’s done something like you > describe with a ListBox and its items, then I can coax it over to what I > want. Any samples you’ve seen? I’ll go looking now. > > > > Greg > > > > > _______________________________________________ > ozwpf mailing list > [email protected] > http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf > _______________________________________________ ozwpf mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf
