TabControl Convention (DisplayName?)

Nov 29, 2010 at 2:03 PM

I'm using conventions to bind my TabControl to a few Screens. I name my tabcontrol MyScreens, and the ViewModel contains a public List<Screen> named the same with a few Screens in the list.

This works, but how do I change what is displayed in the TabControl header? I was hoping it would use DisplayName.

Thanks,

Chad

Coordinator
Nov 29, 2010 at 2:39 PM

Hmm. It should be using DisplayName...Can you send me a small repro? robertheisenberg at hotmail dot com please :)

Nov 29, 2010 at 2:53 PM

Oops. Stupid mistake on my part. I was creating an instance of the ViewModel and then setting the displayname for that instance, just to test it out. But I was referencing a completely new instance when I added it to my collection.

So it is working fine now. Thanks!

Coordinator
Nov 29, 2010 at 2:56 PM

Cool. Thanks for the update!