Я пытаюсь привязать команду при использовании bindableLayout.ItemTemplateSelector и не могу заставить ее работать. для простоты у меня есть:
MainPage
<StackLayout
x:Name="MyItems"
BindableLayout.ItemsSource="{Binding Items}"
BindableLayout.ItemTemplateSelector = "{StaticResource MyItemSelector}"
Orientation="Horizontal">
</StackLayout>
Template
<buttons:Button
Command="{Binding Source={x:Reference Name=MyItems}, Path=ParentContext.MyButtonCommand}"
CommandParameter="{Binding .}"/>
Вышеуказанное не работает и вылетает .Какой синтаксис мне нужен?
спасибо