xamarin/Xamarin.Forms
Binding not working in titleview using xamarin.forms ios but works in android
Open
#4,520 opened on Nov 23, 2018
a/binding ⛓a/titleviewe/2 :clock2:good first issuehelp wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs
Repository metrics
- Stars
- (5,644 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
I am using xamarin.forms (3.3.0.967583) version for developing application. In xamarin.forms iOS application I am unable to bind property from MVVM to xaml in titleview. But its working in Android application. I am not going to attach my code. I also see other related issues but not helping. See below sample code.
<NavigationPage.TitleView>
<StackLayout HorizontalOptions="Start"
VerticalOptions="Center"
Margin="0"
Padding="{OnPlatform iOS='25,0,0,0', Android=0}">
<Label
Text="{Binding SelectedProduct.Title,
Mode=TwoWay}"
TextColor="White"
FontSize="{StaticResource LargeFontSize}"
FontFamily="{StaticResource OpenSansRegular}"
VerticalTextAlignment="Center" />
</StackLayout>
</NavigationPage.TitleView>