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

Debug Output shows binding issue that shouldn't exist when binding ListView

$
0
0

I'm getting the following notes in my Debug Output

2014-06-18 10:28:50.147 FormsTemplateiOS[31060:70b] Binding: 'Title' property not found on 'FutureState.AppCore.ViewModels.NavigationViewModel', target property: 'Xamarin.Forms.Label.Text'
[0:] Binding: 'Title' property not found on 'FutureState.AppCore.ViewModels.NavigationViewModel', target property: 'Xamarin.Forms.Label.Text'

In my codebehind, I'm binding the navigationViewModel to my MainMenu, and in my MainMenu I have a ListView

    <ListView
        x:Name="ModuleList"
        x:FieldModifier="public"
        ItemsSource="{Binding Modules}">

        <ListView.ItemTemplate>
            <DataTemplate>
                <ViewCell>
                    <ViewCell.View>
                        <StackLayout Orientation="Vertical">
                            <Label Text="{Binding Title}" />
                        </StackLayout>
                    </ViewCell.View>
                </ViewCell>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>

Title binding is working as expected, and I see the Title Label in the ListView, however, it appears as though Xamarin.Forms is ALSO trying to bind that Title directly to the NavigationViewModel. I presume this is unnecessary perf overhead.

I've attached a working REPRO, just read the Output when you debug on Android.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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