Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Calling a Command on Parent from Child

$
0
0

I have a Page:

 <ContentPage  x:Name="MyPage">

The Page references an external xaml via a resource

<ResourceDictionary Source="SomeTemplate.xaml"></ResourceDictionary>

All is fine, but in the external xaml I am trying to reference a **MyPage ** command, but **MyPage ** can't be found - the compiler throws an errors.

<SomeControl TappedCommand="{Binding Source={x:Reference MyPage}, Path=BindingContext.SomeCommand}">

Viewing all articles
Browse latest Browse all 204402

Trending Articles



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