Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight TabControl ContentTemplate

I'm struggling to port the following piece of code from WPF to SL:

<

TabControl ...
ItemTemplate={StaticResource someResource}>
ContentTemplate={StaticResource someResource2} />

Apparently the TabControl in SL doesn't contain ContentTemplate binding property.

What's the workaround for this issue? Any hint would be greatly appreciated.

like image 615
user759141 Avatar asked Oct 11 '22 00:10

user759141


1 Answers

I had the same problem and found following solution on the web:

http://vortexwolf.wordpress.com/2011/04/09/silverlight-tabcontrol-with-data-binding/

Works fine for me in conjunction with Caliburn.Micro Bindings.

like image 180
sanosdole Avatar answered Oct 18 '22 02:10

sanosdole