Commit Graph
279 Commits
Author SHA1 Message Date
Atsushi Eno 1d08b24a11 Attachable property setter was not working with XamlObjectWriter.
Fixed bug #693779.
2011-05-16 16:31:14 +09:00
Atsushi Eno 1ac59d0f75 Implement some properties in XamlObjectWriterSettings. Fixed bug #689548. 2011-04-28 14:59:13 +09:00
Atsushi Eno e07a7150a7 Reimplemented XamlXmlReader to make it iterator based, much less stateful.
Also fixed bug #638290 (required lots of state management complication).
2011-03-31 21:05:19 +09:00
Atsushi Eno 6ca2cd2be9 Fix Sys.Xaml test build which got broken with the latest mcs since 9cc5c9e. 2011-03-30 16:15:39 +09:00
Atsushi Eno 2001ed0121 Do not forget mmember stack pop in XamlXmlReader. Fixed bug #682933. 2011-03-29 11:51:01 +09:00
Atsushi Eno 62113eebbd XamlXmlReader didn't update current_member after EndMember and kept old one.
Fixed bug #682933.
2011-03-28 16:05:17 +09:00
Atsushi Eno b5339d6f07 Fix generic interface lookup to not miss exact match. Fixed bug #682140. 2011-03-25 01:37:02 +09:00
Atsushi Eno 5dc910ee50 Again I forgot to add test xml file... 2011-03-24 23:25:16 +09:00
Atsushi Eno be2b594a73 Support get-based property value (as omitted StartObject form) in XamlXmlReader.
This is a bit complicated to determine, and the identified condition could
be wrong (so far no regression).

It may be now missing the point to use IsWritePublic in some area to identify
GetObject node from XML stream. (Future consideration.)

Fixed bug #682131.
2011-03-24 23:20:18 +09:00
Atsushi Eno 75c1d16157 Nullable type needs special treatment in XamlValueConverter. fixed bug #682119. 2011-03-24 21:32:27 +09:00
Atsushi Eno a5e126aa73 Fix LookupNullable(). It is not lookable-up by interface (struct). 2011-03-24 19:40:35 +09:00
Atsushi Eno 52747ce09a Undo unwanted comment out. 2011-03-24 19:33:48 +09:00
Atsushi Eno 6435581c8d Implemented IAmbientProvider support in XamlObjectWriter. Fixed bug #682102. 2011-03-24 19:17:31 +09:00
Atsushi Eno b6296239a6 Add AmbientProperty tests (complicated, not working) for bug #682102. 2011-03-24 15:19:30 +09:00
Atsushi Eno 6043622186 Add another complicated ContentProperty case. 2011-03-23 22:33:56 +09:00
Atsushi Eno 5225990ace Forgot to add test xml files for the previous commit. 2011-03-23 21:30:09 +09:00
Atsushi Eno 9955d9e928 ContentProperty with collection caused unexpected read in XamlXmlReader.
The fix is actually complicated. When a ContentProperty list is settable,
.NET allows omitting start element for it i.e. it *may* or *may not* appear,
which for each is interpreted as:
	- it is StartObject if the start element can be of the member.
	- otherwise it is GetObject.

