Граф коммитов

225 Коммитов

Автор SHA1 Сообщение Дата
Stephane Delcroix fb76fa2048
[HR] register sourceinfo before triggering change (#10933)
- fixes #10803
2020-06-04 16:41:37 -07:00
Stephane Delcroix b6e323d157
[C/X] Clean API and impl of OnAppTheme (#10592) fixes #10395
* [C/X] Clean API and impl of OnAppTheme

* [C] User override for app theme

- fixes #10395

* fix tests

* Update Xamarin.Forms.Core/Application.cs

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-06-01 12:17:37 +01:00
Gerald Versluis 6c40121e97
Runtime updating of AppTheme values (#10442)
* Make things BindingBase

* Update OnAppTheme.cs

* Runtime updating

* Fixed

* Cleanup

* Update VisualElement.cs

* Update Application.cs

* Fix NRE for unit tests

* Review feedback

* Update Application.cs

fixes #10391
2020-04-28 11:31:44 -07:00
Gerald Versluis c4cf3a68bf
AppTheme fix NRE (#10327)
* Various fixes

* Back to basics
2020-04-16 09:13:57 -07:00
Gerald Versluis c06932d499
AppTheme to OSAppTheme (#10302) 2020-04-13 11:36:11 +01:00
Gerald Versluis 529c8e90d0
Cross-Platform OS Theme APIs (#9958)
* Implement OnAppTheme

* Implement AppThemeColor

* Added tests

* Finishing up

* Implement UWP

* Xcode 11 and additional test

* Update Forms.cs

* Update ViewRenderer.cs

* Update ViewRenderer.cs

* Remove IAppThemeProvider

* Implemented RequestedThemeChanged

* Update WindowsBasePlatformServices.cs

* Bindable props and Android invalidate

* Update DefaultBindableProperties.cs

* Updates at runtime

* Review feedback part 1

* Implement VisualElement.OnRequestedThemeChanged

* UWP Dispatcher

* Add experimental flag

* ControlGallery restructure

* Update ViewRenderer.cs

* Update WindowsBasePlatformServices.cs

* iOS pre-13 fix
2020-04-03 14:47:19 -07:00
Stephane Delcroix 93cbdf2040
[X] consume trailing spaces in markup (#9850)
- fixes #9212
2020-03-09 12:41:18 -07:00
Stephane Delcroix 5979f8893f Merge branch '4.4.0' into 4.5.0 2020-02-05 14:10:28 +01:00
Stephane Delcroix 099f49e786
fix HR on 4.4+ (#9433) 2020-02-05 14:09:40 +01:00
Rui Marinho 62ca9c8125 Merge branch '4.4.0' into 4.5.0 2020-01-27 11:19:30 +00:00
Stephane Delcroix 528118926f [HR] complement the sourceinfo with assemblyname (#9294) 2020-01-24 11:45:16 +00:00
Akihiko Odaki fee5faaca8 [Xaml] Create value from positional argument text of markup extension (#8980)
The behavior introduced with this change conforms to the description of
[MS-XAML-2009] page 80 and 81.
fixes #6905
2020-01-02 11:07:49 -08:00
Akihiko Odaki a1a9f6e1be [Xaml[C]] Accept prefixed property names of markup extensions (#5186) 2019-12-19 09:25:40 +01:00
Akihiko Odaki 6eafaca536 [Xaml] Throw XamlParseException in MarkupExpressionParser.GetNextPiece (#8447) 2019-12-18 14:30:07 +01:00
Samantha Houts 774ecc1289 Merge branch '4.4.0' 2019-12-05 20:21:52 -08:00
Samantha Houts 75f101f1b8 Merge branch '4.3.0' into 4.4.0 2019-12-05 20:21:20 -08:00
Stephane Delcroix ad78adb23f [X] send tree changed events on parenting (#8760)
so thye will be triggered in all cases
2019-12-05 20:04:49 -08:00
Stephane Delcroix abe544ed2b Merge branch '4.4.0' 2019-12-02 11:25:47 +01:00
Stephane Delcroix 2023c10c13 Merge branch '4.3.0' into 4.4.0 2019-12-02 11:24:02 +01:00
Stephane Delcroix 7573226b58 [X] RegisterSourceInfo for XamlC (#8579)
When compiling in DEBUG, Register sourceInfo even for compiled code
2019-11-25 16:29:40 -08:00
Stephane Delcroix 6f414758a8 Merge branch '4.4.0' 2019-11-18 11:40:11 +01:00
Stephane Delcroix e640a19542 [X] FontSizeConverter on FontImageExtension (#8375)
fixes https://github.com/xamarin/Xamarin.Forms/pull/7887#issuecomment-549437276
2019-11-13 16:09:43 +01:00
Stephane Delcroix 37476d86f5 [C] Parent the ImageSource (#8063)
* [C] Parent the ImageSource

Properly parent the imagesource, instead of only setting the inherited context.
Allows proper propagation of DynamicResources and Styles

- fixes #6996

* fix merge

🔔 shame!
2019-10-29 10:06:34 -07:00
Samantha Houts b3b9c96b0d Merge branch '4.3.0' 2019-10-07 10:47:36 -07:00
Stephane Delcroix eff4e4090b
[X] pass the RootAssembly to DT Context (#7853)
regression introduced by #7531

- fixes #7830
2019-10-07 16:09:51 +02:00
Rui Marinho 2b03e4e101 Merge branch '4.3.0' 2019-10-02 17:11:18 +01:00
Stephane Delcroix 2e6ba0ecb5
[X] send VisualTreeChanged for root (#7747) 2019-10-02 15:13:24 +02:00
Rui Marinho fdba6fb254 Merge branch '4.3.0' 2019-09-29 21:38:19 +01:00
Stephane Delcroix 37fce50282 [X] Pass the current assembly to parsing context (#7550)
In case of Xaml-only RD, the rootAssembly is different from the assembly
of the rootType

- fixes #7531
2019-09-26 23:59:52 -06:00
Stephane Delcroix 65c6e5f59f Merge branch '4.3.0' 2019-09-18 16:42:51 +02:00
Stephane Delcroix 66b32f6f04
[X] avoid throwing in VisualDiagnostics (#7571)
this fixes a regression introduced in #7474

- fixes #7570
2019-09-18 16:41:18 +02:00
Samantha Houts 151bdb5ebf Merge branch '4.3.0' 2019-09-12 15:56:32 -07:00
Stephane Delcroix 4f28035705 visualDiagnostics (#7474) 2019-09-12 01:35:40 +01:00
Samantha Houts 8d790b3163 Merge branch '4.3.0' 2019-09-05 10:28:55 -07:00
Samantha Houts 0dfade22be Merge branch '4.2.0' into 4.3.0 2019-09-05 10:27:20 -07:00
Stephane Delcroix 00f772fdca [X] do not throw here 2019-09-05 14:18:03 +02:00
Stephane Delcroix 395dc293f1
[X] Reuse baseclass namescope if it exists (#7356)
* [X] chain debug ctors

* unit test for 7097

* [X] Reuse baseclass namescope if it exists

If a xaml control derives from another xaml control, thy both should share the same
NameScope. This add a check if the xaml root already has a NameScope (set by the base)
and reuses it.

This fixes 2 regressions introduced by #7040 and some other unreported edge cases.

- fixes #7097
- fixes #7286

* avoid repeting linq queries
2019-09-03 22:45:22 +02:00
Stephane Delcroix 52587223a9
[X] handle CDATA explicit properties (#7342)
- fixes https://github.com/xamarin/Xamarin.Forms/pull/4527#issuecomment-525979139
2019-09-02 10:49:59 +02:00
Stephane Delcroix 1efe1311af
[X] Detect empty property value in markups (#7190)
- fixes #7187
2019-09-01 23:01:44 +02:00
Stephane Delcroix f566b85523 [X] OnPlatform use BP.DefaultValue (#7188)
If no default is provided for {OnPlatform}, default to DefaultValue
if this is targetting a BindableProperty.

Also use other value than null as sentinel, as {x:Null} is a
perfectly valid value.

- fixes #7156
2019-08-28 14:23:37 -07:00
Stephane Delcroix 5309a00268 Merge branch '4.2.0' 2019-08-06 10:07:12 +02:00
Stephane Delcroix c2de5190bb [XamlC] don't reset the NameScope if it exists (#7040)
if the object creation already creates a namescope (because it's created from xaml), do not override the namescope

- fixes #6192
- fixes #AB957727
- fixes #6902
2019-08-05 18:24:29 -07:00
Stephane Delcroix 897242a003 [X] Allow tracking the assignment of StaticResource (#6868)
This allows advanced tracking of SR for debugging purposes. It doesn't affects
apps running without the debugger.

See also https://docs.microsoft.com/en-us/dotnet/api/system.windows.diagnostics.resourcedictionarydiagnostics
2019-07-29 14:09:26 -07:00
Stephane Delcroix fabd3e5ef2 Merge branch '4.2.0' 2019-07-12 16:23:52 +02:00
Stephane Delcroix a0682d706a Merge branch '4.1.0' into 4.2.0 2019-07-12 16:22:56 +02:00
Stephane Delcroix 29abc1e23a [HR] properly reload merged rds 2019-07-12 15:40:16 +02:00
Samantha Houts d5aea4d343 Merge branch '4.2.0' 2019-07-11 15:45:25 -07:00
Samantha Houts d1d868121a Merge branch '4.1.0' into 4.2.0 2019-07-11 15:44:58 -07:00
Stephane Delcroix 4237219d8b [X] hide TypedBinding from Intelisense 2019-07-10 12:18:17 +02:00
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