[Mono-bugs] [Bug 682131] New: Items in list cannot be directly added as children of XAML node
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Mar 23 19:59:19 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=682131
https://bugzilla.novell.com/show_bug.cgi?id=682131#c0
Summary: Items in list cannot be directly added as children of
XAML node
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: stevens+novell at ischyrus.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=421028)
--> (http://bugzilla.novell.com/attachment.cgi?id=421028)
Example of issue
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
I filed a previous bug related to this with ContentPropertyAttribute.
It should be possible, for properties of type IList<T> to have it's items added
directly as children.
Reproducible: Always
Steps to Reproduce:
Run the attached repro
Actual Results:
System.Xaml.XamlObjectWriterException: Value 'XamlTest.TestType2' (of type
XamlTest.TestType2) is not of or convertible to type XamlTest.TestType2 (member
{http://www.domain.com/path}TestType.Items)
at System.Xaml.XamlObjectWriterInternal.DoGetCorrectlyTypedValue
(System.Xaml.XamlMember xm, System.Xaml.XamlType xt, System.Object value)
[0x00167] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs:499
at System.Xaml.XamlObjectWriterInternal.GetCorrectlyTypedValue
(System.Xaml.XamlMember xm, System.Xaml.XamlType xt, System.Object value)
[0x00000] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs:448
Expected Results:
No crash and items added to list.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list