-
绑定自身属性
{Binding Source={RelativeSource Self}, Path=WidthRequest}1
<ImageButton Aspect="Fill" HeightRequest="60" WidthRequest="{Binding Source={RelativeSource Self}, Path=HeightRequest}" />
CommandParameter绑定控件对象,使用CommandParameter="{Binding Source={RelativeSource Self}}"。
1
<TapGestureRecognizer Command="{Binding GoHomeCommand}" CommandParameter="{Binding Source={RelativeSource Self}}"/>