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

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 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>