maui-linux/Xamarin.Forms.Pages
Peter Moore fa853ff823 RelativeSource Binding (#4375)
RelativeSource Binding

- fixes #3847

Implement RelativeSource binding modes for Self, TemplatedParent, and FindAncestor. Add unit tests. Pare down TemplateBinding class to use RelativeSource binding mechanism.

* Include RelativeSource member in Binding.Clone

* Fix issue of unit tests being tricked by async in Binding.Apply; permit "Source={RelativeSource...}" in addition to "RelativeSource={RelativeSource..."; allow FindAncestor relative binding source mode to be based on BindingContext type or control type

* Fix unit test wasn't actually testing "Source={RelativeSource...}" syntax.

* Address @StephaneDelcroix's comments. Make FindAncestor relative source binding work even when the ancestor changes.

* Much better mechanism for detecting when a parent changes for relativesource

* Cleanup

* more cleanup

* more cleanup

* Remove async/await for identifying templated parent and ancestor type binding source

* Remove unused code; fix linting

* Update Xamarin.Forms.Core/Binding.cs

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>

* Update Xamarin.Forms.Core/Binding.cs

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>

* Update Xamarin.Forms.Core/Binding.cs

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>

* Update Xamarin.Forms.Core/BindingExpression.cs

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>

* Update Xamarin.Forms.Core/BindingExpression.cs

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>

* Update Xamarin.Forms.Core/Binding.cs

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>

* Ensure TemplateBinding works correctly when reparenting. Cleanup.

* Finish addressing comments; linting cleanup

* Remove private modifier where unneeded
2019-07-09 12:10:13 +02:00
..
BaseDataSource.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
CardView.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
CompoundCollection.cs Remove InternalsVisibleTo from Core to XF.Platforms.* (#782) 2017-03-07 14:56:24 -05:00
DataItem.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
DataPage.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
DataSourceBinding.cs [C] do not reapply a Binding with a Source when the Context changes (#983) 2017-11-21 13:59:41 +01:00
DataSourceBindingExtension.cs [Xaml] decorate markup and value providers to speed up inflating (#770) 2017-02-24 09:10:11 +01:00
DataSourceList.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
DataView.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
DirectoryPage.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
HeroImage.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
IDataItem.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
IDataSource.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
IDataSourceProvider.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
JsonDataSource.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
JsonSource.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
JsonSourceConverter.cs [Xaml] decorate TypeConverter for additional check (#909) 2017-11-16 20:15:43 +01:00
ListDataPage.cs RelativeSource Binding (#4375) 2019-07-09 12:10:13 +02:00
ListItemControl.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
PersonDetailPage.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
StringJsonSource.cs Evolve feature branch (#117) 2016-04-24 12:25:26 -04:00
UriJsonSource.cs Azure support (#143) 2016-04-27 14:48:28 -04:00
Xamarin.Forms.Pages.csproj Re-enable "Treat warnings as errors" (#5602) 2019-03-27 18:38:38 +00:00