It could still happen that if such a list could contain an instance of the
same list type, which results in "indeterminant" state. I don't think MS XAML
syntax and/or parser is carefully designed to treat such situation gracefully,
so I leave current implementation as is.
2011-03-23 21:21:33 +09:00
Atsushi Eno 9f2d02b5cc Add support for EnumTypeConverter in XamlValueConverter. Fixed bug #681724. 2011-03-23 14:45:58 +09:00
Atsushi Eno 927b5d1b3b TypeConverterAttributes on XamlMember were ignored in XamlObjectWriter.
Fixed bug #681480.
2011-03-22 19:09:41 +09:00
Atsushi Eno 3777cb3f4b Do not reject same-key-for different-clrns XmlnsDefinitionAttributes.
Fixed bug #681045.
2011-03-22 14:36:35 +09:00
Atsushi Eno 734d916ad4 return null for nested static types in XamlSchemaContext.GetXamlNamespace().
Fixed bug #680385 2nd. case.
2011-03-22 13:36:25 +09:00
Marek Safar 29ecab06f2 CRLF conversion 2011-03-18 12:40:01 +00:00
Atsushi Eno 62a5658bb2 in XamlXmlReader, read <FooType.BarMember>-style element.
Fixed bug #680385.
2011-03-18 17:23:20 +09:00
Atsushi Eno 9eade5ea54 XamlType lookup from xml name failed when [XmlnsDefinition] is involved. 2011-03-18 15:57:09 +09:00
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -05:00
Atsushi Eno 23a7a0b657 Implement XamlReader.ReadSubtree(). 2011-02-02 18:18:02 +09:00
Atsushi Eno 9f92cc615e Add missing test files. 2011-02-02 18:14:24 +09:00
Atsushi Eno 5c44482089 Implement XamlMemberInvoker.UnknownInvoker too. 2011-01-20 18:28:19 +09:00
Atsushi Eno fb121b6809 Implement XamlTypeInvoker.UnknownInvoker. 2011-01-20 18:20:08 +09:00
Atsushi Eno 6bfb5c3644 Implement some XamlTypeInvoker methods (mostly unused yet). 2011-01-20 17:55:53 +09:00
Atsushi Eno 21026ad130 Support IXamlLineInfo in XamlNodeQueue. 2011-01-20 17:21:11 +09:00
Atsushi Eno bdef99df34 finish XamlType.BaseType implementation. 2011-01-20 16:59:05 +09:00
Atsushi Eno b7f41b092a XamlObjectReader does not return non-writable members. Fix Skip() to work with GetObject. 2011-01-18 19:16:25 +09:00
Atsushi Eno 13cc149429 Do no t try to instantiate abstract types. 2011-01-18 16:23:38 +09:00
Atsushi Eno a966f0bdae Fix XamlValueConverter; sometimes ConverterType exists but lacks default constructor. 2011-01-18 00:03:28 +09:00
Atsushi Eno 4a33efa191 Implemented event support. 2011-01-13 21:12:41 +09:00
Atsushi Eno 2e2337e80a Implement XamlBackgroundReader. 2011-01-12 16:49:38 +09:00
Atsushi Eno 99ac282cf3 Implement XamlNodeQueue, and add couple of missing files. 2011-01-12 02:03:24 +09:00
Atsushi Eno 3f94471b5a Actually we have almost what we need on mobile profiles. 2010-12-28 22:02:08 +09:00
Atsushi Eno 544cfd1db7 Implemented support for attached properties in xamlreaders and xamlwriters. 2010-12-20 11:25:53 +09:00
Atsushi Eno 7a49c5d397 Add attachable event support in XamlType (not yet in readers and writers). 2010-12-17 01:32:49 +09:00
Atsushi Eno 3f71818dcd Implement XamlType.GetAllAttachableProperties() and family, except for events. 2010-12-16 18:13:22 +09:00
Atsushi Eno c84f6ede0d For IXmlSerializable/XData, Instance property returns null (!) 2010-12-16 16:27:19 +09:00
Atsushi Eno 0de2ef480c Add experimental "#if NET_2_1" mode (it builds w/o s.x.permissions). 2010-12-15 00:15:20 +09:00
Atsushi Eno eabd497033 add missing method in IAmbientProvider. 2010-12-14 13:50:43 +09:00
Atsushi Eno 44ceb84e44 Implemented XData support in XamlObjectWriter. 2010-12-07 18:09:56 +09:00
Atsushi Eno c807359587 Implement XData support in XamlXmlReader. 2010-12-07 17:08:49 +09:00
Atsushi Eno b202524c5d XData support in XamlXmlWriter. 2010-12-07 16:46:53 +09:00
Atsushi Eno dacee05e27 Implemented XData object reader support. Add missing test files. 2010-12-07 16:23:53 +09:00
Atsushi Eno c3ac00fbd9 Add another couple of IXmlSerializable tests. 2010-12-07 15:32:58 +09:00