The problem is that RelativeSource does not work in the following case. I use silverlight 5.
RelativeSource
//From MainPage.xaml
You can make small hack: setup DataContext via resources.