Bug 36415 - Overriding Listview and setting Caching strategy in Xaml breaks XamlC. Forms V2.0.0.6487
Summary: Overriding Listview and setting Caching strategy in Xaml breaks XamlC. Forms ...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-12-01 12:15 UTC by FieldstrikeMobile
Modified: 2015-12-01 12:29 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description FieldstrikeMobile 2015-12-01 12:15:34 UTC
Overriding `ListView` and using it in Xaml with the `CachingStrategy` property set breaks `XamlC`

    public class ExtendedListView : ListView
        public ExtendedListView()



`<custom:ExtendedListView ItemsSource="{Binding Stuff}" SelectedItem="{Binding SelectedThing}" CachingStrategy="RecycleElement" HasUnevenRows="True"/>`

With the assembly declaration set:

`[assembly: XamlCompilation(XamlCompilationOptions.Compile)] `

gets the following error:

`Error		Position 141:95. No property, bindable property, or event found for 'CachingStrategy'`
Comment 1 Stephane Delcroix 2015-12-01 12:29:41 UTC
See answer https://forums.xamarin.com/discussion/comment/168391/#Comment_168391