2 using System.Collections.ObjectModel;
4 using Tizen.NUI.BaseComponents;
5 using Tizen.NUI.Binding;
8 [assembly: XamlResourceId("Tizen.NUI.Devel.Tests.testcase.public.Xaml.TotalSample.GenericCollections.xaml",
9 "testcase.public.Xaml.TotalSample.GenericCollections.xaml",
10 typeof(global::Tizen.NUI.Devel.Tests.GenericCollections))]
12 namespace Tizen.NUI.Devel.Tests
14 public class AttachedBP
16 public static readonly BindableProperty AttachedBPProperty = BindableProperty.CreateAttached (
18 typeof(GenericCollection),
22 public static GenericCollection GetAttachedBP(BindableObject bindable)
24 throw new NotImplementedException();
28 public class GenericCollection : ObservableCollection<object>
32 [XamlFilePath("testcase\\public\\Xaml\\TotalSample\\GenericCollections.xaml")]
33 [XamlCompilation(XamlCompilationOptions.Compile)]
34 public partial class GenericCollections : View
36 public TextLabel label0;
38 public GenericCollections ()
40 global::Tizen.NUI.Xaml.Extensions.LoadFromXaml(this, typeof(GenericCollections));
41 label0 = global::Tizen.NUI.Binding.NameScopeExtensions.FindByName<TextLabel>(this, "label0");
48 public class GenericCollectionsTests
56 public void TearDown()
62 [Description("Extensions LoadFromXaml.")]
63 [Property("SPEC", "Tizen.NUI.Xaml.Extensions.LoadFromXaml M")]
64 [Property("SPEC_URL", "-")]
65 [Property("CRITERIA", "MR")]
66 public void SupportsCrookedGenericScenarios()
68 var p = new GenericCollections();
69 Assert.AreEqual("Foo", (p.label0.GetValue(AttachedBP.AttachedBPProperty) as GenericCollection)[0]);