Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Relative binding in C#?

$
0
0

Hi to all.

I am implementing a custom **ViewCell **in code, and I want to bind the Command property of a button inside the ViewCell to a command in my ViewModel.

In XAML, I can do it:

<Button Text="Ok" Command="{Binding Path=BindingContext.ChosenItemCommand, Source={x:Reference Name=ItemsListView}}"/>

But how can I do this with C#?

Thanks.


Viewing all articles
Browse latest Browse all 77050

Trending Articles