xamarin/Xamarin.Forms

Binding not working in titleview using xamarin.forms ios but works in android

开放

#4,520 创建于 2018年11月23日

 (5 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/binding ⛓a/titleviewe/2 :clock2:good first issuehelp wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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>

贡献者指南