These are chat archives for picoe/Eto

26th
Oct 2016
Scott McClaugherty
@gamefreak
Oct 26 2016 22:20
I do not seem to be able to directly use controls that take type arguments from XAML (like GridView<T> or EnumDropDown<T>).
Curtis Wensley
@cwensley
Oct 26 2016 22:21
Scott McClaugherty
@gamefreak
Oct 26 2016 22:21
But it does work if I subclass one of those classes and use that
I have been using x:TypeArguments
Scott McClaugherty
@gamefreak
Oct 26 2016 22:26
If I use <EnumDropDown x:TypeArguments="e:ExampleEnum" />
Then the console spits out "Portable.Xaml.XamlObjectWriterException: The value for 'Content' property is null"
But defining public class EnumDropDown<T> : Eto.Forms.EnumDropDown<T> where T : struct {} and then changing the namespace of the element to point to that runs without error
Curtis Wensley
@cwensley
Oct 26 2016 22:32
well that's super odd
Scott McClaugherty
@gamefreak
Oct 26 2016 22:33
I when I first ran into it with GridView<T> I brushed it off as a name collision with the plain GridView
Curtis Wensley
@cwensley
Oct 26 2016 22:40
Hm well it's most likely a bug in Portable.Xaml
Scott McClaugherty
@gamefreak
Oct 26 2016 23:20
and if I put the the dropdown in a container I can get "System.NotSupportedException: Current operation is valid only when the underlying type on a XamlType is known, but it is unknown for '{http://schema.picoe.ca/eto.forms}EnumDropDown({clr-namespace:EtoErrorTest.UI;assembly=EtoErrorTest}ExampleEnum)'"