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

19 Коммитов

Автор SHA1 Сообщение Дата
Akihiko Odaki a1a9f6e1be [Xaml[C]] Accept prefixed property names of markup extensions (#5186) 2019-12-19 09:25:40 +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 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 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 9af95f0399
[X] recover from missing markup type (#5485)
- fixes #5484
2019-03-11 14:38:34 +01:00
Stephane Delcroix d126219219
[Xaml] don't use context before checking it's not null (#5124) 2019-02-05 09:12:25 +01:00
Stephane Delcroix 6d20db1a3c
hide obsolete API from editor (#4938)
- fixes #4772
2019-01-10 12:53:48 +01:00
Stephane Delcroix f3c5405033
Resilient xaml (#4096)
* [Xaml] un-obsolete XamlLoader.Create

now that we plan to load Xaml files without compiling the ctor, keeping
XamlLoader.Create makes sense.

* [Xaml] add FallbackTypeResolver

* Additional tests

* More tests

* Further tests

* [Xaml] provide an mock App

* [C] allow re-registering implicit styles

* Some tweaks and reinstated test with missing resource key

* Add StyleAppliedToDerivedTypesAppliesToDerivedUnknownType test

* Renamed some stuff for consistency. Added some CSS tests.

* Remove use of ValueTuple

* Temporarily disable failing tests

* redirect valueprovider exceptions to the handler, allow the handler to intercept excpetion with Create()

* fix the CSS situation

* new callback, works for CSS
2018-11-09 10:03:17 +01:00
Stephane Delcroix ce181dc14d
[Xaml] fix Namescope being different than tree (#4089)
As part of #2556, the namescoping tree was assumed to be equiv to the
object tree, which is obviously wrong. This fixes it, while keeping the
old behavior as a fallback.

We might go further, but I can't come up with a reasonable scenario
failing.

- fixes #3821
2018-10-16 17:10:04 +02:00
Stephane Delcroix b0e8a12022
Namescope enhancements (#2556)
* [Xaml] open non-generic FindByName()

* [Xaml[C]] Only set the namescope when it's different

avoid setting the NamesCope if it's the same as the parent.

Also provide an IReferenceProvider for markup extension that need to
replicate the x:Reference behavior.
2018-05-03 20:06:52 +02:00
Stephane Delcroix 4ad4ff7793
Allow specifying AutomationProperties.LabeledBy by name (#914)
* [Xaml] convert strings to x:Refs

* [docs] fix docs
2017-11-13 10:33:57 +01:00
Stephane Delcroix a7d12e620c [Xaml/XamlC] better RD inflation (#1148)
* [Xaml] Fix and simplifies FillRDVisitor, other minor refactorings

* [XamlC] Fix RD inflating
2017-09-25 08:52:03 +02:00
Stephane Delcroix 5ea000a76d [Xaml] Set the TargetProperty on ServiceProvider (#847) 2017-04-07 09:48:17 +02:00
Samantha Houts 5f2796e160 [Internal] Normalize Obsolete attributes (#860)
* [All] Normalize Obsolete attributes.

Make sure we include the version in which the member was deprecated and
consistent instructions for working around the deprecation, if
applicable.

* Update docs
2017-04-07 09:47:33 +02:00
Stephane Delcroix 3ff3487d4f [XamlC] provide backward compat for ProvideValueTarget without Target… (#583)
* [XamlC] provide backward compat for ProvideValueTarget without TargetProperty

* docs
2016-12-01 22:40:20 +01:00
Stephane Delcroix 054ecf2704 [Xaml] cleanup xmlns usage, add XmlnsDefinition (#531)
* [Xaml] cleanup xmlns usage, add XmlnsDefinition

* docs
2016-11-17 20:31:05 +01:00
Stephane Delcroix a5183bed8d [XamlC] Implement IValueProvider.PropertyType (#345) 2016-09-23 00:01:22 -07:00
Christian Schwarz d1ab4e1ce8 [Xaml] Fix MarkupExtension not found in default namespace (#183)
* [Xaml] Fix MarkupExtension not found in default namespace

* Fixed indentation

* Added XamlC unit test
2016-05-27 12:58:21 +01:00
Jason Smith 17fdde66d9 Initial import 2016-03-22 16:13:41 -07:00