Ejemplo n.º 1
0
            public object GetService(Type serviceType)
            {
                var xml = new XmlNamespaceResolver();

                xml.Add("l", "Tizen.NUI.Devel.Tests");
                return(new XamlTypeResolver(xml, typeof(UIElement).Assembly));
            }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XrdsDocument"/> class.
 /// </summary>
 /// <param name="xrdsNavigator">The root node of the XRDS document.</param>
 public XrdsDocument(XPathNavigator xrdsNavigator)
     : base(xrdsNavigator)
 {
     XmlNamespaceResolver.AddNamespace("xrd", XrdsNode.XrdNamespace);
     XmlNamespaceResolver.AddNamespace("xrds", XrdsNode.XrdsNamespace);
     XmlNamespaceResolver.AddNamespace("openid10", Protocol.V10.XmlNamespace);
 }
Ejemplo n.º 3
0
        public void LookupPrefix_should_return_ns_name()
        {
            var xr = new XmlNamespaceResolver {
                { "runtime", (Xmlns.Core2008) },
                { "share", (Xmlns.ShareableCodeMetadata2011) },
            };
            var all = xr.LookupPrefix(Xmlns.Core2008);

            Assert.Equal("runtime", all);
        }
Ejemplo n.º 4
0
        public void Add_should_allow_and_apply_duplicates()
        {
            var xr = new XmlNamespaceResolver {
                { "runtime", Xmlns.Core2008 },
                { "runtime", Xmlns.Core2008 + "S" },
            };

            var all    = xr.GetNamespacesInScope(XmlNamespaceScope.Local);
            var prefix = xr.LookupPrefix(Xmlns.Core2008 + "S");

            Assert.Contains("runtime", all.Keys);
            Assert.Equal(1, all.Keys.Count);
            Assert.Equal(Xmlns.Core2008, all["runtime"]);
            Assert.Equal("runtime", prefix);
        }
Ejemplo n.º 5
0
        public void GetNamespacesInScope_should_contain_all_xmlns()
        {
            var xr = new XmlNamespaceResolver {
                { "runtime", (Xmlns.Core2008) },
                { "share", (Xmlns.ShareableCodeMetadata2011) },
            };

            var all = xr.GetNamespacesInScope(XmlNamespaceScope.Local);

            Assert.Equal(2, all.Count);
            Assert.Contains("runtime", all.Keys);
            Assert.Equal(Xmlns.Core2008, all["runtime"]);
            Assert.Contains("share", all.Keys);
            Assert.Equal(Xmlns.ShareableCodeMetadata2011, all["share"]);
        }
Ejemplo n.º 6
0
        static IServiceProvider MakeResolver(IDictionary <string, string> prefixesToNS)
        {
            var r = new XmlNamespaceResolver();

            foreach (var kvp in prefixesToNS)
            {
                if (string.IsNullOrEmpty(kvp.Value))
                {
                    r.Add(kvp.Key, null);
                }
                else
                {
                    r.Add(kvp.Key, (kvp.Value));
                }
            }
            return(ServiceProvider.FromValue(r));
        }
Ejemplo n.º 7
0
 private void InitializeComponent()
 {
     ResourceLoader.ResourceLoadingQuery resourceLoadingQuery = new ResourceLoader.ResourceLoadingQuery();
     resourceLoadingQuery.set_AssemblyName(typeof(ProfilesPage).GetTypeInfo().Assembly.GetName());
     resourceLoadingQuery.set_ResourcePath("Views/ProfilesPage.xaml");
     resourceLoadingQuery.set_Instance((object)this);
     if (ResourceLoader.CanProvideContentFor(resourceLoadingQuery))
     {
         this.__InitComponentRuntime();
     }
     else if (XamlLoader.get_XamlFileProvider() != null && XamlLoader.get_XamlFileProvider()(((object)this).GetType()) != null)
     {
         this.__InitComponentRuntime();
     }
     else
     {
         TranslateExtension      translateExtension1 = new TranslateExtension();
         StaticResourceExtension resourceExtension1  = new StaticResourceExtension();
         BindingExtension        bindingExtension1   = new BindingExtension();
         TranslateExtension      translateExtension2 = new TranslateExtension();
         ToolbarItem             toolbarItem         = new ToolbarItem();
         BindingExtension        bindingExtension2   = new BindingExtension();
         BindingExtension        bindingExtension3   = new BindingExtension();
         DataTemplate            dataTemplate1       = new DataTemplate();
         ListView listView = new ListView();
         StaticResourceExtension resourceExtension2 = new StaticResourceExtension();
         BindingExtension        bindingExtension4  = new BindingExtension();
         StaticResourceExtension resourceExtension3 = new StaticResourceExtension();
         CircleImage             circleImage        = new CircleImage();
         BindingExtension        bindingExtension5  = new BindingExtension();
         ActivityIndicator       activityIndicator  = new ActivityIndicator();
         Grid         grid1 = new Grid();
         Grid         grid2 = new Grid();
         ProfilesPage profilesPage;
         NameScope    nameScope = (NameScope)(NameScope.GetNameScope((BindableObject)(profilesPage = this)) ?? (INameScope) new NameScope());
         NameScope.SetNameScope((BindableObject)profilesPage, (INameScope)nameScope);
         ((INameScope)nameScope).RegisterName("Page", (object)profilesPage);
         if (((Element)profilesPage).get_StyleId() == null)
         {
             ((Element)profilesPage).set_StyleId("Page");
         }
         this.Page = (MvxContentPage <ProfilesViewModel>)profilesPage;
         translateExtension1.Text = "Page_Profiles_Title";
         TranslateExtension  translateExtension3  = translateExtension1;
         XamlServiceProvider xamlServiceProvider1 = new XamlServiceProvider();
         Type     type1     = typeof(IProvideValueTarget);
         object[] objArray1 = new object[0 + 1];
         objArray1[0] = (object)profilesPage;
         SimpleValueTargetProvider valueTargetProvider1;
         object obj1 = (object)(valueTargetProvider1 = new SimpleValueTargetProvider(objArray1, (object)Xamarin.Forms.Page.TitleProperty, (INameScope)nameScope));
         xamlServiceProvider1.Add(type1, (object)valueTargetProvider1);
         xamlServiceProvider1.Add(typeof(IReferenceProvider), obj1);
         Type type2 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver1 = new XmlNamespaceResolver();
         namespaceResolver1.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver1.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver1.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver1.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver1.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver1.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver1.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver1.Add("pluginImage", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver1.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver1 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver1, typeof(ProfilesPage).GetTypeInfo().Assembly);
         xamlServiceProvider1.Add(type2, (object)xamlTypeResolver1);
         xamlServiceProvider1.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(15, 5)));
         object obj2 = ((IMarkupExtension)translateExtension3).ProvideValue((IServiceProvider)xamlServiceProvider1);
         ((Xamarin.Forms.Page)profilesPage).set_Title((string)obj2);
         ((BindableObject)profilesPage).SetValue((BindableProperty)Xamarin.Forms.PlatformConfiguration.iOSSpecific.Page.UseSafeAreaProperty, (object)true);
         resourceExtension1.set_Key("PageBackgroundColor");
         StaticResourceExtension resourceExtension4   = resourceExtension1;
         XamlServiceProvider     xamlServiceProvider2 = new XamlServiceProvider();
         Type     type3     = typeof(IProvideValueTarget);
         object[] objArray2 = new object[0 + 1];
         objArray2[0] = (object)profilesPage;
         SimpleValueTargetProvider valueTargetProvider2;
         object obj3 = (object)(valueTargetProvider2 = new SimpleValueTargetProvider(objArray2, (object)VisualElement.BackgroundColorProperty, (INameScope)nameScope));
         xamlServiceProvider2.Add(type3, (object)valueTargetProvider2);
         xamlServiceProvider2.Add(typeof(IReferenceProvider), obj3);
         Type type4 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver2 = new XmlNamespaceResolver();
         namespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver2.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver2.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver2.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver2.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver2.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver2.Add("pluginImage", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver2.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver2 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver2, typeof(ProfilesPage).GetTypeInfo().Assembly);
         xamlServiceProvider2.Add(type4, (object)xamlTypeResolver2);
         xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(18, 5)));
         object obj4 = ((IMarkupExtension)resourceExtension4).ProvideValue((IServiceProvider)xamlServiceProvider2);
         ((VisualElement)profilesPage).set_BackgroundColor((Color)obj4);
         bindingExtension1.set_Path("NewProfileCommand");
         BindingBase bindingBase1 = ((IMarkupExtension <BindingBase>)bindingExtension1).ProvideValue((IServiceProvider)null);
         ((BindableObject)toolbarItem).SetBinding((BindableProperty)MenuItem.CommandProperty, bindingBase1);
         ((BindableObject)toolbarItem).SetValue((BindableProperty)MenuItem.IconProperty, new FileImageSourceConverter().ConvertFromInvariantString("add.png"));
         translateExtension2.Text = "ToolbarItem_NewProfile_Text";
         TranslateExtension  translateExtension4  = translateExtension2;
         XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
         Type     type5     = typeof(IProvideValueTarget);
         object[] objArray3 = new object[0 + 2];
         objArray3[0] = (object)toolbarItem;
         objArray3[1] = (object)profilesPage;
         SimpleValueTargetProvider valueTargetProvider3;
         object obj5 = (object)(valueTargetProvider3 = new SimpleValueTargetProvider(objArray3, (object)MenuItem.TextProperty, (INameScope)nameScope));
         xamlServiceProvider3.Add(type5, (object)valueTargetProvider3);
         xamlServiceProvider3.Add(typeof(IReferenceProvider), obj5);
         Type type6 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver3 = new XmlNamespaceResolver();
         namespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver3.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver3.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver3.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver3.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver3.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver3.Add("pluginImage", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver3.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver3 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver3, typeof(ProfilesPage).GetTypeInfo().Assembly);
         xamlServiceProvider3.Add(type6, (object)xamlTypeResolver3);
         xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(158, 13)));
         object obj6 = ((IMarkupExtension)translateExtension4).ProvideValue((IServiceProvider)xamlServiceProvider3);
         ((MenuItem)toolbarItem).set_Text((string)obj6);
         ((ICollection <ToolbarItem>)((Xamarin.Forms.Page)profilesPage).get_ToolbarItems()).Add(toolbarItem);
         ((BindableObject)listView).SetValue((BindableProperty)ListView.HasUnevenRowsProperty, (object)true);
         bindingExtension2.set_Path("Profiles");
         BindingBase bindingBase2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue((IServiceProvider)null);
         ((BindableObject)listView).SetBinding((BindableProperty)ItemsView <Cell> .ItemsSourceProperty, bindingBase2);
         bindingExtension3.set_Mode((BindingMode)1);
         bindingExtension3.set_Path("SelectedItem");
         BindingBase bindingBase3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue((IServiceProvider)null);
         ((BindableObject)listView).SetBinding((BindableProperty)ListView.SelectedItemProperty, bindingBase3);
         ((BindableObject)listView).SetValue((BindableProperty)ListView.SeparatorVisibilityProperty, (object)(SeparatorVisibility)1);
         DataTemplate dataTemplate2 = dataTemplate1;
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: variable of a compiler-generated type
         ProfilesPage.\u003CInitializeComponent\u003E_anonXamlCDataTemplate_31 xamlCdataTemplate31 = new ProfilesPage.\u003CInitializeComponent\u003E_anonXamlCDataTemplate_31();
         object[] objArray4 = new object[0 + 4];
         objArray4[0] = (object)dataTemplate1;
         objArray4[1] = (object)listView;
         objArray4[2] = (object)grid2;
         objArray4[3] = (object)profilesPage;
         // ISSUE: reference to a compiler-generated field
         xamlCdataTemplate31.parentValues = objArray4;
         // ISSUE: reference to a compiler-generated field
         xamlCdataTemplate31.root = profilesPage;
         // ISSUE: reference to a compiler-generated method
         Func <object> func = new Func <object>(xamlCdataTemplate31.LoadDataTemplate);
         ((IDataTemplate)dataTemplate2).set_LoadTemplate(func);
         ((BindableObject)listView).SetValue((BindableProperty)ItemsView <Cell> .ItemTemplateProperty, (object)dataTemplate1);
         ((ICollection <View>)grid2.get_Children()).Add((View)listView);
         resourceExtension2.set_Key("OverlayColor");
         StaticResourceExtension resourceExtension5   = resourceExtension2;
         XamlServiceProvider     xamlServiceProvider4 = new XamlServiceProvider();
         Type     type7     = typeof(IProvideValueTarget);
         object[] objArray5 = new object[0 + 3];
         objArray5[0] = (object)grid1;
         objArray5[1] = (object)grid2;
         objArray5[2] = (object)profilesPage;
         SimpleValueTargetProvider valueTargetProvider4;
         object obj7 = (object)(valueTargetProvider4 = new SimpleValueTargetProvider(objArray5, (object)VisualElement.BackgroundColorProperty, (INameScope)nameScope));
         xamlServiceProvider4.Add(type7, (object)valueTargetProvider4);
         xamlServiceProvider4.Add(typeof(IReferenceProvider), obj7);
         Type type8 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver4 = new XmlNamespaceResolver();
         namespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver4.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver4.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver4.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver4.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver4.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver4.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver4.Add("pluginImage", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver4.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver4 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver4, typeof(ProfilesPage).GetTypeInfo().Assembly);
         xamlServiceProvider4.Add(type8, (object)xamlTypeResolver4);
         xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(149, 15)));
         object obj8 = ((IMarkupExtension)resourceExtension5).ProvideValue((IServiceProvider)xamlServiceProvider4);
         ((VisualElement)grid1).set_BackgroundColor((Color)obj8);
         bindingExtension4.set_Path("IsLoading");
         BindingBase bindingBase4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue((IServiceProvider)null);
         ((BindableObject)grid1).SetBinding((BindableProperty)VisualElement.IsVisibleProperty, bindingBase4);
         ((BindableObject)circleImage).SetValue((BindableProperty)CircleImage.FillColorProperty, (object)(Color)Color.White);
         resourceExtension3.set_Key("ListItemIconStyle");
         StaticResourceExtension resourceExtension6   = resourceExtension3;
         XamlServiceProvider     xamlServiceProvider5 = new XamlServiceProvider();
         Type     type9     = typeof(IProvideValueTarget);
         object[] objArray6 = new object[0 + 4];
         objArray6[0] = (object)circleImage;
         objArray6[1] = (object)grid1;
         objArray6[2] = (object)grid2;
         objArray6[3] = (object)profilesPage;
         SimpleValueTargetProvider valueTargetProvider5;
         object obj9 = (object)(valueTargetProvider5 = new SimpleValueTargetProvider(objArray6, (object)VisualElement.StyleProperty, (INameScope)nameScope));
         xamlServiceProvider5.Add(type9, (object)valueTargetProvider5);
         xamlServiceProvider5.Add(typeof(IReferenceProvider), obj9);
         Type type10 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver5 = new XmlNamespaceResolver();
         namespaceResolver5.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver5.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver5.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver5.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver5.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver5.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver5.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver5.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver5.Add("pluginImage", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver5.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver5 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver5, typeof(ProfilesPage).GetTypeInfo().Assembly);
         xamlServiceProvider5.Add(type10, (object)xamlTypeResolver5);
         xamlServiceProvider5.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(150, 56)));
         object obj10 = ((IMarkupExtension)resourceExtension6).ProvideValue((IServiceProvider)xamlServiceProvider5);
         ((NavigableElement)circleImage).set_Style((Style)obj10);
         ((ICollection <View>)grid1.get_Children()).Add((View)circleImage);
         bindingExtension5.set_Path("IsLoading");
         BindingBase bindingBase5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue((IServiceProvider)null);
         ((BindableObject)activityIndicator).SetBinding((BindableProperty)ActivityIndicator.IsRunningProperty, bindingBase5);
         ((ICollection <View>)grid1.get_Children()).Add((View)activityIndicator);
         ((ICollection <View>)grid2.get_Children()).Add((View)grid1);
         ((BindableObject)profilesPage).SetValue((BindableProperty)ContentPage.ContentProperty, (object)grid2);
     }
 }
Ejemplo n.º 8
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(HomePage).GetTypeInfo().Assembly.GetName(), "Views/HomePage.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            TranslateExtension translateExtension  = new TranslateExtension();
            MainPage           mainPage            = new MainPage();
            TranslateExtension translateExtension2 = new TranslateExtension();
            QueryPage          queryPage           = new QueryPage();
            TranslateExtension translateExtension3 = new TranslateExtension();
            MinePage           minePage            = new MinePage();
            NameScope          nameScope           = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(mainPage, nameScope);
            NameScope.SetNameScope(queryPage, nameScope);
            NameScope.SetNameScope(minePage, nameScope);
            this.SetValue(Xamarin.Forms.TabbedPage.BarBackgroundColorProperty, Color.White);
            this.SetValue(NavigationPage.HasNavigationBarProperty, false);
            this.SetValue(NavigationPage.HasBackButtonProperty, false);
            this.SetValue(Xamarin.Forms.PlatformConfiguration.AndroidSpecific.TabbedPage.ToolbarPlacementProperty, ToolbarPlacement.Bottom);
            this.SetValue(Xamarin.Forms.PlatformConfiguration.AndroidSpecific.TabbedPage.BarItemColorProperty, new Color(0.572549045085907, 0.572549045085907, 0.572549045085907, 1.0));
            this.SetValue(Xamarin.Forms.PlatformConfiguration.AndroidSpecific.TabbedPage.BarSelectedItemColorProperty, new Color(0.0, 0.0, 0.0, 1.0));
            mainPage.SetValue(Page.IconProperty, new FileImageSourceConverter().ConvertFromInvariantString("home.png"));
            translateExtension.Text = "home";
            IMarkupExtension    markupExtension     = translateExtension;
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 2];
            array[0] = mainPage;
            array[1] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, Page.TitleProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("views", "clr-namespace:RFID.Views");
            xmlNamespaceResolver.Add("local", "clr-namespace:RFID");
            xmlNamespaceResolver.Add("android", "clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(HomePage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(31, 43)));
            object title = markupExtension.ProvideValue(xamlServiceProvider);

            mainPage.Title = title;
            this.Children.Add(mainPage);
            queryPage.SetValue(Page.IconProperty, new FileImageSourceConverter().ConvertFromInvariantString("query.png"));
            translateExtension2.Text = "query";
            IMarkupExtension    markupExtension2     = translateExtension2;
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 2];
            array2[0] = queryPage;
            array2[1] = this;
            xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, Page.TitleProperty));
            xamlServiceProvider2.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver2.Add("views", "clr-namespace:RFID.Views");
            xmlNamespaceResolver2.Add("local", "clr-namespace:RFID");
            xmlNamespaceResolver2.Add("android", "clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(HomePage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(32, 43)));
            object title2 = markupExtension2.ProvideValue(xamlServiceProvider2);

            queryPage.Title = title2;
            this.Children.Add(queryPage);
            minePage.SetValue(Page.IconProperty, new FileImageSourceConverter().ConvertFromInvariantString("mine.png"));
            translateExtension3.Text = "mine";
            IMarkupExtension    markupExtension3     = translateExtension3;
            XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
            Type typeFromHandle5 = typeof(IProvideValueTarget);

            object[] array3 = new object[0 + 2];
            array3[0] = minePage;
            array3[1] = this;
            xamlServiceProvider3.Add(typeFromHandle5, new SimpleValueTargetProvider(array3, Page.TitleProperty));
            xamlServiceProvider3.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle6 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();

            xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver3.Add("views", "clr-namespace:RFID.Views");
            xmlNamespaceResolver3.Add("local", "clr-namespace:RFID");
            xmlNamespaceResolver3.Add("android", "clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core");
            xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(HomePage).GetTypeInfo().Assembly));
            xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(33, 41)));
            object title3 = markupExtension3.ProvideValue(xamlServiceProvider3);

            minePage.Title = title3;
            this.Children.Add(minePage);
        }
Ejemplo n.º 9
0
        private void InitializeComponent()
        {
            if (ResourceLoader.CanProvideContentFor(new ResourceLoader.ResourceLoadingQuery
            {
                AssemblyName = typeof(ModalPopupPage).GetTypeInfo().Assembly.GetName(),
                ResourcePath = "Views/ModalPopupPage.xaml",
                Instance = this
            }))
            {
                __InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(GetType()) != null)
            {
                __InitComponentRuntime();
                return;
            }
            ScaleAnimation          scaleAnimation          = new ScaleAnimation();
            BindingExtension        bindingExtension        = new BindingExtension();
            TapGestureRecognizer    tapGestureRecognizer    = new TapGestureRecognizer();
            BindingExtension        bindingExtension2       = new BindingExtension();
            StaticResourceExtension staticResourceExtension = new StaticResourceExtension();
            Label          label       = new Label();
            RadBorder      radBorder   = new RadBorder();
            StackLayout    stackLayout = new StackLayout();
            ModalPopupPage modalPopupPage;
            NameScope      nameScope = (NameScope)(NameScope.GetNameScope(modalPopupPage = this) ?? new NameScope());

            NameScope.SetNameScope(modalPopupPage, nameScope);
            modalPopupPage.SetValue(VisualElement.BackgroundColorProperty, Color.Transparent);
            scaleAnimation.PositionIn             = MoveAnimationOptions.Center;
            scaleAnimation.PositionOut            = MoveAnimationOptions.Center;
            scaleAnimation.ScaleIn                = 0.5;
            scaleAnimation.ScaleOut               = 0.5;
            scaleAnimation.DurationIn             = (uint)new UintTypeConverter().ConvertFromInvariantString("400");
            scaleAnimation.DurationOut            = (uint)new UintTypeConverter().ConvertFromInvariantString("300");
            scaleAnimation.EasingIn               = (Easing) new EasingTypeConverter().ConvertFromInvariantString("SinOut");
            scaleAnimation.EasingOut              = (Easing) new EasingTypeConverter().ConvertFromInvariantString("SinIn");
            scaleAnimation.HasBackgroundAnimation = true;
            modalPopupPage.SetValue(Rg.Plugins.Popup.Pages.PopupPage.AnimationProperty, scaleAnimation);
            VisualDiagnostics.RegisterSourceInfo(scaleAnimation, new Uri("Views\\ModalPopupPage.xaml", UriKind.RelativeOrAbsolute), 12, 10);
            stackLayout.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            stackLayout.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
            stackLayout.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(20.0));
            bindingExtension.Path = "ContentTapCommand";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue((IServiceProvider)null);

            tapGestureRecognizer.SetBinding(TapGestureRecognizer.CommandProperty, binding);
            stackLayout.GestureRecognizers.Add(tapGestureRecognizer);
            VisualDiagnostics.RegisterSourceInfo(tapGestureRecognizer, new Uri("Views\\ModalPopupPage.xaml", UriKind.RelativeOrAbsolute), 28, 14);
            radBorder.SetValue(RadBorder.BorderColorProperty, new Color(0.18823529779911041, 0.18823529779911041, 0.18431372940540314, 0.93333333730697632));
            radBorder.SetValue(VisualElement.BackgroundColorProperty, new Color(0.18823529779911041, 0.18823529779911041, 0.18431372940540314, 0.93333333730697632));
            radBorder.SetValue(RadBorder.BorderThicknessProperty, new Thickness(2.0));
            radBorder.SetValue(RadBorder.CornerRadiusProperty, new Thickness(10.0));
            radBorder.SetValue(VisualElement.WidthRequestProperty, 300.0);
            bindingExtension2.Path = "Text";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue((IServiceProvider)null);

            label.SetBinding(Label.TextProperty, binding2);
            label.SetValue(Label.TextColorProperty, Color.White);
            staticResourceExtension.Key = "TCLRegular";
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 4];
            array[0] = label;
            array[1] = radBorder;
            array[2] = stackLayout;
            array[3] = modalPopupPage;
            object service;

            xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array, Label.FontFamilyProperty, nameScope));
            xamlServiceProvider.Add(typeof(IReferenceProvider), service);
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("animations", "clr-namespace:Rg.Plugins.Popup.Animations;assembly=Rg.Plugins.Popup");
            xmlNamespaceResolver.Add("pages", "clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup");
            xmlNamespaceResolver.Add("telerikPrimitives", "clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(ModalPopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(40, 17)));
            object target = label.FontFamily = (string)((IMarkupExtension)staticResourceExtension).ProvideValue((IServiceProvider)xamlServiceProvider);

            VisualDiagnostics.RegisterSourceInfo(target, new Uri("Views\\ModalPopupPage.xaml", UriKind.RelativeOrAbsolute), 40, 17);
            BindableProperty    fontSizeProperty     = Label.FontSizeProperty;
            FontSizeConverter   fontSizeConverter    = new FontSizeConverter();
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 4];
            array2[0] = label;
            array2[1] = radBorder;
            array2[2] = stackLayout;
            array2[3] = modalPopupPage;
            object service2;

            xamlServiceProvider2.Add(typeFromHandle3, service2 = new SimpleValueTargetProvider(array2, Label.FontSizeProperty, nameScope));
            xamlServiceProvider2.Add(typeof(IReferenceProvider), service2);
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver2.Add("animations", "clr-namespace:Rg.Plugins.Popup.Animations;assembly=Rg.Plugins.Popup");
            xmlNamespaceResolver2.Add("pages", "clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup");
            xmlNamespaceResolver2.Add("telerikPrimitives", "clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(ModalPopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(41, 17)));
            label.SetValue(fontSizeProperty, ((IExtendedTypeConverter)fontSizeConverter).ConvertFromInvariantString("Default", (IServiceProvider)xamlServiceProvider2));
            label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            label.SetValue(View.VerticalOptionsProperty, LayoutOptions.FillAndExpand);
            label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            label.SetValue(Label.VerticalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            label.SetValue(View.MarginProperty, new Thickness(10.0));
            radBorder.SetValue(ContentView.ContentProperty, label);
            VisualDiagnostics.RegisterSourceInfo(label, new Uri("Views\\ModalPopupPage.xaml", UriKind.RelativeOrAbsolute), 37, 14);
            stackLayout.Children.Add(radBorder);
            VisualDiagnostics.RegisterSourceInfo(radBorder, new Uri("Views\\ModalPopupPage.xaml", UriKind.RelativeOrAbsolute), 31, 10);
            modalPopupPage.SetValue(ContentPage.ContentProperty, stackLayout);
            VisualDiagnostics.RegisterSourceInfo(stackLayout, new Uri("Views\\ModalPopupPage.xaml", UriKind.RelativeOrAbsolute), 23, 6);
            VisualDiagnostics.RegisterSourceInfo(modalPopupPage, new Uri("Views\\ModalPopupPage.xaml", UriKind.RelativeOrAbsolute), 2, 2);
        }
Ejemplo n.º 10
0
 private void InitializeComponent()
 {
     ResourceLoader.ResourceLoadingQuery resourceLoadingQuery = new ResourceLoader.ResourceLoadingQuery();
     resourceLoadingQuery.set_AssemblyName(typeof(DatabaseErrorPage).GetTypeInfo().Assembly.GetName());
     resourceLoadingQuery.set_ResourcePath("Views/DatabaseErrorPage.xaml");
     resourceLoadingQuery.set_Instance((object)this);
     if (ResourceLoader.CanProvideContentFor(resourceLoadingQuery))
     {
         this.__InitComponentRuntime();
     }
     else if (XamlLoader.get_XamlFileProvider() != null && XamlLoader.get_XamlFileProvider()(((object)this).GetType()) != null)
     {
         this.__InitComponentRuntime();
     }
     else
     {
         RowDefinition           rowDefinition1      = new RowDefinition();
         RowDefinition           rowDefinition2      = new RowDefinition();
         Image                   image               = new Image();
         TranslateExtension      translateExtension1 = new TranslateExtension();
         StaticResourceExtension resourceExtension1  = new StaticResourceExtension();
         Label                   label1              = new Label();
         TranslateExtension      translateExtension2 = new TranslateExtension();
         StaticResourceExtension resourceExtension2  = new StaticResourceExtension();
         Label                   label2              = new Label();
         BindingExtension        bindingExtension1   = new BindingExtension();
         StaticResourceExtension resourceExtension3  = new StaticResourceExtension();
         TranslateExtension      translateExtension3 = new TranslateExtension();
         Button                  button              = new Button();
         StackLayout             stackLayout         = new StackLayout();
         Frame                   frame               = new Frame();
         StaticResourceExtension resourceExtension4  = new StaticResourceExtension();
         BindingExtension        bindingExtension2   = new BindingExtension();
         StaticResourceExtension resourceExtension5  = new StaticResourceExtension();
         CircleImage             circleImage         = new CircleImage();
         BindingExtension        bindingExtension3   = new BindingExtension();
         ActivityIndicator       activityIndicator   = new ActivityIndicator();
         Grid grid1 = new Grid();
         Grid grid2 = new Grid();
         DatabaseErrorPage databaseErrorPage;
         NameScope         nameScope = (NameScope)(NameScope.GetNameScope((BindableObject)(databaseErrorPage = this)) ?? (INameScope) new NameScope());
         NameScope.SetNameScope((BindableObject)databaseErrorPage, (INameScope)nameScope);
         ((DefinitionCollection <RowDefinition>)((BindableObject)grid2).GetValue((BindableProperty)Grid.RowDefinitionsProperty)).Add(rowDefinition1);
         ((DefinitionCollection <RowDefinition>)((BindableObject)grid2).GetValue((BindableProperty)Grid.RowDefinitionsProperty)).Add(rowDefinition2);
         ((BindableObject)image).SetValue((BindableProperty)Grid.RowSpanProperty, (object)2);
         ((BindableObject)image).SetValue((BindableProperty)Image.AspectProperty, (object)(Aspect)1);
         ((BindableObject)image).SetValue((BindableProperty)Image.SourceProperty, new ImageSourceConverter().ConvertFromInvariantString("Splash.png"));
         ((ICollection <View>)grid2.get_Children()).Add((View)image);
         ((BindableObject)frame).SetValue((BindableProperty)Grid.RowProperty, (object)1);
         ((BindableObject)frame).SetValue((BindableProperty)View.VerticalOptionsProperty, (object)(LayoutOptions)LayoutOptions.End);
         Label label3 = label1;
         // ISSUE: variable of the null type
         __Null              fontSizeProperty     = Label.FontSizeProperty;
         FontSizeConverter   fontSizeConverter    = new FontSizeConverter();
         XamlServiceProvider xamlServiceProvider1 = new XamlServiceProvider();
         Type     type1     = typeof(IProvideValueTarget);
         object[] objArray1 = new object[0 + 5];
         objArray1[0] = (object)label1;
         objArray1[1] = (object)stackLayout;
         objArray1[2] = (object)frame;
         objArray1[3] = (object)grid2;
         objArray1[4] = (object)databaseErrorPage;
         SimpleValueTargetProvider valueTargetProvider1;
         object obj1 = (object)(valueTargetProvider1 = new SimpleValueTargetProvider(objArray1, (object)Label.FontSizeProperty, (INameScope)nameScope));
         xamlServiceProvider1.Add(type1, (object)valueTargetProvider1);
         xamlServiceProvider1.Add(typeof(IReferenceProvider), obj1);
         Type type2 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver1 = new XmlNamespaceResolver();
         namespaceResolver1.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver1.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver1.Add("abstractions", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver1.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver1.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver1.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver1 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver1, typeof(DatabaseErrorPage).GetTypeInfo().Assembly);
         xamlServiceProvider1.Add(type2, (object)xamlTypeResolver1);
         xamlServiceProvider1.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(29, 21)));
         object obj2 = ((IExtendedTypeConverter)fontSizeConverter).ConvertFromInvariantString("Medium", (IServiceProvider)xamlServiceProvider1);
         ((BindableObject)label3).SetValue((BindableProperty)fontSizeProperty, obj2);
         ((BindableObject)label1).SetValue((BindableProperty)View.HorizontalOptionsProperty, (object)(LayoutOptions)LayoutOptions.Center);
         ((BindableObject)label1).SetValue((BindableProperty)Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
         translateExtension1.Text = "DatabaseError_Title";
         TranslateExtension  translateExtension4  = translateExtension1;
         XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
         Type     type3     = typeof(IProvideValueTarget);
         object[] objArray2 = new object[0 + 5];
         objArray2[0] = (object)label1;
         objArray2[1] = (object)stackLayout;
         objArray2[2] = (object)frame;
         objArray2[3] = (object)grid2;
         objArray2[4] = (object)databaseErrorPage;
         SimpleValueTargetProvider valueTargetProvider2;
         object obj3 = (object)(valueTargetProvider2 = new SimpleValueTargetProvider(objArray2, (object)Label.TextProperty, (INameScope)nameScope));
         xamlServiceProvider2.Add(type3, (object)valueTargetProvider2);
         xamlServiceProvider2.Add(typeof(IReferenceProvider), obj3);
         Type type4 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver2 = new XmlNamespaceResolver();
         namespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver2.Add("abstractions", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver2.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver2.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver2.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver2 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver2, typeof(DatabaseErrorPage).GetTypeInfo().Assembly);
         xamlServiceProvider2.Add(type4, (object)xamlTypeResolver2);
         xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(32, 21)));
         object obj4 = ((IMarkupExtension)translateExtension4).ProvideValue((IServiceProvider)xamlServiceProvider2);
         label1.set_Text((string)obj4);
         resourceExtension1.set_Key("DarkTextColor");
         StaticResourceExtension resourceExtension6   = resourceExtension1;
         XamlServiceProvider     xamlServiceProvider3 = new XamlServiceProvider();
         Type     type5     = typeof(IProvideValueTarget);
         object[] objArray3 = new object[0 + 5];
         objArray3[0] = (object)label1;
         objArray3[1] = (object)stackLayout;
         objArray3[2] = (object)frame;
         objArray3[3] = (object)grid2;
         objArray3[4] = (object)databaseErrorPage;
         SimpleValueTargetProvider valueTargetProvider3;
         object obj5 = (object)(valueTargetProvider3 = new SimpleValueTargetProvider(objArray3, (object)Label.TextColorProperty, (INameScope)nameScope));
         xamlServiceProvider3.Add(type5, (object)valueTargetProvider3);
         xamlServiceProvider3.Add(typeof(IReferenceProvider), obj5);
         Type type6 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver3 = new XmlNamespaceResolver();
         namespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver3.Add("abstractions", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver3.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver3.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver3.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver3 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver3, typeof(DatabaseErrorPage).GetTypeInfo().Assembly);
         xamlServiceProvider3.Add(type6, (object)xamlTypeResolver3);
         xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(33, 21)));
         object obj6 = ((IMarkupExtension)resourceExtension6).ProvideValue((IServiceProvider)xamlServiceProvider3);
         label1.set_TextColor((Color)obj6);
         ((BindableObject)label1).SetValue((BindableProperty)View.VerticalOptionsProperty, (object)(LayoutOptions)LayoutOptions.Center);
         ((ICollection <View>)((Layout <View>)stackLayout).get_Children()).Add((View)label1);
         ((BindableObject)label2).SetValue((BindableProperty)View.HorizontalOptionsProperty, (object)(LayoutOptions)LayoutOptions.Center);
         ((BindableObject)label2).SetValue((BindableProperty)Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
         translateExtension2.Text = "DatabaseError_Description";
         TranslateExtension  translateExtension5  = translateExtension2;
         XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
         Type     type7     = typeof(IProvideValueTarget);
         object[] objArray4 = new object[0 + 5];
         objArray4[0] = (object)label2;
         objArray4[1] = (object)stackLayout;
         objArray4[2] = (object)frame;
         objArray4[3] = (object)grid2;
         objArray4[4] = (object)databaseErrorPage;
         SimpleValueTargetProvider valueTargetProvider4;
         object obj7 = (object)(valueTargetProvider4 = new SimpleValueTargetProvider(objArray4, (object)Label.TextProperty, (INameScope)nameScope));
         xamlServiceProvider4.Add(type7, (object)valueTargetProvider4);
         xamlServiceProvider4.Add(typeof(IReferenceProvider), obj7);
         Type type8 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver4 = new XmlNamespaceResolver();
         namespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver4.Add("abstractions", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver4.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver4.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver4.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver4.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver4.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver4 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver4, typeof(DatabaseErrorPage).GetTypeInfo().Assembly);
         xamlServiceProvider4.Add(type8, (object)xamlTypeResolver4);
         xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(38, 21)));
         object obj8 = ((IMarkupExtension)translateExtension5).ProvideValue((IServiceProvider)xamlServiceProvider4);
         label2.set_Text((string)obj8);
         resourceExtension2.set_Key("DarkTextColor");
         StaticResourceExtension resourceExtension7   = resourceExtension2;
         XamlServiceProvider     xamlServiceProvider5 = new XamlServiceProvider();
         Type     type9     = typeof(IProvideValueTarget);
         object[] objArray5 = new object[0 + 5];
         objArray5[0] = (object)label2;
         objArray5[1] = (object)stackLayout;
         objArray5[2] = (object)frame;
         objArray5[3] = (object)grid2;
         objArray5[4] = (object)databaseErrorPage;
         SimpleValueTargetProvider valueTargetProvider5;
         object obj9 = (object)(valueTargetProvider5 = new SimpleValueTargetProvider(objArray5, (object)Label.TextColorProperty, (INameScope)nameScope));
         xamlServiceProvider5.Add(type9, (object)valueTargetProvider5);
         xamlServiceProvider5.Add(typeof(IReferenceProvider), obj9);
         Type type10 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver5 = new XmlNamespaceResolver();
         namespaceResolver5.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver5.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver5.Add("abstractions", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver5.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver5.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver5.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver5.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver5.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver5 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver5, typeof(DatabaseErrorPage).GetTypeInfo().Assembly);
         xamlServiceProvider5.Add(type10, (object)xamlTypeResolver5);
         xamlServiceProvider5.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(39, 21)));
         object obj10 = ((IMarkupExtension)resourceExtension7).ProvideValue((IServiceProvider)xamlServiceProvider5);
         label2.set_TextColor((Color)obj10);
         ((BindableObject)label2).SetValue((BindableProperty)View.VerticalOptionsProperty, (object)(LayoutOptions)LayoutOptions.Center);
         ((ICollection <View>)((Layout <View>)stackLayout).get_Children()).Add((View)label2);
         ((BindableObject)button).SetValue((BindableProperty)View.MarginProperty, (object)new Thickness(12.0));
         bindingExtension1.set_Path("OkCommand");
         BindingBase bindingBase1 = ((IMarkupExtension <BindingBase>)bindingExtension1).ProvideValue((IServiceProvider)null);
         ((BindableObject)button).SetBinding((BindableProperty)Button.CommandProperty, bindingBase1);
         ((BindableObject)button).SetValue((BindableProperty)View.HorizontalOptionsProperty, (object)(LayoutOptions)LayoutOptions.FillAndExpand);
         resourceExtension3.set_Key("FormButtonStyle");
         StaticResourceExtension resourceExtension8   = resourceExtension3;
         XamlServiceProvider     xamlServiceProvider6 = new XamlServiceProvider();
         Type     type11    = typeof(IProvideValueTarget);
         object[] objArray6 = new object[0 + 5];
         objArray6[0] = (object)button;
         objArray6[1] = (object)stackLayout;
         objArray6[2] = (object)frame;
         objArray6[3] = (object)grid2;
         objArray6[4] = (object)databaseErrorPage;
         SimpleValueTargetProvider valueTargetProvider6;
         object obj11 = (object)(valueTargetProvider6 = new SimpleValueTargetProvider(objArray6, (object)VisualElement.StyleProperty, (INameScope)nameScope));
         xamlServiceProvider6.Add(type11, (object)valueTargetProvider6);
         xamlServiceProvider6.Add(typeof(IReferenceProvider), obj11);
         Type type12 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver6 = new XmlNamespaceResolver();
         namespaceResolver6.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver6.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver6.Add("abstractions", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver6.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver6.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver6.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver6.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver6.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver6 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver6, typeof(DatabaseErrorPage).GetTypeInfo().Assembly);
         xamlServiceProvider6.Add(type12, (object)xamlTypeResolver6);
         xamlServiceProvider6.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(45, 21)));
         object obj12 = ((IMarkupExtension)resourceExtension8).ProvideValue((IServiceProvider)xamlServiceProvider6);
         ((NavigableElement)button).set_Style((Style)obj12);
         translateExtension3.Text = "DatabaseError_Ok";
         TranslateExtension  translateExtension6  = translateExtension3;
         XamlServiceProvider xamlServiceProvider7 = new XamlServiceProvider();
         Type     type13    = typeof(IProvideValueTarget);
         object[] objArray7 = new object[0 + 5];
         objArray7[0] = (object)button;
         objArray7[1] = (object)stackLayout;
         objArray7[2] = (object)frame;
         objArray7[3] = (object)grid2;
         objArray7[4] = (object)databaseErrorPage;
         SimpleValueTargetProvider valueTargetProvider7;
         object obj13 = (object)(valueTargetProvider7 = new SimpleValueTargetProvider(objArray7, (object)Button.TextProperty, (INameScope)nameScope));
         xamlServiceProvider7.Add(type13, (object)valueTargetProvider7);
         xamlServiceProvider7.Add(typeof(IReferenceProvider), obj13);
         Type type14 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver7 = new XmlNamespaceResolver();
         namespaceResolver7.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver7.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver7.Add("abstractions", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver7.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver7.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver7.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver7.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver7.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver7 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver7, typeof(DatabaseErrorPage).GetTypeInfo().Assembly);
         xamlServiceProvider7.Add(type14, (object)xamlTypeResolver7);
         xamlServiceProvider7.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(46, 21)));
         object obj14 = ((IMarkupExtension)translateExtension6).ProvideValue((IServiceProvider)xamlServiceProvider7);
         button.set_Text((string)obj14);
         ((ICollection <View>)((Layout <View>)stackLayout).get_Children()).Add((View)button);
         ((BindableObject)frame).SetValue((BindableProperty)ContentView.ContentProperty, (object)stackLayout);
         ((ICollection <View>)grid2.get_Children()).Add((View)frame);
         ((BindableObject)grid1).SetValue((BindableProperty)Grid.RowProperty, (object)0);
         ((BindableObject)grid1).SetValue((BindableProperty)Grid.RowSpanProperty, (object)2);
         resourceExtension4.set_Key("OverlayColor");
         StaticResourceExtension resourceExtension9   = resourceExtension4;
         XamlServiceProvider     xamlServiceProvider8 = new XamlServiceProvider();
         Type     type15    = typeof(IProvideValueTarget);
         object[] objArray8 = new object[0 + 3];
         objArray8[0] = (object)grid1;
         objArray8[1] = (object)grid2;
         objArray8[2] = (object)databaseErrorPage;
         SimpleValueTargetProvider valueTargetProvider8;
         object obj15 = (object)(valueTargetProvider8 = new SimpleValueTargetProvider(objArray8, (object)VisualElement.BackgroundColorProperty, (INameScope)nameScope));
         xamlServiceProvider8.Add(type15, (object)valueTargetProvider8);
         xamlServiceProvider8.Add(typeof(IReferenceProvider), obj15);
         Type type16 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver8 = new XmlNamespaceResolver();
         namespaceResolver8.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver8.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver8.Add("abstractions", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver8.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver8.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver8.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver8.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver8.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver8 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver8, typeof(DatabaseErrorPage).GetTypeInfo().Assembly);
         xamlServiceProvider8.Add(type16, (object)xamlTypeResolver8);
         xamlServiceProvider8.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(52, 13)));
         object obj16 = ((IMarkupExtension)resourceExtension9).ProvideValue((IServiceProvider)xamlServiceProvider8);
         ((VisualElement)grid1).set_BackgroundColor((Color)obj16);
         bindingExtension2.set_Path("IsLoading");
         BindingBase bindingBase2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue((IServiceProvider)null);
         ((BindableObject)grid1).SetBinding((BindableProperty)VisualElement.IsVisibleProperty, bindingBase2);
         ((BindableObject)circleImage).SetValue((BindableProperty)CircleImage.FillColorProperty, (object)(Color)Color.White);
         resourceExtension5.set_Key("ListItemIconStyle");
         StaticResourceExtension resourceExtension10  = resourceExtension5;
         XamlServiceProvider     xamlServiceProvider9 = new XamlServiceProvider();
         Type     type17    = typeof(IProvideValueTarget);
         object[] objArray9 = new object[0 + 4];
         objArray9[0] = (object)circleImage;
         objArray9[1] = (object)grid1;
         objArray9[2] = (object)grid2;
         objArray9[3] = (object)databaseErrorPage;
         SimpleValueTargetProvider valueTargetProvider9;
         object obj17 = (object)(valueTargetProvider9 = new SimpleValueTargetProvider(objArray9, (object)VisualElement.StyleProperty, (INameScope)nameScope));
         xamlServiceProvider9.Add(type17, (object)valueTargetProvider9);
         xamlServiceProvider9.Add(typeof(IReferenceProvider), obj17);
         Type type18 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver9 = new XmlNamespaceResolver();
         namespaceResolver9.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver9.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver9.Add("abstractions", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver9.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver9.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver9.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver9.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver9.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver9 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver9, typeof(DatabaseErrorPage).GetTypeInfo().Assembly);
         xamlServiceProvider9.Add(type18, (object)xamlTypeResolver9);
         xamlServiceProvider9.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(54, 57)));
         object obj18 = ((IMarkupExtension)resourceExtension10).ProvideValue((IServiceProvider)xamlServiceProvider9);
         ((NavigableElement)circleImage).set_Style((Style)obj18);
         ((ICollection <View>)grid1.get_Children()).Add((View)circleImage);
         bindingExtension3.set_Path("IsLoading");
         BindingBase bindingBase3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue((IServiceProvider)null);
         ((BindableObject)activityIndicator).SetBinding((BindableProperty)ActivityIndicator.IsRunningProperty, bindingBase3);
         ((ICollection <View>)grid1.get_Children()).Add((View)activityIndicator);
         ((ICollection <View>)grid2.get_Children()).Add((View)grid1);
         ((BindableObject)databaseErrorPage).SetValue((BindableProperty)ContentPage.ContentProperty, (object)grid2);
     }
 }
Ejemplo n.º 11
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(FuncView).GetTypeInfo().Assembly.GetName(), "Layout/FuncView.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            RowDefinition        rowDefinition        = new RowDefinition();
            RowDefinition        rowDefinition2       = new RowDefinition();
            TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
            SvgCachedImage       svgCachedImage       = new SvgCachedImage();
            Label     label     = new Label();
            Grid      grid      = new Grid();
            Frame     frame     = new Frame();
            NameScope nameScope = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(frame, nameScope);
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(rowDefinition, nameScope);
            NameScope.SetNameScope(rowDefinition2, nameScope);
            NameScope.SetNameScope(tapGestureRecognizer, nameScope);
            NameScope.SetNameScope(svgCachedImage, nameScope);
            ((INameScope)nameScope).RegisterName("image", svgCachedImage);
            if (svgCachedImage.StyleId == null)
            {
                svgCachedImage.StyleId = "image";
            }
            NameScope.SetNameScope(label, nameScope);
            ((INameScope)nameScope).RegisterName("label", label);
            if (label.StyleId == null)
            {
                label.StyleId = "label";
            }
            this.image = svgCachedImage;
            this.label = label;
            frame.SetValue(Frame.HasShadowProperty, false);
            frame.SetValue(Frame.CornerRadiusProperty, 5f);
            frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(0.0));
            grid.SetValue(Grid.RowSpacingProperty, 3.0);
            rowDefinition.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("3*"));
            grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition);
            rowDefinition2.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("2*"));
            grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition2);
            tapGestureRecognizer.Tapped += this.Handle_Tapped;
            grid.GestureRecognizers.Add(tapGestureRecognizer);
            svgCachedImage.SetValue(CachedImage.AspectProperty, Aspect.AspectFit);
            svgCachedImage.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
            svgCachedImage.SetValue(View.VerticalOptionsProperty, LayoutOptions.End);
            svgCachedImage.SetValue(VisualElement.WidthRequestProperty, 50.0);
            svgCachedImage.SetValue(VisualElement.HeightRequestProperty, 50.0);
            svgCachedImage.SetValue(Grid.RowProperty, 0);
            grid.Children.Add(svgCachedImage);
            label.SetValue(Label.TextColorProperty, Color.Black);
            BindableObject         bindableObject        = label;
            BindableProperty       fontSizeProperty      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
            string value = "Medium";
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 4];
            array[0] = label;
            array[1] = grid;
            array[2] = frame;
            array[3] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, Label.FontSizeProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(FuncView).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(15, 53)));
            bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
            label.SetValue(Label.VerticalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
            label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Start);
            label.SetValue(Grid.RowProperty, 1);
            grid.Children.Add(label);
            frame.SetValue(ContentView.ContentProperty, grid);
            this.SetValue(ContentView.ContentProperty, frame);
        }
Ejemplo n.º 12
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(CarPage).GetTypeInfo().Assembly.GetName(), "Views/CarPage.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            BindingExtension       bindingExtension       = new BindingExtension();
            RowDefinition          rowDefinition          = new RowDefinition();
            RowDefinition          rowDefinition2         = new RowDefinition();
            ColumnDefinition       columnDefinition       = new ColumnDefinition();
            ColumnDefinition       columnDefinition2      = new ColumnDefinition();
            BindingExtension       bindingExtension2      = new BindingExtension();
            TranslateExtension     translateExtension     = new TranslateExtension();
            BindingExtension       bindingExtension3      = new BindingExtension();
            BindingExtension       bindingExtension4      = new BindingExtension();
            EventToCommandBehavior eventToCommandBehavior = new EventToCommandBehavior();
            SearchBar            searchBar            = new SearchBar();
            BindingExtension     bindingExtension5    = new BindingExtension();
            BindingExtension     bindingExtension6    = new BindingExtension();
            TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
            SvgCachedImage       svgCachedImage       = new SvgCachedImage();
            Grid                   grid = new Grid();
            BindingExtension       bindingExtension7       = new BindingExtension();
            BindingExtension       bindingExtension8       = new BindingExtension();
            EventToCommandBehavior eventToCommandBehavior2 = new EventToCommandBehavior();
            DataTemplate           dataTemplate            = new DataTemplate();
            ListView               listView           = new ListView();
            Grid                   grid2              = new Grid();
            BindingExtension       bindingExtension9  = new BindingExtension();
            BindingExtension       bindingExtension10 = new BindingExtension();
            ActivityIndicator      activityIndicator  = new ActivityIndicator();
            Grid                   grid3              = new Grid();
            NameScope              nameScope          = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(grid3, nameScope);
            NameScope.SetNameScope(grid2, nameScope);
            NameScope.SetNameScope(rowDefinition, nameScope);
            NameScope.SetNameScope(rowDefinition2, nameScope);
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(columnDefinition, nameScope);
            NameScope.SetNameScope(columnDefinition2, nameScope);
            NameScope.SetNameScope(searchBar, nameScope);
            NameScope.SetNameScope(eventToCommandBehavior, nameScope);
            NameScope.SetNameScope(svgCachedImage, nameScope);
            NameScope.SetNameScope(tapGestureRecognizer, nameScope);
            NameScope.SetNameScope(listView, nameScope);
            ((INameScope)nameScope).RegisterName("listview", listView);
            if (listView.StyleId == null)
            {
                listView.StyleId = "listview";
            }
            NameScope.SetNameScope(eventToCommandBehavior2, nameScope);
            NameScope.SetNameScope(activityIndicator, nameScope);
            this.listview = listView;
            this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
            bindingExtension.Path = "Title";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null);

            this.SetBinding(Page.TitleProperty, binding);
            rowDefinition.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid2.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition);
            rowDefinition2.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid2.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition2);
            grid.SetValue(Grid.RowProperty, 0);
            grid.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            grid.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(10.0));
            grid.SetValue(Grid.ColumnSpacingProperty, 10.0);
            columnDefinition.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition);
            columnDefinition2.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("24"));
            grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition2);
            searchBar.SetValue(Grid.ColumnProperty, 0);
            bindingExtension2.Path = "CarNo";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null);

            searchBar.SetBinding(SearchBar.TextProperty, binding2);
            translateExtension.Text = "search";
            IMarkupExtension    markupExtension     = translateExtension;
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 5];
            array[0] = searchBar;
            array[1] = grid;
            array[2] = grid2;
            array[3] = grid3;
            array[4] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, SearchBar.PlaceholderProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver.Add("local", "clr-namespace:RFID");
            xmlNamespaceResolver.Add("b", "clr-namespace:Prism.Behaviors;assembly=Prism.Forms");
            xmlNamespaceResolver.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(CarPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(22, 60)));
            object placeholder = markupExtension.ProvideValue(xamlServiceProvider);

            searchBar.Placeholder = placeholder;
            searchBar.SetValue(SearchBar.TextColorProperty, new Color(0.501960813999176, 0.501960813999176, 0.501960813999176, 1.0));
            bindingExtension3.Path = "SearchCommand";
            BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null);

            searchBar.SetBinding(SearchBar.SearchCommandProperty, binding3);
            searchBar.SetValue(VisualElement.BackgroundColorProperty, new Color(0.93725490570068359, 0.93725490570068359, 0.93725490570068359, 1.0));
            eventToCommandBehavior.SetValue(EventToCommandBehavior.EventNameProperty, "TextChanged");
            bindingExtension4.Path = "SearchCommand";
            BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue(null);

            eventToCommandBehavior.SetBinding(EventToCommandBehavior.CommandProperty, binding4);
            ((ICollection <Behavior>)searchBar.GetValue(VisualElement.BehaviorsProperty)).Add(eventToCommandBehavior);
            grid.Children.Add(searchBar);
            svgCachedImage.SetValue(Grid.ColumnProperty, 1);
            svgCachedImage.SetValue(VisualElement.WidthRequestProperty, 24.0);
            bindingExtension5.Path = "IsException";
            BindingBase binding5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue(null);

            svgCachedImage.SetBinding(VisualElement.IsVisibleProperty, binding5);
            svgCachedImage.SetValue(VisualElement.HeightRequestProperty, 24.0);
            svgCachedImage.SetValue(CachedImage.SourceProperty, new FFImageLoading.Forms.ImageSourceConverter().ConvertFromInvariantString("plus.svg"));
            bindingExtension6.Path = "AddCommand";
            BindingBase binding6 = ((IMarkupExtension <BindingBase>)bindingExtension6).ProvideValue(null);

            tapGestureRecognizer.SetBinding(TapGestureRecognizer.CommandProperty, binding6);
            svgCachedImage.GestureRecognizers.Add(tapGestureRecognizer);
            grid.Children.Add(svgCachedImage);
            grid2.Children.Add(grid);
            listView.SetValue(Grid.RowProperty, 1);
            listView.SetValue(VisualElement.BackgroundColorProperty, new Color(0.98039215803146362, 0.98039215803146362, 0.98039215803146362, 1.0));
            bindingExtension7.Path = "CarSource";
            BindingBase binding7 = ((IMarkupExtension <BindingBase>)bindingExtension7).ProvideValue(null);

            listView.SetBinding(ItemsView <Cell> .ItemsSourceProperty, binding7);
            listView.ItemSelected += this.Handle_ItemSelected;
            eventToCommandBehavior2.SetValue(EventToCommandBehavior.EventNameProperty, "ItemTapped");
            bindingExtension8.Path = "SelectCommand";
            BindingBase binding8 = ((IMarkupExtension <BindingBase>)bindingExtension8).ProvideValue(null);

            eventToCommandBehavior2.SetBinding(EventToCommandBehavior.CommandProperty, binding8);
            eventToCommandBehavior2.SetValue(EventToCommandBehavior.EventArgsParameterPathProperty, "Item");
            ((ICollection <Behavior>)listView.GetValue(VisualElement.BehaviorsProperty)).Add(eventToCommandBehavior2);
            IDataTemplate dataTemplate2 = dataTemplate;

            CarPage.< InitializeComponent > _anonXamlCDataTemplate_4 <InitializeComponent> _anonXamlCDataTemplate_ = new CarPage.< InitializeComponent > _anonXamlCDataTemplate_4();
            object[]  array2 = new object[0 + 5];
            array2[0] = dataTemplate;
            array2[1] = listView;
            array2[2] = grid2;
            array2[3] = grid3;
            array2[4] = this;
Ejemplo n.º 13
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(QueryLockPage).GetTypeInfo().Assembly.GetName(), "Views/QueryLockPage.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            BindingExtension  bindingExtension  = new BindingExtension();
            ColumnDefinition  columnDefinition  = new ColumnDefinition();
            ColumnDefinition  columnDefinition2 = new ColumnDefinition();
            RowDefinition     rowDefinition     = new RowDefinition();
            RowDefinition     rowDefinition2    = new RowDefinition();
            Label             label             = new Label();
            BindingExtension  bindingExtension2 = new BindingExtension();
            Label             label2            = new Label();
            Label             label3            = new Label();
            BindingExtension  bindingExtension3 = new BindingExtension();
            Label             label4            = new Label();
            Grid              grid = new Grid();
            BindingExtension  bindingExtension4 = new BindingExtension();
            DataTemplate      dataTemplate      = new DataTemplate();
            ListView          listView          = new ListView();
            StackLayout       stackLayout       = new StackLayout();
            BindingExtension  bindingExtension5 = new BindingExtension();
            BindingExtension  bindingExtension6 = new BindingExtension();
            ActivityIndicator activityIndicator = new ActivityIndicator();
            Grid              grid2             = new Grid();
            NameScope         nameScope         = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(grid2, nameScope);
            NameScope.SetNameScope(stackLayout, nameScope);
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(columnDefinition, nameScope);
            NameScope.SetNameScope(columnDefinition2, nameScope);
            NameScope.SetNameScope(rowDefinition, nameScope);
            NameScope.SetNameScope(rowDefinition2, nameScope);
            NameScope.SetNameScope(label, nameScope);
            NameScope.SetNameScope(label2, nameScope);
            NameScope.SetNameScope(label3, nameScope);
            NameScope.SetNameScope(label4, nameScope);
            NameScope.SetNameScope(listView, nameScope);
            ((INameScope)nameScope).RegisterName("listView", listView);
            if (listView.StyleId == null)
            {
                listView.StyleId = "listView";
            }
            NameScope.SetNameScope(activityIndicator, nameScope);
            this.listView         = listView;
            bindingExtension.Path = "Title";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null);

            this.SetBinding(Page.TitleProperty, binding);
            stackLayout.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(0.0));
            stackLayout.SetValue(StackLayout.SpacingProperty, 0.0);
            grid.SetValue(VisualElement.BackgroundColorProperty, Color.Silver);
            grid.SetValue(Grid.RowSpacingProperty, 5.0);
            grid.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(10.0, 5.0, 10.0, 5.0));
            columnDefinition.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition);
            columnDefinition2.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("3*"));
            grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition2);
            rowDefinition.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition);
            rowDefinition2.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition2);
            label.SetValue(Grid.ColumnProperty, 0);
            label.SetValue(Label.TextProperty, "施封位置");
            label.SetValue(Label.TextColorProperty, new Color(0.501960813999176, 0.501960813999176, 0.501960813999176, 1.0));
            BindableObject         bindableObject        = label;
            BindableProperty       fontSizeProperty      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
            string value = "Default";
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 5];
            array[0] = label;
            array[1] = grid;
            array[2] = stackLayout;
            array[3] = grid2;
            array[4] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, Label.FontSizeProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("layout", "clr-namespace:RFID.Layout");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(QueryLockPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(17, 74)));
            bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
            label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Start"));
            grid.Children.Add(label);
            label2.SetValue(Grid.ColumnProperty, 1);
            bindingExtension2.Path = "Place";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null);

            label2.SetBinding(Label.TextProperty, binding2);
            BindableObject         bindableObject2        = label2;
            BindableProperty       fontSizeProperty2      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
            string value2 = "Default";
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 5];
            array2[0] = label2;
            array2[1] = grid;
            array2[2] = stackLayout;
            array2[3] = grid2;
            array2[4] = this;
            xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, Label.FontSizeProperty));
            xamlServiceProvider2.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver2.Add("layout", "clr-namespace:RFID.Layout");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(QueryLockPage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(18, 71)));
            bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
            label2.SetValue(Label.TextColorProperty, Color.Black);
            label2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            grid.Children.Add(label2);
            label3.SetValue(Grid.RowProperty, 1);
            label3.SetValue(Grid.ColumnProperty, 0);
            label3.SetValue(Label.TextProperty, "目的地址");
            label3.SetValue(Label.TextColorProperty, new Color(0.501960813999176, 0.501960813999176, 0.501960813999176, 1.0));
            BindableObject         bindableObject3        = label3;
            BindableProperty       fontSizeProperty3      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter3 = new FontSizeConverter();
            string value3 = "Default";
            XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
            Type typeFromHandle5 = typeof(IProvideValueTarget);

            object[] array3 = new object[0 + 5];
            array3[0] = label3;
            array3[1] = grid;
            array3[2] = stackLayout;
            array3[3] = grid2;
            array3[4] = this;
            xamlServiceProvider3.Add(typeFromHandle5, new SimpleValueTargetProvider(array3, Label.FontSizeProperty));
            xamlServiceProvider3.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle6 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();

            xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver3.Add("layout", "clr-namespace:RFID.Layout");
            xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(QueryLockPage).GetTypeInfo().Assembly));
            xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(19, 87)));
            bindableObject3.SetValue(fontSizeProperty3, extendedTypeConverter3.ConvertFromInvariantString(value3, xamlServiceProvider3));
            label3.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            label3.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            label3.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Start"));
            grid.Children.Add(label3);
            label4.SetValue(Grid.RowProperty, 1);
            label4.SetValue(Grid.ColumnProperty, 1);
            bindingExtension3.Path = "Address";
            BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null);

            label4.SetBinding(Label.TextProperty, binding3);
            BindableObject         bindableObject4        = label4;
            BindableProperty       fontSizeProperty4      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter4 = new FontSizeConverter();
            string value4 = "Default";
            XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
            Type typeFromHandle7 = typeof(IProvideValueTarget);

            object[] array4 = new object[0 + 5];
            array4[0] = label4;
            array4[1] = grid;
            array4[2] = stackLayout;
            array4[3] = grid2;
            array4[4] = this;
            xamlServiceProvider4.Add(typeFromHandle7, new SimpleValueTargetProvider(array4, Label.FontSizeProperty));
            xamlServiceProvider4.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle8 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver4 = new XmlNamespaceResolver();

            xmlNamespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver4.Add("layout", "clr-namespace:RFID.Layout");
            xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(QueryLockPage).GetTypeInfo().Assembly));
            xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(20, 86)));
            bindableObject4.SetValue(fontSizeProperty4, extendedTypeConverter4.ConvertFromInvariantString(value4, xamlServiceProvider4));
            label4.SetValue(Label.TextColorProperty, Color.Black);
            label4.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            label4.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            grid.Children.Add(label4);
            stackLayout.Children.Add(grid);
            listView.SetValue(ListView.SelectionModeProperty, ListViewSelectionMode.None);
            bindingExtension4.Path = "Queries";
            BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue(null);

            listView.SetBinding(ItemsView <Cell> .ItemsSourceProperty, binding4);
            listView.SetValue(ListView.HasUnevenRowsProperty, true);
            IDataTemplate dataTemplate2 = dataTemplate;

            QueryLockPage.< InitializeComponent > _anonXamlCDataTemplate_2 <InitializeComponent> _anonXamlCDataTemplate_ = new QueryLockPage.< InitializeComponent > _anonXamlCDataTemplate_2();
            object[]        array5 = new object[0 + 5];
            array5[0] = dataTemplate;
            array5[1] = listView;
            array5[2] = stackLayout;
            array5[3] = grid2;
            array5[4] = this;
Ejemplo n.º 14
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(ChangePwdPage).GetTypeInfo().Assembly.GetName(), "Views/ChangePwdPage.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            BindingExtension   bindingExtension    = new BindingExtension();
            TranslateExtension translateExtension  = new TranslateExtension();
            BindingExtension   bindingExtension2   = new BindingExtension();
            ToolbarItem        toolbarItem         = new ToolbarItem();
            TranslateExtension translateExtension2 = new TranslateExtension();
            BindingExtension   bindingExtension3   = new BindingExtension();
            PasswordEntryCell  passwordEntryCell   = new PasswordEntryCell();
            TranslateExtension translateExtension3 = new TranslateExtension();
            BindingExtension   bindingExtension4   = new BindingExtension();
            PasswordEntryCell  passwordEntryCell2  = new PasswordEntryCell();
            TranslateExtension translateExtension4 = new TranslateExtension();
            BindingExtension   bindingExtension5   = new BindingExtension();
            PasswordEntryCell  passwordEntryCell3  = new PasswordEntryCell();
            TableSection       tableSection        = new TableSection();
            TableRoot          tableRoot           = new TableRoot();
            TableView          tableView           = new TableView();
            NameScope          nameScope           = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(toolbarItem, nameScope);
            NameScope.SetNameScope(tableView, nameScope);
            NameScope.SetNameScope(tableRoot, nameScope);
            NameScope.SetNameScope(tableSection, nameScope);
            NameScope.SetNameScope(passwordEntryCell, nameScope);
            NameScope.SetNameScope(passwordEntryCell2, nameScope);
            NameScope.SetNameScope(passwordEntryCell3, nameScope);
            this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
            bindingExtension.Path = "Title";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null);

            this.SetBinding(Page.TitleProperty, binding);
            translateExtension.Text = "confirm";
            IMarkupExtension    markupExtension     = translateExtension;
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 2];
            array[0] = toolbarItem;
            array[1] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, MenuItem.TextProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver.Add("local", "clr-namespace:RFID");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(ChangePwdPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(11, 22)));
            object text = markupExtension.ProvideValue(xamlServiceProvider);

            toolbarItem.Text       = text;
            toolbarItem.Order      = ToolbarItemOrder.Primary;
            bindingExtension2.Path = "SaveCommand";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null);

            toolbarItem.SetBinding(MenuItem.CommandProperty, binding2);
            this.ToolbarItems.Add(toolbarItem);
            tableView.Intent = TableIntent.Data;
            tableView.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            translateExtension2.Text = "oldpwd";
            IMarkupExtension    markupExtension2     = translateExtension2;
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 5];
            array2[0] = passwordEntryCell;
            array2[1] = tableSection;
            array2[2] = tableRoot;
            array2[3] = tableView;
            array2[4] = this;
            xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, EntryCell.LabelProperty));
            xamlServiceProvider2.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver2.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver2.Add("local", "clr-namespace:RFID");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(ChangePwdPage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(16, 43)));
            object label = markupExtension2.ProvideValue(xamlServiceProvider2);

            passwordEntryCell.Label = label;
            bindingExtension3.Path  = "OldPwd";
            BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null);

            passwordEntryCell.SetBinding(EntryCell.TextProperty, binding3);
            tableSection.Add(passwordEntryCell);
            translateExtension3.Text = "newpwd";
            IMarkupExtension    markupExtension3     = translateExtension3;
            XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
            Type typeFromHandle5 = typeof(IProvideValueTarget);

            object[] array3 = new object[0 + 5];
            array3[0] = passwordEntryCell2;
            array3[1] = tableSection;
            array3[2] = tableRoot;
            array3[3] = tableView;
            array3[4] = this;
            xamlServiceProvider3.Add(typeFromHandle5, new SimpleValueTargetProvider(array3, EntryCell.LabelProperty));
            xamlServiceProvider3.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle6 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();

            xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver3.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver3.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver3.Add("local", "clr-namespace:RFID");
            xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(ChangePwdPage).GetTypeInfo().Assembly));
            xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(17, 44)));
            object label2 = markupExtension3.ProvideValue(xamlServiceProvider3);

            passwordEntryCell2.Label = label2;
            bindingExtension4.Path   = "NewPwd";
            BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue(null);

            passwordEntryCell2.SetBinding(EntryCell.TextProperty, binding4);
            tableSection.Add(passwordEntryCell2);
            translateExtension4.Text = "repwd";
            IMarkupExtension    markupExtension4     = translateExtension4;
            XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
            Type typeFromHandle7 = typeof(IProvideValueTarget);

            object[] array4 = new object[0 + 5];
            array4[0] = passwordEntryCell3;
            array4[1] = tableSection;
            array4[2] = tableRoot;
            array4[3] = tableView;
            array4[4] = this;
            xamlServiceProvider4.Add(typeFromHandle7, new SimpleValueTargetProvider(array4, EntryCell.LabelProperty));
            xamlServiceProvider4.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle8 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver4 = new XmlNamespaceResolver();

            xmlNamespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver4.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver4.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver4.Add("local", "clr-namespace:RFID");
            xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(ChangePwdPage).GetTypeInfo().Assembly));
            xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(18, 44)));
            object label3 = markupExtension4.ProvideValue(xamlServiceProvider4);

            passwordEntryCell3.Label = label3;
            bindingExtension5.Path   = "RePwd";
            BindingBase binding5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue(null);

            passwordEntryCell3.SetBinding(EntryCell.TextProperty, binding5);
            tableSection.Add(passwordEntryCell3);
            tableRoot.Add(tableSection);
            tableView.Root = tableRoot;
            this.SetValue(ContentPage.ContentProperty, tableView);
        }
Ejemplo n.º 15
0
 private void InitializeComponent()
 {
     ResourceLoader.ResourceLoadingQuery resourceLoadingQuery = new ResourceLoader.ResourceLoadingQuery();
     resourceLoadingQuery.set_AssemblyName(typeof(NeedUpdatePage).GetTypeInfo().Assembly.GetName());
     resourceLoadingQuery.set_ResourcePath("Views/NeedUpdatePage.xaml");
     resourceLoadingQuery.set_Instance((object)this);
     if (ResourceLoader.CanProvideContentFor(resourceLoadingQuery))
     {
         this.__InitComponentRuntime();
     }
     else if (XamlLoader.get_XamlFileProvider() != null && XamlLoader.get_XamlFileProvider()(((object)this).GetType()) != null)
     {
         this.__InitComponentRuntime();
     }
     else
     {
         RowDefinition           rowDefinition1      = new RowDefinition();
         RowDefinition           rowDefinition2      = new RowDefinition();
         Image                   image               = new Image();
         TranslateExtension      translateExtension1 = new TranslateExtension();
         StaticResourceExtension resourceExtension1  = new StaticResourceExtension();
         Label                   label               = new Label();
         BindingExtension        bindingExtension    = new BindingExtension();
         StaticResourceExtension resourceExtension2  = new StaticResourceExtension();
         TranslateExtension      translateExtension2 = new TranslateExtension();
         Button                  button              = new Button();
         StackLayout             stackLayout         = new StackLayout();
         Frame                   frame               = new Frame();
         Grid           grid = new Grid();
         NeedUpdatePage needUpdatePage;
         NameScope      nameScope = (NameScope)(NameScope.GetNameScope((BindableObject)(needUpdatePage = this)) ?? (INameScope) new NameScope());
         NameScope.SetNameScope((BindableObject)needUpdatePage, (INameScope)nameScope);
         ((DefinitionCollection <RowDefinition>)((BindableObject)grid).GetValue((BindableProperty)Grid.RowDefinitionsProperty)).Add(rowDefinition1);
         ((DefinitionCollection <RowDefinition>)((BindableObject)grid).GetValue((BindableProperty)Grid.RowDefinitionsProperty)).Add(rowDefinition2);
         ((BindableObject)image).SetValue((BindableProperty)Grid.RowSpanProperty, (object)2);
         ((BindableObject)image).SetValue((BindableProperty)Image.AspectProperty, (object)(Aspect)1);
         ((BindableObject)image).SetValue((BindableProperty)Image.SourceProperty, new ImageSourceConverter().ConvertFromInvariantString("Splash.png"));
         ((ICollection <View>)grid.get_Children()).Add((View)image);
         ((BindableObject)frame).SetValue((BindableProperty)Grid.RowProperty, (object)1);
         ((BindableObject)frame).SetValue((BindableProperty)View.VerticalOptionsProperty, (object)(LayoutOptions)LayoutOptions.End);
         ((BindableObject)label).SetValue((BindableProperty)View.HorizontalOptionsProperty, (object)(LayoutOptions)LayoutOptions.Center);
         ((BindableObject)label).SetValue((BindableProperty)Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
         translateExtension1.Text = "NeedUpdatePage_UpdateInfo_Text";
         TranslateExtension  translateExtension3  = translateExtension1;
         XamlServiceProvider xamlServiceProvider1 = new XamlServiceProvider();
         Type     type1     = typeof(IProvideValueTarget);
         object[] objArray1 = new object[0 + 5];
         objArray1[0] = (object)label;
         objArray1[1] = (object)stackLayout;
         objArray1[2] = (object)frame;
         objArray1[3] = (object)grid;
         objArray1[4] = (object)needUpdatePage;
         SimpleValueTargetProvider valueTargetProvider1;
         object obj1 = (object)(valueTargetProvider1 = new SimpleValueTargetProvider(objArray1, (object)Label.TextProperty, (INameScope)nameScope));
         xamlServiceProvider1.Add(type1, (object)valueTargetProvider1);
         xamlServiceProvider1.Add(typeof(IReferenceProvider), obj1);
         Type type2 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver1 = new XmlNamespaceResolver();
         namespaceResolver1.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver1.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver1.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver1.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver1.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver1 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver1, typeof(NeedUpdatePage).GetTypeInfo().Assembly);
         xamlServiceProvider1.Add(type2, (object)xamlTypeResolver1);
         xamlServiceProvider1.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(30, 21)));
         object obj2 = ((IMarkupExtension)translateExtension3).ProvideValue((IServiceProvider)xamlServiceProvider1);
         label.set_Text((string)obj2);
         resourceExtension1.set_Key("DarkTextColor");
         StaticResourceExtension resourceExtension3   = resourceExtension1;
         XamlServiceProvider     xamlServiceProvider2 = new XamlServiceProvider();
         Type     type3     = typeof(IProvideValueTarget);
         object[] objArray2 = new object[0 + 5];
         objArray2[0] = (object)label;
         objArray2[1] = (object)stackLayout;
         objArray2[2] = (object)frame;
         objArray2[3] = (object)grid;
         objArray2[4] = (object)needUpdatePage;
         SimpleValueTargetProvider valueTargetProvider2;
         object obj3 = (object)(valueTargetProvider2 = new SimpleValueTargetProvider(objArray2, (object)Label.TextColorProperty, (INameScope)nameScope));
         xamlServiceProvider2.Add(type3, (object)valueTargetProvider2);
         xamlServiceProvider2.Add(typeof(IReferenceProvider), obj3);
         Type type4 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver2 = new XmlNamespaceResolver();
         namespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver2.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver2.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver2.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver2 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver2, typeof(NeedUpdatePage).GetTypeInfo().Assembly);
         xamlServiceProvider2.Add(type4, (object)xamlTypeResolver2);
         xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(31, 21)));
         object obj4 = ((IMarkupExtension)resourceExtension3).ProvideValue((IServiceProvider)xamlServiceProvider2);
         label.set_TextColor((Color)obj4);
         ((BindableObject)label).SetValue((BindableProperty)View.VerticalOptionsProperty, (object)(LayoutOptions)LayoutOptions.Center);
         ((ICollection <View>)((Layout <View>)stackLayout).get_Children()).Add((View)label);
         ((BindableObject)button).SetValue((BindableProperty)View.MarginProperty, (object)new Thickness(12.0));
         bindingExtension.set_Path("UpdateCommand");
         BindingBase bindingBase = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue((IServiceProvider)null);
         ((BindableObject)button).SetBinding((BindableProperty)Button.CommandProperty, bindingBase);
         resourceExtension2.set_Key("FormButtonStyle");
         StaticResourceExtension resourceExtension4   = resourceExtension2;
         XamlServiceProvider     xamlServiceProvider3 = new XamlServiceProvider();
         Type     type5     = typeof(IProvideValueTarget);
         object[] objArray3 = new object[0 + 5];
         objArray3[0] = (object)button;
         objArray3[1] = (object)stackLayout;
         objArray3[2] = (object)frame;
         objArray3[3] = (object)grid;
         objArray3[4] = (object)needUpdatePage;
         SimpleValueTargetProvider valueTargetProvider3;
         object obj5 = (object)(valueTargetProvider3 = new SimpleValueTargetProvider(objArray3, (object)VisualElement.StyleProperty, (INameScope)nameScope));
         xamlServiceProvider3.Add(type5, (object)valueTargetProvider3);
         xamlServiceProvider3.Add(typeof(IReferenceProvider), obj5);
         Type type6 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver3 = new XmlNamespaceResolver();
         namespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver3.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver3.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver3.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver3 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver3, typeof(NeedUpdatePage).GetTypeInfo().Assembly);
         xamlServiceProvider3.Add(type6, (object)xamlTypeResolver3);
         xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(36, 21)));
         object obj6 = ((IMarkupExtension)resourceExtension4).ProvideValue((IServiceProvider)xamlServiceProvider3);
         ((NavigableElement)button).set_Style((Style)obj6);
         translateExtension2.Text = "NeedUpdatePage_Button_Text";
         TranslateExtension  translateExtension4  = translateExtension2;
         XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
         Type     type7     = typeof(IProvideValueTarget);
         object[] objArray4 = new object[0 + 5];
         objArray4[0] = (object)button;
         objArray4[1] = (object)stackLayout;
         objArray4[2] = (object)frame;
         objArray4[3] = (object)grid;
         objArray4[4] = (object)needUpdatePage;
         SimpleValueTargetProvider valueTargetProvider4;
         object obj7 = (object)(valueTargetProvider4 = new SimpleValueTargetProvider(objArray4, (object)Button.TextProperty, (INameScope)nameScope));
         xamlServiceProvider4.Add(type7, (object)valueTargetProvider4);
         xamlServiceProvider4.Add(typeof(IReferenceProvider), obj7);
         Type type8 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver4 = new XmlNamespaceResolver();
         namespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver4.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver4.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver4.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver4.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver4.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver4 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver4, typeof(NeedUpdatePage).GetTypeInfo().Assembly);
         xamlServiceProvider4.Add(type8, (object)xamlTypeResolver4);
         xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(37, 21)));
         object obj8 = ((IMarkupExtension)translateExtension4).ProvideValue((IServiceProvider)xamlServiceProvider4);
         button.set_Text((string)obj8);
         ((ICollection <View>)((Layout <View>)stackLayout).get_Children()).Add((View)button);
         ((BindableObject)frame).SetValue((BindableProperty)ContentView.ContentProperty, (object)stackLayout);
         ((ICollection <View>)grid.get_Children()).Add((View)frame);
         ((BindableObject)needUpdatePage).SetValue((BindableProperty)ContentPage.ContentProperty, (object)grid);
     }
 }
Ejemplo n.º 16
0
 private void InitializeComponent()
 {
     ResourceLoader.ResourceLoadingQuery resourceLoadingQuery = new ResourceLoader.ResourceLoadingQuery();
     resourceLoadingQuery.set_AssemblyName(typeof(HomeWorkEditPage).GetTypeInfo().Assembly.GetName());
     resourceLoadingQuery.set_ResourcePath("Views/HomeWorkEditPage.xaml");
     resourceLoadingQuery.set_Instance((object)this);
     if (ResourceLoader.CanProvideContentFor(resourceLoadingQuery))
     {
         this.__InitComponentRuntime();
     }
     else if (XamlLoader.get_XamlFileProvider() != null && XamlLoader.get_XamlFileProvider()(((object)this).GetType()) != null)
     {
         this.__InitComponentRuntime();
     }
     else
     {
         StaticResourceExtension resourceExtension1  = new StaticResourceExtension();
         BindingExtension        bindingExtension1   = new BindingExtension();
         StaticResourceExtension resourceExtension2  = new StaticResourceExtension();
         BindingExtension        bindingExtension2   = new BindingExtension();
         BindableToolbarItem     bindableToolbarItem = new BindableToolbarItem();
         BindingExtension        bindingExtension3   = new BindingExtension();
         Editor           editor = new Editor();
         Grid             grid   = new Grid();
         HomeWorkEditPage homeWorkEditPage;
         NameScope        nameScope = (NameScope)(NameScope.GetNameScope((BindableObject)(homeWorkEditPage = this)) ?? (INameScope) new NameScope());
         NameScope.SetNameScope((BindableObject)homeWorkEditPage, (INameScope)nameScope);
         ((INameScope)nameScope).RegisterName("UserNameEntry", (object)editor);
         if (((Element)editor).get_StyleId() == null)
         {
             ((Element)editor).set_StyleId("UserNameEntry");
         }
         this.UserNameEntry = editor;
         ((BindableObject)homeWorkEditPage).SetValue((BindableProperty)Page.TitleProperty, (object)"Új Házi Feladat");
         ((BindableObject)homeWorkEditPage).SetValue((BindableProperty)Page.UseSafeAreaProperty, (object)true);
         resourceExtension1.set_Key("PageBackgroundColor");
         StaticResourceExtension resourceExtension3   = resourceExtension1;
         XamlServiceProvider     xamlServiceProvider1 = new XamlServiceProvider();
         Type     type1     = typeof(IProvideValueTarget);
         object[] objArray1 = new object[0 + 1];
         objArray1[0] = (object)homeWorkEditPage;
         SimpleValueTargetProvider valueTargetProvider1;
         object obj1 = (object)(valueTargetProvider1 = new SimpleValueTargetProvider(objArray1, (object)VisualElement.BackgroundColorProperty, (INameScope)nameScope));
         xamlServiceProvider1.Add(type1, (object)valueTargetProvider1);
         xamlServiceProvider1.Add(typeof(IReferenceProvider), obj1);
         Type type2 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver1 = new XmlNamespaceResolver();
         namespaceResolver1.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver1.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver1.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver1.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver1.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver1.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver1.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver1 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver1, typeof(HomeWorkEditPage).GetTypeInfo().Assembly);
         xamlServiceProvider1.Add(type2, (object)xamlTypeResolver1);
         xamlServiceProvider1.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(15, 5)));
         object obj2 = ((IMarkupExtension)resourceExtension3).ProvideValue((IServiceProvider)xamlServiceProvider1);
         ((VisualElement)homeWorkEditPage).set_BackgroundColor((Color)obj2);
         bindingExtension1.set_Path("SaveHomeWorkCommand");
         BindingBase bindingBase1 = ((IMarkupExtension <BindingBase>)bindingExtension1).ProvideValue((IServiceProvider)null);
         ((BindableObject)bindableToolbarItem).SetBinding((BindableProperty)MenuItem.CommandProperty, bindingBase1);
         ((BindableObject)bindableToolbarItem).SetValue((BindableProperty)MenuItem.IconProperty, new FileImageSourceConverter().ConvertFromInvariantString("save_icon.png"));
         resourceExtension2.set_Key("NegateBooleanConverter");
         StaticResourceExtension resourceExtension4   = resourceExtension2;
         XamlServiceProvider     xamlServiceProvider2 = new XamlServiceProvider();
         Type     type3     = typeof(IProvideValueTarget);
         object[] objArray2 = new object[0 + 3];
         objArray2[0] = (object)bindingExtension2;
         objArray2[1] = (object)bindableToolbarItem;
         objArray2[2] = (object)homeWorkEditPage;
         SimpleValueTargetProvider valueTargetProvider2;
         object obj3 = (object)(valueTargetProvider2 = new SimpleValueTargetProvider(objArray2, (object)typeof(BindingExtension).GetRuntimeProperty("Converter"), (INameScope)nameScope));
         xamlServiceProvider2.Add(type3, (object)valueTargetProvider2);
         xamlServiceProvider2.Add(typeof(IReferenceProvider), obj3);
         Type type4 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver2 = new XmlNamespaceResolver();
         namespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver2.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver2.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver2.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver2.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver2.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver2 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver2, typeof(HomeWorkEditPage).GetTypeInfo().Assembly);
         xamlServiceProvider2.Add(type4, (object)xamlTypeResolver2);
         xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(32, 13)));
         object obj4 = ((IMarkupExtension)resourceExtension4).ProvideValue((IServiceProvider)xamlServiceProvider2);
         bindingExtension2.set_Converter((IValueConverter)obj4);
         bindingExtension2.set_Path("ActiveProfile.IsTutelary");
         BindingBase bindingBase2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue((IServiceProvider)null);
         ((BindableObject)bindableToolbarItem).SetBinding(BindableToolbarItem.IsVisibleProperty, bindingBase2);
         ((ICollection <ToolbarItem>)((Page)homeWorkEditPage).get_ToolbarItems()).Add((ToolbarItem)bindableToolbarItem);
         ((BindableObject)editor).SetValue((BindableProperty)View.MarginProperty, (object)new Thickness(0.0, 6.0));
         ((BindableObject)editor).SetValue((BindableProperty)View.HorizontalOptionsProperty, (object)(LayoutOptions)LayoutOptions.FillAndExpand);
         bindingExtension3.set_Mode((BindingMode)1);
         bindingExtension3.set_Path("Text");
         BindingBase bindingBase3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue((IServiceProvider)null);
         ((BindableObject)editor).SetBinding((BindableProperty)Editor.TextProperty, bindingBase3);
         ((BindableObject)editor).SetValue((BindableProperty)View.VerticalOptionsProperty, (object)(LayoutOptions)LayoutOptions.FillAndExpand);
         ((ICollection <View>)grid.get_Children()).Add((View)editor);
         ((BindableObject)homeWorkEditPage).SetValue((BindableProperty)ContentPage.ContentProperty, (object)grid);
     }
 }
Ejemplo n.º 17
0
 private void InitializeComponent()
 {
     ResourceLoader.ResourceLoadingQuery resourceLoadingQuery = new ResourceLoader.ResourceLoadingQuery();
     resourceLoadingQuery.set_AssemblyName(typeof(RootContentPage).GetTypeInfo().Assembly.GetName());
     resourceLoadingQuery.set_ResourcePath("Views/RootContentPage.xaml");
     resourceLoadingQuery.set_Instance((object)this);
     if (ResourceLoader.CanProvideContentFor(resourceLoadingQuery))
     {
         this.__InitComponentRuntime();
     }
     else if (XamlLoader.get_XamlFileProvider() != null && XamlLoader.get_XamlFileProvider()(((object)this).GetType()) != null)
     {
         this.__InitComponentRuntime();
     }
     else
     {
         TranslateExtension      translateExtension1 = new TranslateExtension();
         StaticResourceExtension resourceExtension1  = new StaticResourceExtension();
         BindingExtension        bindingExtension1   = new BindingExtension();
         BindingExtension        bindingExtension2   = new BindingExtension();
         BindableToolbarItem     bindableToolbarItem = new BindableToolbarItem();
         RowDefinition           rowDefinition1      = new RowDefinition();
         RowDefinition           rowDefinition2      = new RowDefinition();
         BindingExtension        bindingExtension3   = new BindingExtension();
         BindingExtension        bindingExtension4   = new BindingExtension();
         EmptyView emptyView = new EmptyView();
         StaticResourceExtension resourceExtension2 = new StaticResourceExtension();
         BindingExtension        bindingExtension5  = new BindingExtension();
         BindingExtension        bindingExtension6  = new BindingExtension();
         BindingExtension        bindingExtension7  = new BindingExtension();
         BindingExtension        bindingExtension8  = new BindingExtension();
         DataTemplate            dataTemplate1      = new DataTemplate();
         ListView             listView           = new ListView((ListViewCachingStrategy)1);
         BindingExtension     bindingExtension9  = new BindingExtension();
         BindingExtension     bindingExtension10 = new BindingExtension();
         BindingExtension     bindingExtension11 = new BindingExtension();
         TapGestureRecognizer gestureRecognizer  = new TapGestureRecognizer();
         CachedImage          cachedImage        = new CachedImage();
         Grid            grid = new Grid();
         RootContentPage rootContentPage;
         NameScope       nameScope = (NameScope)(NameScope.GetNameScope((BindableObject)(rootContentPage = this)) ?? (INameScope) new NameScope());
         NameScope.SetNameScope((BindableObject)rootContentPage, (INameScope)nameScope);
         ((INameScope)nameScope).RegisterName("Page", (object)rootContentPage);
         if (((Element)rootContentPage).get_StyleId() == null)
         {
             ((Element)rootContentPage).set_StyleId("Page");
         }
         ((INameScope)nameScope).RegisterName("EmptyView", (object)emptyView);
         if (((Element)emptyView).get_StyleId() == null)
         {
             ((Element)emptyView).set_StyleId("EmptyView");
         }
         this.Page                = (MvxContentPage <RootContentViewModel>)rootContentPage;
         this.EmptyView           = emptyView;
         translateExtension1.Text = "RootContentPage_Title";
         TranslateExtension  translateExtension2  = translateExtension1;
         XamlServiceProvider xamlServiceProvider1 = new XamlServiceProvider();
         Type     type1     = typeof(IProvideValueTarget);
         object[] objArray1 = new object[0 + 1];
         objArray1[0] = (object)rootContentPage;
         SimpleValueTargetProvider valueTargetProvider1;
         object obj1 = (object)(valueTargetProvider1 = new SimpleValueTargetProvider(objArray1, (object)Xamarin.Forms.Page.TitleProperty, (INameScope)nameScope));
         xamlServiceProvider1.Add(type1, (object)valueTargetProvider1);
         xamlServiceProvider1.Add(typeof(IReferenceProvider), obj1);
         Type type2 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver1 = new XmlNamespaceResolver();
         namespaceResolver1.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver1.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver1.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver1.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver1.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver1.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver1.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver1.Add("pluginImage", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver1.Add("telerikChart", "clr-namespace:Telerik.XamarinForms.Chart;assembly=Telerik.XamarinForms.Chart");
         namespaceResolver1.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver1 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver1, typeof(RootContentPage).GetTypeInfo().Assembly);
         xamlServiceProvider1.Add(type2, (object)xamlTypeResolver1);
         xamlServiceProvider1.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(17, 5)));
         object obj2 = ((IMarkupExtension)translateExtension2).ProvideValue((IServiceProvider)xamlServiceProvider1);
         ((Xamarin.Forms.Page)rootContentPage).set_Title((string)obj2);
         ((BindableObject)rootContentPage).SetValue((BindableProperty)Xamarin.Forms.PlatformConfiguration.iOSSpecific.Page.UseSafeAreaProperty, (object)true);
         resourceExtension1.set_Key("PageBackgroundColor");
         StaticResourceExtension resourceExtension3   = resourceExtension1;
         XamlServiceProvider     xamlServiceProvider2 = new XamlServiceProvider();
         Type     type3     = typeof(IProvideValueTarget);
         object[] objArray2 = new object[0 + 1];
         objArray2[0] = (object)rootContentPage;
         SimpleValueTargetProvider valueTargetProvider2;
         object obj3 = (object)(valueTargetProvider2 = new SimpleValueTargetProvider(objArray2, (object)VisualElement.BackgroundColorProperty, (INameScope)nameScope));
         xamlServiceProvider2.Add(type3, (object)valueTargetProvider2);
         xamlServiceProvider2.Add(typeof(IReferenceProvider), obj3);
         Type type4 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver2 = new XmlNamespaceResolver();
         namespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver2.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver2.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver2.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver2.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver2.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver2.Add("pluginImage", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver2.Add("telerikChart", "clr-namespace:Telerik.XamarinForms.Chart;assembly=Telerik.XamarinForms.Chart");
         namespaceResolver2.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver2 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver2, typeof(RootContentPage).GetTypeInfo().Assembly);
         xamlServiceProvider2.Add(type4, (object)xamlTypeResolver2);
         xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(20, 5)));
         object obj4 = ((IMarkupExtension)resourceExtension3).ProvideValue((IServiceProvider)xamlServiceProvider2);
         ((VisualElement)rootContentPage).set_BackgroundColor((Color)obj4);
         bindingExtension1.set_Path("ShowInformationPageCommand");
         BindingBase bindingBase1 = ((IMarkupExtension <BindingBase>)bindingExtension1).ProvideValue((IServiceProvider)null);
         ((BindableObject)bindableToolbarItem).SetBinding((BindableProperty)MenuItem.CommandProperty, bindingBase1);
         ((BindableObject)bindableToolbarItem).SetValue((BindableProperty)MenuItem.IconImageSourceProperty, new ImageSourceConverter().ConvertFromInvariantString("info_icon_white.png"));
         bindingExtension2.set_Path("HasAnyInformationToShow");
         BindingBase bindingBase2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue((IServiceProvider)null);
         ((BindableObject)bindableToolbarItem).SetBinding(BindableToolbarItem.IsVisibleProperty, bindingBase2);
         ((ICollection <ToolbarItem>)((Xamarin.Forms.Page)rootContentPage).get_ToolbarItems()).Add((ToolbarItem)bindableToolbarItem);
         ((BindableObject)rowDefinition1).SetValue((BindableProperty)RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
         ((DefinitionCollection <RowDefinition>)((BindableObject)grid).GetValue((BindableProperty)Grid.RowDefinitionsProperty)).Add(rowDefinition1);
         ((BindableObject)rowDefinition2).SetValue((BindableProperty)RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
         ((DefinitionCollection <RowDefinition>)((BindableObject)grid).GetValue((BindableProperty)Grid.RowDefinitionsProperty)).Add(rowDefinition2);
         bindingExtension3.set_Path("EmptyViewTitle");
         BindingBase bindingBase3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue((IServiceProvider)null);
         ((BindableObject)emptyView).SetBinding(EmptyView.TitleProperty, bindingBase3);
         bindingExtension4.set_Path("ListItems.Count");
         BindingBase bindingBase4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue((IServiceProvider)null);
         ((BindableObject)emptyView).SetBinding((BindableProperty)BindableObject.BindingContextProperty, bindingBase4);
         ((BindableObject)emptyView).SetValue(EmptyView.IsSubtitleVisibleProperty, (object)false);
         ((ICollection <View>)grid.get_Children()).Add((View)emptyView);
         ((BindableObject)listView).SetValue((BindableProperty)Grid.RowProperty, (object)0);
         ((BindableObject)listView).SetValue((BindableProperty)View.MarginProperty, (object)new Thickness(3.0, 6.0, 3.0, 3.0));
         resourceExtension2.set_Key("ListViewGroupHeaderTemplate");
         StaticResourceExtension resourceExtension4   = resourceExtension2;
         XamlServiceProvider     xamlServiceProvider3 = new XamlServiceProvider();
         Type     type5     = typeof(IProvideValueTarget);
         object[] objArray3 = new object[0 + 3];
         objArray3[0] = (object)listView;
         objArray3[1] = (object)grid;
         objArray3[2] = (object)rootContentPage;
         SimpleValueTargetProvider valueTargetProvider3;
         object obj5 = (object)(valueTargetProvider3 = new SimpleValueTargetProvider(objArray3, (object)ListView.GroupHeaderTemplateProperty, (INameScope)nameScope));
         xamlServiceProvider3.Add(type5, (object)valueTargetProvider3);
         xamlServiceProvider3.Add(typeof(IReferenceProvider), obj5);
         Type type6 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver3 = new XmlNamespaceResolver();
         namespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver3.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver3.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver3.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver3.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver3.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver3.Add("pluginImage", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions");
         namespaceResolver3.Add("telerikChart", "clr-namespace:Telerik.XamarinForms.Chart;assembly=Telerik.XamarinForms.Chart");
         namespaceResolver3.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver3 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver3, typeof(RootContentPage).GetTypeInfo().Assembly);
         xamlServiceProvider3.Add(type6, (object)xamlTypeResolver3);
         xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(45, 13)));
         object obj6 = ((IMarkupExtension)resourceExtension4).ProvideValue((IServiceProvider)xamlServiceProvider3);
         listView.set_GroupHeaderTemplate((DataTemplate)obj6);
         ((BindableObject)listView).SetValue((BindableProperty)ListView.HasUnevenRowsProperty, (object)true);
         ((BindableObject)listView).SetValue((BindableProperty)ListView.IsGroupingEnabledProperty, (object)true);
         ((BindableObject)listView).SetValue((BindableProperty)ListView.IsPullToRefreshEnabledProperty, (object)true);
         bindingExtension5.set_Path("IsLoading");
         BindingBase bindingBase5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue((IServiceProvider)null);
         ((BindableObject)listView).SetBinding((BindableProperty)ListView.IsRefreshingProperty, bindingBase5);
         bindingExtension6.set_Path("ListItems");
         BindingBase bindingBase6 = ((IMarkupExtension <BindingBase>)bindingExtension6).ProvideValue((IServiceProvider)null);
         ((BindableObject)listView).SetBinding((BindableProperty)ItemsView <Cell> .ItemsSourceProperty, bindingBase6);
         bindingExtension7.set_Path("RefreshCommand");
         BindingBase bindingBase7 = ((IMarkupExtension <BindingBase>)bindingExtension7).ProvideValue((IServiceProvider)null);
         ((BindableObject)listView).SetBinding((BindableProperty)ListView.RefreshCommandProperty, bindingBase7);
         bindingExtension8.set_Mode((BindingMode)1);
         bindingExtension8.set_Path("SelectedItem");
         BindingBase bindingBase8 = ((IMarkupExtension <BindingBase>)bindingExtension8).ProvideValue((IServiceProvider)null);
         ((BindableObject)listView).SetBinding((BindableProperty)ListView.SelectedItemProperty, bindingBase8);
         DataTemplate dataTemplate2 = dataTemplate1;
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: variable of a compiler-generated type
         RootContentPage.\u003CInitializeComponent\u003E_anonXamlCDataTemplate_32 xamlCdataTemplate32 = new RootContentPage.\u003CInitializeComponent\u003E_anonXamlCDataTemplate_32();
         object[] objArray4 = new object[0 + 4];
         objArray4[0] = (object)dataTemplate1;
         objArray4[1] = (object)listView;
         objArray4[2] = (object)grid;
         objArray4[3] = (object)rootContentPage;
         // ISSUE: reference to a compiler-generated field
         xamlCdataTemplate32.parentValues = objArray4;
         // ISSUE: reference to a compiler-generated field
         xamlCdataTemplate32.root = rootContentPage;
         // ISSUE: reference to a compiler-generated method
         Func <object> func = new Func <object>(xamlCdataTemplate32.LoadDataTemplate);
         ((IDataTemplate)dataTemplate2).set_LoadTemplate(func);
         ((BindableObject)listView).SetValue((BindableProperty)ItemsView <Cell> .ItemTemplateProperty, (object)dataTemplate1);
         ((ICollection <View>)grid.get_Children()).Add((View)listView);
         ((BindableObject)cachedImage).SetValue((BindableProperty)Grid.RowProperty, (object)1);
         ((BindableObject)cachedImage).SetValue((BindableProperty)VisualElement.HeightRequestProperty, (object)50.0);
         ((BindableObject)cachedImage).SetValue((BindableProperty)View.HorizontalOptionsProperty, (object)(LayoutOptions)LayoutOptions.FillAndExpand);
         bindingExtension9.set_Path("ActiveProfile.Institute.HasAdvertisingUrl");
         BindingBase bindingBase9 = ((IMarkupExtension <BindingBase>)bindingExtension9).ProvideValue((IServiceProvider)null);
         ((BindableObject)cachedImage).SetBinding((BindableProperty)VisualElement.IsVisibleProperty, bindingBase9);
         bindingExtension10.set_Path("ActiveProfile.Institute.InformationImageUrl");
         BindingBase bindingBase10 = ((IMarkupExtension <BindingBase>)bindingExtension10).ProvideValue((IServiceProvider)null);
         ((BindableObject)cachedImage).SetBinding((BindableProperty)CachedImage.SourceProperty, bindingBase10);
         ((BindableObject)cachedImage).SetValue((BindableProperty)View.VerticalOptionsProperty, (object)(LayoutOptions)LayoutOptions.FillAndExpand);
         bindingExtension11.set_Path("NavigateToInformationUrlCommand");
         BindingBase bindingBase11 = ((IMarkupExtension <BindingBase>)bindingExtension11).ProvideValue((IServiceProvider)null);
         ((BindableObject)gestureRecognizer).SetBinding((BindableProperty)TapGestureRecognizer.CommandProperty, bindingBase11);
         ((ICollection <IGestureRecognizer>)((View)cachedImage).get_GestureRecognizers()).Add((IGestureRecognizer)gestureRecognizer);
         ((ICollection <View>)grid.get_Children()).Add((View)cachedImage);
         ((BindableObject)rootContentPage).SetValue((BindableProperty)ContentPage.ContentProperty, (object)grid);
     }
 }
Ejemplo n.º 18
0
        private void InitializeComponent()
        {
            if (ResourceLoader.CanProvideContentFor(new ResourceLoader.ResourceLoadingQuery
            {
                AssemblyName = typeof(PopupPage).GetTypeInfo().Assembly.GetName(),
                ResourcePath = "Views/PopupPage.xaml",
                Instance = this
            }))
            {
                __InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(GetType()) != null)
            {
                __InitComponentRuntime();
                return;
            }
            StaticResourceExtension staticResourceExtension = new StaticResourceExtension();
            BindingExtension        bindingExtension        = new BindingExtension();
            BindingExtension        bindingExtension2       = new BindingExtension();
            Image                   image                    = new Image();
            BindingExtension        bindingExtension3        = new BindingExtension();
            BindingExtension        bindingExtension4        = new BindingExtension();
            Image                   image2                   = new Image();
            BindingExtension        bindingExtension5        = new BindingExtension();
            BindingExtension        bindingExtension6        = new BindingExtension();
            StaticResourceExtension staticResourceExtension2 = new StaticResourceExtension();
            StaticResourceExtension staticResourceExtension3 = new StaticResourceExtension();
            Label                   label                    = new Label();
            BindingExtension        bindingExtension7        = new BindingExtension();
            ImageButton             imageButton              = new ImageButton();
            FlexLayout              flexLayout               = new FlexLayout();
            StaticResourceExtension staticResourceExtension4 = new StaticResourceExtension();
            StaticResourceExtension staticResourceExtension5 = new StaticResourceExtension();
            Label                   label2                   = new Label();
            BindingExtension        bindingExtension8        = new BindingExtension();
            BindingExtension        bindingExtension9        = new BindingExtension();
            StaticResourceExtension staticResourceExtension6 = new StaticResourceExtension();
            StaticResourceExtension staticResourceExtension7 = new StaticResourceExtension();
            Label                   label3                   = new Label();
            FlexLayout              flexLayout2              = new FlexLayout();
            PopupPage               popupPage;
            NameScope               nameScope = (NameScope)(NameScope.GetNameScope(popupPage = this) ?? new NameScope());

            NameScope.SetNameScope(popupPage, nameScope);
            popupPage.SetValue(FlexLayout.DirectionProperty, new FlexDirectionTypeConverter().ConvertFromInvariantString("Column"));
            popupPage.SetValue(FlexLayout.AlignItemsProperty, new FlexAlignItemsTypeConverter().ConvertFromInvariantString("Stretch"));
            popupPage.SetValue(FlexLayout.JustifyContentProperty, new FlexJustifyTypeConverter().ConvertFromInvariantString("Start"));
            staticResourceExtension.Key = "LightGrayColor";
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 1];
            array[0] = popupPage;
            object service;

            xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array, VisualElement.BackgroundColorProperty, nameScope));
            xamlServiceProvider.Add(typeof(IReferenceProvider), service);
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(PopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(8, 13)));
            object obj = ((IMarkupExtension)staticResourceExtension).ProvideValue((IServiceProvider)xamlServiceProvider);

            popupPage.BackgroundColor = (Color)obj;
            VisualDiagnostics.RegisterSourceInfo(obj, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 8, 13);
            flexLayout.SetValue(FlexLayout.DirectionProperty, new FlexDirectionTypeConverter().ConvertFromInvariantString("Row"));
            flexLayout.SetValue(FlexLayout.AlignItemsProperty, new FlexAlignItemsTypeConverter().ConvertFromInvariantString("Center"));
            flexLayout.SetValue(FlexLayout.JustifyContentProperty, new FlexJustifyTypeConverter().ConvertFromInvariantString("SpaceBetween"));
            flexLayout.SetValue(FlexLayout.BasisProperty, new FlexBasis.FlexBasisTypeConverter().ConvertFromInvariantString("70"));
            flexLayout.SetValue(FlexLayout.ShrinkProperty, 0f);
            flexLayout.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            image.SetValue(VisualElement.HeightRequestProperty, 25.0);
            image.SetValue(Image.AspectProperty, Aspect.AspectFit);
            image.SetValue(View.MarginProperty, new Thickness(20.0, 0.0, 0.0, 0.0));
            bindingExtension.Path = "SelectedVehicule";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue((IServiceProvider)null);

            image.SetBinding(BindableObject.BindingContextProperty, binding);
            bindingExtension2.Path = "ModeImagePath";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue((IServiceProvider)null);

            image.SetBinding(Image.SourceProperty, binding2);
            flexLayout.Children.Add(image);
            VisualDiagnostics.RegisterSourceInfo(image, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 15, 10);
            image2.SetValue(VisualElement.HeightRequestProperty, 25.0);
            image2.SetValue(Image.AspectProperty, Aspect.AspectFit);
            image2.SetValue(View.MarginProperty, new Thickness(2.0, 0.0, 0.0, 0.0));
            bindingExtension3.Path = "SelectedVehicule";
            BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue((IServiceProvider)null);

            image2.SetBinding(BindableObject.BindingContextProperty, binding3);
            bindingExtension4.Path = "LigneImagePath";
            BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue((IServiceProvider)null);

            image2.SetBinding(Image.SourceProperty, binding4);
            flexLayout.Children.Add(image2);
            VisualDiagnostics.RegisterSourceInfo(image2, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 20, 10);
            bindingExtension5.Path = "SelectedVehicule";
            BindingBase binding5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue((IServiceProvider)null);

            label.SetBinding(BindableObject.BindingContextProperty, binding5);
            bindingExtension6.Path = "Destination";
            BindingBase binding6 = ((IMarkupExtension <BindingBase>)bindingExtension6).ProvideValue((IServiceProvider)null);

            label.SetBinding(Label.TextProperty, binding6);
            staticResourceExtension2.Key = "DarkGrayColor";
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 3];
            array2[0] = label;
            array2[1] = flexLayout;
            array2[2] = popupPage;
            object service2;

            xamlServiceProvider2.Add(typeFromHandle3, service2 = new SimpleValueTargetProvider(array2, Label.TextColorProperty, nameScope));
            xamlServiceProvider2.Add(typeof(IReferenceProvider), service2);
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(PopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(27, 16)));
            object obj2 = ((IMarkupExtension)staticResourceExtension2).ProvideValue((IServiceProvider)xamlServiceProvider2);

            label.TextColor = (Color)obj2;
            VisualDiagnostics.RegisterSourceInfo(obj2, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 27, 16);
            staticResourceExtension3.Key = "TCLRegular";
            XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
            Type typeFromHandle5 = typeof(IProvideValueTarget);

            object[] array3 = new object[0 + 3];
            array3[0] = label;
            array3[1] = flexLayout;
            array3[2] = popupPage;
            object service3;

            xamlServiceProvider3.Add(typeFromHandle5, service3 = new SimpleValueTargetProvider(array3, Label.FontFamilyProperty, nameScope));
            xamlServiceProvider3.Add(typeof(IReferenceProvider), service3);
            Type typeFromHandle6 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();

            xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(PopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(28, 16)));
            object target = label.FontFamily = (string)((IMarkupExtension)staticResourceExtension3).ProvideValue((IServiceProvider)xamlServiceProvider3);

            VisualDiagnostics.RegisterSourceInfo(target, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 28, 16);
            BindableProperty    fontSizeProperty     = Label.FontSizeProperty;
            FontSizeConverter   fontSizeConverter    = new FontSizeConverter();
            XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
            Type typeFromHandle7 = typeof(IProvideValueTarget);

            object[] array4 = new object[0 + 3];
            array4[0] = label;
            array4[1] = flexLayout;
            array4[2] = popupPage;
            object service4;

            xamlServiceProvider4.Add(typeFromHandle7, service4 = new SimpleValueTargetProvider(array4, Label.FontSizeProperty, nameScope));
            xamlServiceProvider4.Add(typeof(IReferenceProvider), service4);
            Type typeFromHandle8 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver4 = new XmlNamespaceResolver();

            xmlNamespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(PopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(29, 16)));
            label.SetValue(fontSizeProperty, ((IExtendedTypeConverter)fontSizeConverter).ConvertFromInvariantString("Default", (IServiceProvider)xamlServiceProvider4));
            label.SetValue(Label.LineBreakModeProperty, LineBreakMode.TailTruncation);
            label.SetValue(View.MarginProperty, new Thickness(5.0, 0.0, 0.0, 0.0));
            label.SetValue(FlexLayout.GrowProperty, 1f);
            flexLayout.Children.Add(label);
            VisualDiagnostics.RegisterSourceInfo(label, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 25, 10);
            imageButton.SetValue(VisualElement.HeightRequestProperty, 20.0);
            imageButton.SetValue(View.MarginProperty, new Thickness(20.0, 0.0));
            imageButton.SetValue(ImageButton.AspectProperty, Aspect.AspectFit);
            imageButton.SetValue(ImageButton.SourceProperty, new ImageSourceConverter().ConvertFromInvariantString("close.png"));
            imageButton.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            bindingExtension7.Path = "ClosePopupTapCommand";
            BindingBase binding7 = ((IMarkupExtension <BindingBase>)bindingExtension7).ProvideValue((IServiceProvider)null);

            imageButton.SetBinding(ImageButton.CommandProperty, binding7);
            flexLayout.Children.Add(imageButton);
            VisualDiagnostics.RegisterSourceInfo(imageButton, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 33, 10);
            popupPage.Children.Add(flexLayout);
            VisualDiagnostics.RegisterSourceInfo(flexLayout, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 9, 6);
            flexLayout2.SetValue(FlexLayout.DirectionProperty, new FlexDirectionTypeConverter().ConvertFromInvariantString("Column"));
            flexLayout2.SetValue(FlexLayout.AlignItemsProperty, new FlexAlignItemsTypeConverter().ConvertFromInvariantString("Start"));
            flexLayout2.SetValue(FlexLayout.JustifyContentProperty, new FlexJustifyTypeConverter().ConvertFromInvariantString("Start"));
            flexLayout2.SetValue(FlexLayout.GrowProperty, 1f);
            label2.SetValue(Label.TextProperty, "Prochain arrêt : ");
            staticResourceExtension4.Key = "DarkGrayColor";
            XamlServiceProvider xamlServiceProvider5 = new XamlServiceProvider();
            Type typeFromHandle9 = typeof(IProvideValueTarget);

            object[] array5 = new object[0 + 3];
            array5[0] = label2;
            array5[1] = flexLayout2;
            array5[2] = popupPage;
            object service5;

            xamlServiceProvider5.Add(typeFromHandle9, service5 = new SimpleValueTargetProvider(array5, Label.TextColorProperty, nameScope));
            xamlServiceProvider5.Add(typeof(IReferenceProvider), service5);
            Type typeFromHandle10 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver5 = new XmlNamespaceResolver();

            xmlNamespaceResolver5.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver5.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider5.Add(typeFromHandle10, new XamlTypeResolver(xmlNamespaceResolver5, typeof(PopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider5.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(45, 16)));
            object obj3 = ((IMarkupExtension)staticResourceExtension4).ProvideValue((IServiceProvider)xamlServiceProvider5);

            label2.TextColor = (Color)obj3;
            VisualDiagnostics.RegisterSourceInfo(obj3, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 45, 16);
            staticResourceExtension5.Key = "TCLLight";
            XamlServiceProvider xamlServiceProvider6 = new XamlServiceProvider();
            Type typeFromHandle11 = typeof(IProvideValueTarget);

            object[] array6 = new object[0 + 3];
            array6[0] = label2;
            array6[1] = flexLayout2;
            array6[2] = popupPage;
            object service6;

            xamlServiceProvider6.Add(typeFromHandle11, service6 = new SimpleValueTargetProvider(array6, Label.FontFamilyProperty, nameScope));
            xamlServiceProvider6.Add(typeof(IReferenceProvider), service6);
            Type typeFromHandle12 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver6 = new XmlNamespaceResolver();

            xmlNamespaceResolver6.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver6.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider6.Add(typeFromHandle12, new XamlTypeResolver(xmlNamespaceResolver6, typeof(PopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider6.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(46, 16)));
            object target2 = label2.FontFamily = (string)((IMarkupExtension)staticResourceExtension5).ProvideValue((IServiceProvider)xamlServiceProvider6);

            VisualDiagnostics.RegisterSourceInfo(target2, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 46, 16);
            BindableProperty    fontSizeProperty2    = Label.FontSizeProperty;
            FontSizeConverter   fontSizeConverter2   = new FontSizeConverter();
            XamlServiceProvider xamlServiceProvider7 = new XamlServiceProvider();
            Type typeFromHandle13 = typeof(IProvideValueTarget);

            object[] array7 = new object[0 + 3];
            array7[0] = label2;
            array7[1] = flexLayout2;
            array7[2] = popupPage;
            object service7;

            xamlServiceProvider7.Add(typeFromHandle13, service7 = new SimpleValueTargetProvider(array7, Label.FontSizeProperty, nameScope));
            xamlServiceProvider7.Add(typeof(IReferenceProvider), service7);
            Type typeFromHandle14 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver7 = new XmlNamespaceResolver();

            xmlNamespaceResolver7.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver7.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider7.Add(typeFromHandle14, new XamlTypeResolver(xmlNamespaceResolver7, typeof(PopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider7.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(47, 16)));
            label2.SetValue(fontSizeProperty2, ((IExtendedTypeConverter)fontSizeConverter2).ConvertFromInvariantString("Small", (IServiceProvider)xamlServiceProvider7));
            label2.SetValue(View.MarginProperty, new Thickness(20.0, 20.0, 0.0, 0.0));
            flexLayout2.Children.Add(label2);
            VisualDiagnostics.RegisterSourceInfo(label2, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 44, 10);
            bindingExtension8.Path = "SelectedVehicule";
            BindingBase binding8 = ((IMarkupExtension <BindingBase>)bindingExtension8).ProvideValue((IServiceProvider)null);

            label3.SetBinding(BindableObject.BindingContextProperty, binding8);
            bindingExtension9.Path = "ProchainArret";
            BindingBase binding9 = ((IMarkupExtension <BindingBase>)bindingExtension9).ProvideValue((IServiceProvider)null);

            label3.SetBinding(Label.TextProperty, binding9);
            staticResourceExtension6.Key = "DarkGrayColor";
            XamlServiceProvider xamlServiceProvider8 = new XamlServiceProvider();
            Type typeFromHandle15 = typeof(IProvideValueTarget);

            object[] array8 = new object[0 + 3];
            array8[0] = label3;
            array8[1] = flexLayout2;
            array8[2] = popupPage;
            object service8;

            xamlServiceProvider8.Add(typeFromHandle15, service8 = new SimpleValueTargetProvider(array8, Label.TextColorProperty, nameScope));
            xamlServiceProvider8.Add(typeof(IReferenceProvider), service8);
            Type typeFromHandle16 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver8 = new XmlNamespaceResolver();

            xmlNamespaceResolver8.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver8.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider8.Add(typeFromHandle16, new XamlTypeResolver(xmlNamespaceResolver8, typeof(PopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider8.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(51, 16)));
            object obj4 = ((IMarkupExtension)staticResourceExtension6).ProvideValue((IServiceProvider)xamlServiceProvider8);

            label3.TextColor = (Color)obj4;
            VisualDiagnostics.RegisterSourceInfo(obj4, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 51, 16);
            staticResourceExtension7.Key = "TCLRegular";
            XamlServiceProvider xamlServiceProvider9 = new XamlServiceProvider();
            Type typeFromHandle17 = typeof(IProvideValueTarget);

            object[] array9 = new object[0 + 3];
            array9[0] = label3;
            array9[1] = flexLayout2;
            array9[2] = popupPage;
            object service9;

            xamlServiceProvider9.Add(typeFromHandle17, service9 = new SimpleValueTargetProvider(array9, Label.FontFamilyProperty, nameScope));
            xamlServiceProvider9.Add(typeof(IReferenceProvider), service9);
            Type typeFromHandle18 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver9 = new XmlNamespaceResolver();

            xmlNamespaceResolver9.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver9.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider9.Add(typeFromHandle18, new XamlTypeResolver(xmlNamespaceResolver9, typeof(PopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider9.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(52, 16)));
            object target3 = label3.FontFamily = (string)((IMarkupExtension)staticResourceExtension7).ProvideValue((IServiceProvider)xamlServiceProvider9);

            VisualDiagnostics.RegisterSourceInfo(target3, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 52, 16);
            BindableProperty    fontSizeProperty3     = Label.FontSizeProperty;
            FontSizeConverter   fontSizeConverter3    = new FontSizeConverter();
            XamlServiceProvider xamlServiceProvider10 = new XamlServiceProvider();
            Type typeFromHandle19 = typeof(IProvideValueTarget);

            object[] array10 = new object[0 + 3];
            array10[0] = label3;
            array10[1] = flexLayout2;
            array10[2] = popupPage;
            object service10;

            xamlServiceProvider10.Add(typeFromHandle19, service10 = new SimpleValueTargetProvider(array10, Label.FontSizeProperty, nameScope));
            xamlServiceProvider10.Add(typeof(IReferenceProvider), service10);
            Type typeFromHandle20 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver10 = new XmlNamespaceResolver();

            xmlNamespaceResolver10.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver10.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider10.Add(typeFromHandle20, new XamlTypeResolver(xmlNamespaceResolver10, typeof(PopupPage).GetTypeInfo().Assembly));
            xamlServiceProvider10.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(53, 16)));
            label3.SetValue(fontSizeProperty3, ((IExtendedTypeConverter)fontSizeConverter3).ConvertFromInvariantString("Medium", (IServiceProvider)xamlServiceProvider10));
            label3.SetValue(View.MarginProperty, new Thickness(20.0, 0.0, 0.0, 0.0));
            label3.SetValue(Label.LineBreakModeProperty, LineBreakMode.TailTruncation);
            flexLayout2.Children.Add(label3);
            VisualDiagnostics.RegisterSourceInfo(label3, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 49, 10);
            popupPage.Children.Add(flexLayout2);
            VisualDiagnostics.RegisterSourceInfo(flexLayout2, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 40, 6);
            VisualDiagnostics.RegisterSourceInfo(popupPage, new Uri("Views\\PopupPage.xaml", UriKind.RelativeOrAbsolute), 2, 2);
        }
Ejemplo n.º 19
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(MainPage).GetTypeInfo().Assembly.GetName(), "Views/MainPage.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            BindingExtension     bindingExtension     = new BindingExtension();
            BindingExtension     bindingExtension2    = new BindingExtension();
            RowDefinition        rowDefinition        = new RowDefinition();
            RowDefinition        rowDefinition2       = new RowDefinition();
            RowDefinition        rowDefinition3       = new RowDefinition();
            RowDefinition        rowDefinition4       = new RowDefinition();
            ColumnDefinition     columnDefinition     = new ColumnDefinition();
            ColumnDefinition     columnDefinition2    = new ColumnDefinition();
            Image                image                = new Image();
            TranslateExtension   translateExtension   = new TranslateExtension();
            BindingExtension     bindingExtension3    = new BindingExtension();
            FuncView             funcView             = new FuncView();
            TranslateExtension   translateExtension2  = new TranslateExtension();
            BindingExtension     bindingExtension4    = new BindingExtension();
            FuncView             funcView2            = new FuncView();
            TranslateExtension   translateExtension3  = new TranslateExtension();
            BindingExtension     bindingExtension5    = new BindingExtension();
            FuncView             funcView3            = new FuncView();
            TranslateExtension   translateExtension4  = new TranslateExtension();
            BindingExtension     bindingExtension6    = new BindingExtension();
            FuncView             funcView4            = new FuncView();
            BindingExtension     bindingExtension7    = new BindingExtension();
            BindingExtension     bindingExtension8    = new BindingExtension();
            TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
            Label                label                = new Label();
            Grid              grid               = new Grid();
            Grid              grid2              = new Grid();
            BindingExtension  bindingExtension9  = new BindingExtension();
            BindingExtension  bindingExtension10 = new BindingExtension();
            ActivityIndicator activityIndicator  = new ActivityIndicator();
            Grid              grid3              = new Grid();
            NameScope         nameScope          = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(grid3, nameScope);
            NameScope.SetNameScope(grid2, nameScope);
            NameScope.SetNameScope(rowDefinition, nameScope);
            NameScope.SetNameScope(rowDefinition2, nameScope);
            NameScope.SetNameScope(rowDefinition3, nameScope);
            NameScope.SetNameScope(rowDefinition4, nameScope);
            NameScope.SetNameScope(columnDefinition, nameScope);
            NameScope.SetNameScope(columnDefinition2, nameScope);
            NameScope.SetNameScope(image, nameScope);
            NameScope.SetNameScope(funcView, nameScope);
            NameScope.SetNameScope(funcView2, nameScope);
            NameScope.SetNameScope(funcView3, nameScope);
            NameScope.SetNameScope(funcView4, nameScope);
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(label, nameScope);
            NameScope.SetNameScope(tapGestureRecognizer, nameScope);
            NameScope.SetNameScope(activityIndicator, nameScope);
            bindingExtension.Path = "Title";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null);

            this.SetBinding(Page.TitleProperty, binding);
            bindingExtension2.Path = "HasTitle";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null);

            this.SetBinding(NavigationPage.HasNavigationBarProperty, binding2);
            grid3.SetValue(VisualElement.BackgroundColorProperty, new Color(0.98039215803146362, 0.98039215803146362, 0.98039215803146362, 1.0));
            grid2.SetValue(Grid.RowSpacingProperty, 1.0);
            grid2.SetValue(Grid.ColumnSpacingProperty, 1.0);
            rowDefinition.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid2.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition);
            rowDefinition2.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid2.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition2);
            rowDefinition3.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid2.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition3);
            rowDefinition4.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid2.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition4);
            columnDefinition.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid2.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition);
            columnDefinition2.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid2.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition2);
            image.SetValue(Image.SourceProperty, new ImageSourceConverter().ConvertFromInvariantString("login_bg2.png"));
            image.SetValue(Grid.RowProperty, 0);
            image.SetValue(Grid.ColumnProperty, 0);
            image.SetValue(Grid.ColumnSpanProperty, 2);
            image.SetValue(Image.AspectProperty, Aspect.AspectFill);
            image.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            grid2.Children.Add(image);
            funcView.SetValue(Grid.RowProperty, 1);
            funcView.SetValue(Grid.ColumnProperty, 0);
            funcView.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            translateExtension.Text = "read";
            IMarkupExtension    markupExtension     = translateExtension;
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 4];
            array[0] = funcView;
            array[1] = grid2;
            array[2] = grid3;
            array[3] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, FuncView.TitleProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver.Add("local", "clr-namespace:RFID");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(MainPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(43, 87)));
            object title = markupExtension.ProvideValue(xamlServiceProvider);

            funcView.Title = title;
            funcView.SetValue(FuncView.IconProperty, "read.svg");
            bindingExtension3.Path = "ReadCommand";
            BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null);

            funcView.SetBinding(FuncView.CommandProperty, binding3);
            grid2.Children.Add(funcView);
            funcView2.SetValue(Grid.RowProperty, 1);
            funcView2.SetValue(Grid.ColumnProperty, 1);
            funcView2.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            translateExtension2.Text = "upload";
            IMarkupExtension    markupExtension2     = translateExtension2;
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 4];
            array2[0] = funcView2;
            array2[1] = grid2;
            array2[2] = grid3;
            array2[3] = this;
            xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, FuncView.TitleProperty));
            xamlServiceProvider2.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver2.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver2.Add("local", "clr-namespace:RFID");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(MainPage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(44, 88)));
            object title2 = markupExtension2.ProvideValue(xamlServiceProvider2);

            funcView2.Title = title2;
            funcView2.SetValue(FuncView.IconProperty, "upload.svg");
            bindingExtension4.Path = "UploadCommand";
            BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue(null);

            funcView2.SetBinding(FuncView.CommandProperty, binding4);
            grid2.Children.Add(funcView2);
            funcView3.SetValue(Grid.RowProperty, 2);
            funcView3.SetValue(Grid.ColumnProperty, 0);
            funcView3.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            translateExtension3.Text = "delete";
            IMarkupExtension    markupExtension3     = translateExtension3;
            XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
            Type typeFromHandle5 = typeof(IProvideValueTarget);

            object[] array3 = new object[0 + 4];
            array3[0] = funcView3;
            array3[1] = grid2;
            array3[2] = grid3;
            array3[3] = this;
            xamlServiceProvider3.Add(typeFromHandle5, new SimpleValueTargetProvider(array3, FuncView.TitleProperty));
            xamlServiceProvider3.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle6 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();

            xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver3.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver3.Add("local", "clr-namespace:RFID");
            xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(MainPage).GetTypeInfo().Assembly));
            xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(45, 88)));
            object title3 = markupExtension3.ProvideValue(xamlServiceProvider3);

            funcView3.Title = title3;
            funcView3.SetValue(FuncView.IconProperty, "delete.svg");
            bindingExtension5.Path = "DeleteCommand";
            BindingBase binding5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue(null);

            funcView3.SetBinding(FuncView.CommandProperty, binding5);
            grid2.Children.Add(funcView3);
            funcView4.SetValue(Grid.RowProperty, 2);
            funcView4.SetValue(Grid.ColumnProperty, 1);
            funcView4.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            translateExtension4.Text = "exception";
            IMarkupExtension    markupExtension4     = translateExtension4;
            XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
            Type typeFromHandle7 = typeof(IProvideValueTarget);

            object[] array4 = new object[0 + 4];
            array4[0] = funcView4;
            array4[1] = grid2;
            array4[2] = grid3;
            array4[3] = this;
            xamlServiceProvider4.Add(typeFromHandle7, new SimpleValueTargetProvider(array4, FuncView.TitleProperty));
            xamlServiceProvider4.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle8 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver4 = new XmlNamespaceResolver();

            xmlNamespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver4.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver4.Add("local", "clr-namespace:RFID");
            xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(MainPage).GetTypeInfo().Assembly));
            xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(46, 88)));
            object title4 = markupExtension4.ProvideValue(xamlServiceProvider4);

            funcView4.Title = title4;
            funcView4.SetValue(FuncView.IconProperty, "exception.svg");
            bindingExtension6.Path = "ExceptionCommand";
            BindingBase binding6 = ((IMarkupExtension <BindingBase>)bindingExtension6).ProvideValue(null);

            funcView4.SetBinding(FuncView.CommandProperty, binding6);
            grid2.Children.Add(funcView4);
            grid.SetValue(Grid.RowProperty, 3);
            grid.SetValue(Grid.ColumnProperty, 0);
            grid.SetValue(Grid.ColumnSpanProperty, 2);
            grid.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            grid.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            grid.SetValue(View.VerticalOptionsProperty, LayoutOptions.End);
            label.SetValue(VisualElement.HeightRequestProperty, 80.0);
            label.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            label.SetValue(Label.TextColorProperty, Color.Black);
            BindableObject         bindableObject        = label;
            BindableProperty       fontSizeProperty      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
            string value = "Default";
            XamlServiceProvider xamlServiceProvider5 = new XamlServiceProvider();
            Type typeFromHandle9 = typeof(IProvideValueTarget);

            object[] array5 = new object[0 + 5];
            array5[0] = label;
            array5[1] = grid;
            array5[2] = grid2;
            array5[3] = grid3;
            array5[4] = this;
            xamlServiceProvider5.Add(typeFromHandle9, new SimpleValueTargetProvider(array5, Label.FontSizeProperty));
            xamlServiceProvider5.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle10 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver5 = new XmlNamespaceResolver();

            xmlNamespaceResolver5.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver5.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver5.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver5.Add("local", "clr-namespace:RFID");
            xamlServiceProvider5.Add(typeFromHandle10, new XamlTypeResolver(xmlNamespaceResolver5, typeof(MainPage).GetTypeInfo().Assembly));
            xamlServiceProvider5.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(48, 89)));
            bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider5));
            label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            label.SetValue(Label.VerticalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
            label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            bindingExtension7.Path = "ScanModeText";
            BindingBase binding7 = ((IMarkupExtension <BindingBase>)bindingExtension7).ProvideValue(null);

            label.SetBinding(Label.TextProperty, binding7);
            bindingExtension8.Path = "ScanModeCommand";
            BindingBase binding8 = ((IMarkupExtension <BindingBase>)bindingExtension8).ProvideValue(null);

            tapGestureRecognizer.SetBinding(TapGestureRecognizer.CommandProperty, binding8);
            label.GestureRecognizers.Add(tapGestureRecognizer);
            grid.Children.Add(label);
            grid2.Children.Add(grid);
            grid3.Children.Add(grid2);
            bindingExtension9.Path = "IsBusy";
            BindingBase binding9 = ((IMarkupExtension <BindingBase>)bindingExtension9).ProvideValue(null);

            activityIndicator.SetBinding(ActivityIndicator.IsRunningProperty, binding9);
            bindingExtension10.Path = "IsBusy";
            BindingBase binding10 = ((IMarkupExtension <BindingBase>)bindingExtension10).ProvideValue(null);

            activityIndicator.SetBinding(VisualElement.IsVisibleProperty, binding10);
            activityIndicator.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            activityIndicator.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
            grid3.Children.Add(activityIndicator);
            this.SetValue(ContentPage.ContentProperty, grid3);
        }
Ejemplo n.º 20
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(QueryPage).GetTypeInfo().Assembly.GetName(), "Views/QueryPage.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            BindingExtension     bindingExtension     = new BindingExtension();
            Label                label                = new Label();
            BindingExtension     bindingExtension2    = new BindingExtension();
            TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
            Label                label2               = new Label();
            Grid                 grid = new Grid();
            BindingExtension     bindingExtension3     = new BindingExtension();
            TapGestureRecognizer tapGestureRecognizer2 = new TapGestureRecognizer();
            BindingExtension     bindingExtension4     = new BindingExtension();
            Label                label3            = new Label();
            SvgCachedImage       svgCachedImage    = new SvgCachedImage();
            Grid                 grid2             = new Grid();
            BindingExtension     bindingExtension5 = new BindingExtension();
            BindingExtension     bindingExtension6 = new BindingExtension();
            BindingExtension     bindingExtension7 = new BindingExtension();
            DataTemplate         dataTemplate      = new DataTemplate();
            ListView             listView          = new ListView(ListViewCachingStrategy.RecycleElement);
            StackLayout          stackLayout       = new StackLayout();
            NameScope            nameScope         = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(stackLayout, nameScope);
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(label, nameScope);
            NameScope.SetNameScope(label2, nameScope);
            NameScope.SetNameScope(tapGestureRecognizer, nameScope);
            NameScope.SetNameScope(grid2, nameScope);
            NameScope.SetNameScope(tapGestureRecognizer2, nameScope);
            NameScope.SetNameScope(label3, nameScope);
            NameScope.SetNameScope(svgCachedImage, nameScope);
            NameScope.SetNameScope(listView, nameScope);
            ((INameScope)nameScope).RegisterName("listView", listView);
            if (listView.StyleId == null)
            {
                listView.StyleId = "listView";
            }
            this.listView = listView;
            stackLayout.SetValue(StackLayout.SpacingProperty, 0.0);
            stackLayout.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            grid.SetValue(VisualElement.HeightRequestProperty, 40.0);
            grid.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(10.0));
            grid.SetValue(VisualElement.BackgroundColorProperty, Color.Black);
            grid.SetValue(VisualElement.OpacityProperty, 0.8);
            bindingExtension.Path = "Title";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null);

            label.SetBinding(Label.TextProperty, binding);
            label.SetValue(Label.TextColorProperty, Color.White);
            BindableObject         bindableObject        = label;
            BindableProperty       fontSizeProperty      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
            string value = "Default";
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 4];
            array[0] = label;
            array[1] = grid;
            array[2] = stackLayout;
            array[3] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, Label.FontSizeProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver.Add("local", "clr-namespace:RFID");
            xmlNamespaceResolver.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms");
            xmlNamespaceResolver.Add("scroll", "clr-namespace:Xamarin.Forms.Extended;assembly=Xamarin.Forms.Extended.InfiniteScrolling");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(QueryPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(11, 65)));
            bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
            label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            label.SetValue(Label.VerticalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center);
            label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            grid.Children.Add(label);
            label2.SetValue(Label.TextProperty, "车辆筛选");
            label2.SetValue(Label.TextColorProperty, Color.White);
            BindableObject         bindableObject2        = label2;
            BindableProperty       fontSizeProperty2      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
            string value2 = "Default";
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 4];
            array2[0] = label2;
            array2[1] = grid;
            array2[2] = stackLayout;
            array2[3] = this;
            xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, Label.FontSizeProperty));
            xamlServiceProvider2.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver2.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver2.Add("local", "clr-namespace:RFID");
            xmlNamespaceResolver2.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms");
            xmlNamespaceResolver2.Add("scroll", "clr-namespace:Xamarin.Forms.Extended;assembly=Xamarin.Forms.Extended.InfiniteScrolling");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(QueryPage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(12, 54)));
            bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
            label2.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("End"));
            label2.SetValue(Label.VerticalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            label2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.End);
            label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.FillAndExpand);
            bindingExtension2.Path = "CarCommand";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null);

            tapGestureRecognizer.SetBinding(TapGestureRecognizer.CommandProperty, binding2);
            label2.GestureRecognizers.Add(tapGestureRecognizer);
            grid.Children.Add(label2);
            stackLayout.Children.Add(grid);
            grid2.SetValue(VisualElement.BackgroundColorProperty, new Color(0.91764706373214722, 0.91764706373214722, 0.91764706373214722, 1.0));
            grid2.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(10.0, 10.0, 20.0, 10.0));
            bindingExtension3.Path = "DateCommand";
            BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null);

            tapGestureRecognizer2.SetBinding(TapGestureRecognizer.CommandProperty, binding3);
            grid2.GestureRecognizers.Add(tapGestureRecognizer2);
            bindingExtension4.Path = "DateText";
            BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue(null);

            label3.SetBinding(Label.TextProperty, binding4);
            label3.SetValue(Label.TextColorProperty, new Color(0.4117647111415863, 0.4117647111415863, 0.4117647111415863, 1.0));
            BindableObject         bindableObject3        = label3;
            BindableProperty       fontSizeProperty3      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter3 = new FontSizeConverter();
            string value3 = "Default";
            XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
            Type typeFromHandle5 = typeof(IProvideValueTarget);

            object[] array3 = new object[0 + 4];
            array3[0] = label3;
            array3[1] = grid2;
            array3[2] = stackLayout;
            array3[3] = this;
            xamlServiceProvider3.Add(typeFromHandle5, new SimpleValueTargetProvider(array3, Label.FontSizeProperty));
            xamlServiceProvider3.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle6 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();

            xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver3.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver3.Add("local", "clr-namespace:RFID");
            xmlNamespaceResolver3.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms");
            xmlNamespaceResolver3.Add("scroll", "clr-namespace:Xamarin.Forms.Extended;assembly=Xamarin.Forms.Extended.InfiniteScrolling");
            xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(QueryPage).GetTypeInfo().Assembly));
            xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(19, 70)));
            bindableObject3.SetValue(fontSizeProperty3, extendedTypeConverter3.ConvertFromInvariantString(value3, xamlServiceProvider3));
            label3.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Start);
            label3.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            grid2.Children.Add(label3);
            svgCachedImage.SetValue(View.HorizontalOptionsProperty, LayoutOptions.End);
            svgCachedImage.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            svgCachedImage.SetValue(CachedImage.SourceProperty, new FFImageLoading.Forms.ImageSourceConverter().ConvertFromInvariantString("calendar.svg"));
            svgCachedImage.SetValue(VisualElement.WidthRequestProperty, 24.0);
            svgCachedImage.SetValue(VisualElement.HeightRequestProperty, 24.0);
            grid2.Children.Add(svgCachedImage);
            stackLayout.Children.Add(grid2);
            listView.SetValue(ListView.HasUnevenRowsProperty, true);
            listView.SetValue(ListView.SelectionModeProperty, ListViewSelectionMode.None);
            listView.SetValue(ListView.SeparatorVisibilityProperty, SeparatorVisibility.None);
            listView.SetValue(ListView.IsPullToRefreshEnabledProperty, true);
            listView.RefreshAllowed = true;
            bindingExtension5.Path  = "IsBusy";
            BindingBase binding5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue(null);

            listView.SetBinding(ListView.IsRefreshingProperty, binding5);
            bindingExtension6.Path = "RefreshCommand";
            BindingBase binding6 = ((IMarkupExtension <BindingBase>)bindingExtension6).ProvideValue(null);

            listView.SetBinding(ListView.RefreshCommandProperty, binding6);
            bindingExtension7.Path = "Items";
            BindingBase binding7 = ((IMarkupExtension <BindingBase>)bindingExtension7).ProvideValue(null);

            listView.SetBinding(ItemsView <Cell> .ItemsSourceProperty, binding7);
            IDataTemplate dataTemplate2 = dataTemplate;

            QueryPage.< InitializeComponent > _anonXamlCDataTemplate_0 <InitializeComponent> _anonXamlCDataTemplate_ = new QueryPage.< InitializeComponent > _anonXamlCDataTemplate_0();
            object[]    array4 = new object[0 + 4];
            array4[0] = dataTemplate;
            array4[1] = listView;
            array4[2] = stackLayout;
            array4[3] = this;
Ejemplo n.º 21
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(UploadPage).GetTypeInfo().Assembly.GetName(), "Views/UploadPage.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            BindingExtension   bindingExtension    = new BindingExtension();
            RowDefinition      rowDefinition       = new RowDefinition();
            RowDefinition      rowDefinition2      = new RowDefinition();
            RowDefinition      rowDefinition3      = new RowDefinition();
            BindingExtension   bindingExtension2   = new BindingExtension();
            Label              label               = new Label();
            TranslateExtension translateExtension  = new TranslateExtension();
            BindingExtension   bindingExtension3   = new BindingExtension();
            TranslateExtension translateExtension2 = new TranslateExtension();
            NewEntryCell       newEntryCell        = new NewEntryCell();
            TranslateExtension translateExtension3 = new TranslateExtension();
            BindingExtension   bindingExtension4   = new BindingExtension();
            PhotoCell          photoCell           = new PhotoCell();
            TableSection       tableSection        = new TableSection();
            TableRoot          tableRoot           = new TableRoot();
            TableView          tableView           = new TableView();
            TranslateExtension translateExtension4 = new TranslateExtension();
            BindingExtension   bindingExtension5   = new BindingExtension();
            Button             button              = new Button();
            Grid       grid       = new Grid();
            ScrollView scrollView = new ScrollView();
            NameScope  nameScope  = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(scrollView, nameScope);
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(rowDefinition, nameScope);
            NameScope.SetNameScope(rowDefinition2, nameScope);
            NameScope.SetNameScope(rowDefinition3, nameScope);
            NameScope.SetNameScope(label, nameScope);
            NameScope.SetNameScope(tableView, nameScope);
            NameScope.SetNameScope(tableRoot, nameScope);
            NameScope.SetNameScope(tableSection, nameScope);
            NameScope.SetNameScope(newEntryCell, nameScope);
            NameScope.SetNameScope(photoCell, nameScope);
            ((INameScope)nameScope).RegisterName("photocell", photoCell);
            if (photoCell.StyleId == null)
            {
                photoCell.StyleId = "photocell";
            }
            NameScope.SetNameScope(button, nameScope);
            this.photocell = photoCell;
            this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
            bindingExtension.Path = "Title";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null);

            this.SetBinding(Page.TitleProperty, binding);
            grid.SetValue(Grid.RowSpacingProperty, 0.0);
            rowDefinition.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition);
            rowDefinition2.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition2);
            rowDefinition3.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition3);
            label.SetValue(View.MarginProperty, new Thickness(10.0));
            label.SetValue(Label.TextColorProperty, Color.Black);
            label.SetValue(Grid.RowProperty, 0);
            bindingExtension2.Path = "Detail";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null);

            label.SetBinding(Label.TextProperty, binding2);
            grid.Children.Add(label);
            tableView.Intent = TableIntent.Data;
            tableView.SetValue(Grid.RowProperty, 1);
            tableView.SetValue(TableView.HasUnevenRowsProperty, true);
            tableView.SetValue(VisualElement.BackgroundColorProperty, new Color(0.9843137264251709, 0.9843137264251709, 0.9843137264251709, 1.0));
            translateExtension.Text = "delivery";
            IMarkupExtension    markupExtension     = translateExtension;
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 7];
            array[0] = newEntryCell;
            array[1] = tableSection;
            array[2] = tableRoot;
            array[3] = tableView;
            array[4] = grid;
            array[5] = scrollView;
            array[6] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, NewEntryCell.TitleProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver.Add("local", "clr-namespace:RFID");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(UploadPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(25, 50)));
            object title = markupExtension.ProvideValue(xamlServiceProvider);

            newEntryCell.Title     = title;
            bindingExtension3.Path = "Delivery";
            BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null);

            newEntryCell.SetBinding(NewEntryCell.TextProperty, binding3);
            translateExtension2.Text = "please";
            IMarkupExtension    markupExtension2     = translateExtension2;
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 7];
            array2[0] = newEntryCell;
            array2[1] = tableSection;
            array2[2] = tableRoot;
            array2[3] = tableView;
            array2[4] = grid;
            array2[5] = scrollView;
            array2[6] = this;
            xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, NewEntryCell.HintProperty));
            xamlServiceProvider2.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver2.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver2.Add("local", "clr-namespace:RFID");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(UploadPage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(25, 111)));
            object hint = markupExtension2.ProvideValue(xamlServiceProvider2);

            newEntryCell.Hint = hint;
            tableSection.Add(newEntryCell);
            translateExtension3.Text = "deliveryphoto";
            IMarkupExtension    markupExtension3     = translateExtension3;
            XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
            Type typeFromHandle5 = typeof(IProvideValueTarget);

            object[] array3 = new object[0 + 7];
            array3[0] = photoCell;
            array3[1] = tableSection;
            array3[2] = tableRoot;
            array3[3] = tableView;
            array3[4] = grid;
            array3[5] = scrollView;
            array3[6] = this;
            xamlServiceProvider3.Add(typeFromHandle5, new SimpleValueTargetProvider(array3, PhotoCell.TitleProperty));
            xamlServiceProvider3.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle6 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();

            xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver3.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver3.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver3.Add("local", "clr-namespace:RFID");
            xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(UploadPage).GetTypeInfo().Assembly));
            xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(26, 66)));
            object title2 = markupExtension3.ProvideValue(xamlServiceProvider3);

            photoCell.Title        = title2;
            bindingExtension4.Path = "ImageFiles";
            BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue(null);

            photoCell.SetBinding(PhotoCell.FilesProperty, binding4);
            photoCell.SetValue(PhotoCell.CanTakeMoreProperty, false);
            tableSection.Add(photoCell);
            tableRoot.Add(tableSection);
            tableView.Root = tableRoot;
            grid.Children.Add(tableView);
            button.SetValue(View.MarginProperty, new Thickness(20.0));
            translateExtension4.Text = "submit";
            IMarkupExtension    markupExtension4     = translateExtension4;
            XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
            Type typeFromHandle7 = typeof(IProvideValueTarget);

            object[] array4 = new object[0 + 4];
            array4[0] = button;
            array4[1] = grid;
            array4[2] = scrollView;
            array4[3] = this;
            xamlServiceProvider4.Add(typeFromHandle7, new SimpleValueTargetProvider(array4, Button.TextProperty));
            xamlServiceProvider4.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle8 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver4 = new XmlNamespaceResolver();

            xmlNamespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver4.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver4.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver4.Add("local", "clr-namespace:RFID");
            xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(UploadPage).GetTypeInfo().Assembly));
            xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(30, 37)));
            object text = markupExtension4.ProvideValue(xamlServiceProvider4);

            button.Text            = text;
            bindingExtension5.Path = "CommitCommand";
            BindingBase binding5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue(null);

            button.SetBinding(Button.CommandProperty, binding5);
            button.SetValue(Button.TextColorProperty, Color.White);
            button.SetValue(VisualElement.BackgroundColorProperty, new Color(0.050980392843484879, 0.27843138575553894, 0.63137257099151611, 1.0));
            button.SetValue(Grid.RowProperty, 2);
            button.SetValue(Button.BorderRadiusProperty, 10);
            button.SetValue(Button.BorderColorProperty, new Color(0.050980392843484879, 0.27843138575553894, 0.63137257099151611, 1.0));
            button.SetValue(Button.BorderWidthProperty, 1.0);
            grid.Children.Add(button);
            scrollView.Content = grid;
            this.SetValue(ContentPage.ContentProperty, scrollView);
        }
Ejemplo n.º 22
0
 private void InitializeComponent()
 {
     ResourceLoader.ResourceLoadingQuery resourceLoadingQuery = new ResourceLoader.ResourceLoadingQuery();
     resourceLoadingQuery.set_AssemblyName(typeof(InformationPage).GetTypeInfo().Assembly.GetName());
     resourceLoadingQuery.set_ResourcePath("Views/InformationPage.xaml");
     resourceLoadingQuery.set_Instance((object)this);
     if (ResourceLoader.CanProvideContentFor(resourceLoadingQuery))
     {
         this.__InitComponentRuntime();
     }
     else if (XamlLoader.get_XamlFileProvider() != null && XamlLoader.get_XamlFileProvider()(((object)this).GetType()) != null)
     {
         this.__InitComponentRuntime();
     }
     else
     {
         TranslateExtension      translateExtension1 = new TranslateExtension();
         StaticResourceExtension resourceExtension1  = new StaticResourceExtension();
         BindingExtension        bindingExtension1   = new BindingExtension();
         DataTemplate            dataTemplate1       = new DataTemplate();
         ListView           listView            = new ListView((ListViewCachingStrategy)1);
         StackLayout        stackLayout         = new StackLayout();
         TranslateExtension translateExtension2 = new TranslateExtension();
         BindingExtension   bindingExtension2   = new BindingExtension();
         EmptyView          emptyView           = new EmptyView();
         Grid            grid = new Grid();
         InformationPage informationPage;
         NameScope       nameScope = (NameScope)(NameScope.GetNameScope((BindableObject)(informationPage = this)) ?? (INameScope) new NameScope());
         NameScope.SetNameScope((BindableObject)informationPage, (INameScope)nameScope);
         translateExtension1.Text = "Information_Page_Title";
         TranslateExtension  translateExtension3  = translateExtension1;
         XamlServiceProvider xamlServiceProvider1 = new XamlServiceProvider();
         Type     type1     = typeof(IProvideValueTarget);
         object[] objArray1 = new object[0 + 1];
         objArray1[0] = (object)informationPage;
         SimpleValueTargetProvider valueTargetProvider1;
         object obj1 = (object)(valueTargetProvider1 = new SimpleValueTargetProvider(objArray1, (object)Page.TitleProperty, (INameScope)nameScope));
         xamlServiceProvider1.Add(type1, (object)valueTargetProvider1);
         xamlServiceProvider1.Add(typeof(IReferenceProvider), obj1);
         Type type2 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver1 = new XmlNamespaceResolver();
         namespaceResolver1.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver1.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver1.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver1.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("iOsSpecific", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver1.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver1.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver1 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver1, typeof(InformationPage).GetTypeInfo().Assembly);
         xamlServiceProvider1.Add(type2, (object)xamlTypeResolver1);
         xamlServiceProvider1.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(13, 5)));
         object obj2 = ((IMarkupExtension)translateExtension3).ProvideValue((IServiceProvider)xamlServiceProvider1);
         ((Page)informationPage).set_Title((string)obj2);
         ((BindableObject)informationPage).SetValue((BindableProperty)Page.UseSafeAreaProperty, (object)true);
         resourceExtension1.set_Key("ListViewMonthGroupHeaderTemplate");
         StaticResourceExtension resourceExtension2   = resourceExtension1;
         XamlServiceProvider     xamlServiceProvider2 = new XamlServiceProvider();
         Type     type3     = typeof(IProvideValueTarget);
         object[] objArray2 = new object[0 + 4];
         objArray2[0] = (object)listView;
         objArray2[1] = (object)stackLayout;
         objArray2[2] = (object)grid;
         objArray2[3] = (object)informationPage;
         SimpleValueTargetProvider valueTargetProvider2;
         object obj3 = (object)(valueTargetProvider2 = new SimpleValueTargetProvider(objArray2, (object)ListView.GroupHeaderTemplateProperty, (INameScope)nameScope));
         xamlServiceProvider2.Add(type3, (object)valueTargetProvider2);
         xamlServiceProvider2.Add(typeof(IReferenceProvider), obj3);
         Type type4 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver2 = new XmlNamespaceResolver();
         namespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver2.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver2.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("iOsSpecific", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver2.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver2.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver2 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver2, typeof(InformationPage).GetTypeInfo().Assembly);
         xamlServiceProvider2.Add(type4, (object)xamlTypeResolver2);
         xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(25, 21)));
         object obj4 = ((IMarkupExtension)resourceExtension2).ProvideValue((IServiceProvider)xamlServiceProvider2);
         listView.set_GroupHeaderTemplate((DataTemplate)obj4);
         ((BindableObject)listView).SetValue((BindableProperty)ListView.HasUnevenRowsProperty, (object)true);
         bindingExtension1.set_Path("Informations");
         BindingBase bindingBase1 = ((IMarkupExtension <BindingBase>)bindingExtension1).ProvideValue((IServiceProvider)null);
         ((BindableObject)listView).SetBinding((BindableProperty)ItemsView <Cell> .ItemsSourceProperty, bindingBase1);
         ((BindableObject)listView).SetValue((BindableProperty)View.VerticalOptionsProperty, (object)(LayoutOptions)LayoutOptions.FillAndExpand);
         DataTemplate dataTemplate2 = dataTemplate1;
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: variable of a compiler-generated type
         InformationPage.\u003CInitializeComponent\u003E_anonXamlCDataTemplate_22 xamlCdataTemplate22 = new InformationPage.\u003CInitializeComponent\u003E_anonXamlCDataTemplate_22();
         object[] objArray3 = new object[0 + 5];
         objArray3[0] = (object)dataTemplate1;
         objArray3[1] = (object)listView;
         objArray3[2] = (object)stackLayout;
         objArray3[3] = (object)grid;
         objArray3[4] = (object)informationPage;
         // ISSUE: reference to a compiler-generated field
         xamlCdataTemplate22.parentValues = objArray3;
         // ISSUE: reference to a compiler-generated field
         xamlCdataTemplate22.root = informationPage;
         // ISSUE: reference to a compiler-generated method
         Func <object> func = new Func <object>(xamlCdataTemplate22.LoadDataTemplate);
         ((IDataTemplate)dataTemplate2).set_LoadTemplate(func);
         ((BindableObject)listView).SetValue((BindableProperty)ItemsView <Cell> .ItemTemplateProperty, (object)dataTemplate1);
         ((ICollection <View>)((Layout <View>)stackLayout).get_Children()).Add((View)listView);
         ((ICollection <View>)grid.get_Children()).Add((View)stackLayout);
         translateExtension2.Text = "Information_Page_Empty_List";
         TranslateExtension  translateExtension4  = translateExtension2;
         XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
         Type     type5     = typeof(IProvideValueTarget);
         object[] objArray4 = new object[0 + 3];
         objArray4[0] = (object)emptyView;
         objArray4[1] = (object)grid;
         objArray4[2] = (object)informationPage;
         SimpleValueTargetProvider valueTargetProvider3;
         object obj5 = (object)(valueTargetProvider3 = new SimpleValueTargetProvider(objArray4, (object)EmptyView.TitleProperty, (INameScope)nameScope));
         xamlServiceProvider3.Add(type5, (object)valueTargetProvider3);
         xamlServiceProvider3.Add(typeof(IReferenceProvider), obj5);
         Type type6 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver3 = new XmlNamespaceResolver();
         namespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver3.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver3.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("iOsSpecific", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver3.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver3.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("views", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         XamlTypeResolver xamlTypeResolver3 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver3, typeof(InformationPage).GetTypeInfo().Assembly);
         xamlServiceProvider3.Add(type6, (object)xamlTypeResolver3);
         xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(65, 17)));
         object obj6 = ((IMarkupExtension)translateExtension4).ProvideValue((IServiceProvider)xamlServiceProvider3);
         emptyView.Title = (string)obj6;
         ((BindableObject)emptyView).SetValue((BindableProperty)View.MarginProperty, (object)new Thickness(0.0, -12.0, 0.0, 0.0));
         bindingExtension2.set_Path("Informations.Count");
         BindingBase bindingBase2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue((IServiceProvider)null);
         ((BindableObject)emptyView).SetBinding((BindableProperty)BindableObject.BindingContextProperty, bindingBase2);
         ((BindableObject)emptyView).SetValue(EmptyView.ImageProperty, (object)"resource://Ekreta.Mobile.Core.Images.KretaMan_smile.png?assembly=Ekreta.Mobile.Core");
         ((BindableObject)emptyView).SetValue(EmptyView.IsSubtitleVisibleProperty, (object)false);
         ((ICollection <View>)grid.get_Children()).Add((View)emptyView);
         ((BindableObject)informationPage).SetValue((BindableProperty)ContentPage.ContentProperty, (object)grid);
     }
 }
Ejemplo n.º 23
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(ReLockPage).GetTypeInfo().Assembly.GetName(), "Views/ReLockPage.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            BindingExtension bindingExtension  = new BindingExtension();
            RowDefinition    rowDefinition     = new RowDefinition();
            RowDefinition    rowDefinition2    = new RowDefinition();
            RowDefinition    rowDefinition3    = new RowDefinition();
            ColumnDefinition columnDefinition  = new ColumnDefinition();
            ColumnDefinition columnDefinition2 = new ColumnDefinition();
            Label            label             = new Label();
            BindingExtension bindingExtension2 = new BindingExtension();
            Label            label2            = new Label();
            Grid             grid = new Grid();
            BindingExtension bindingExtension3 = new BindingExtension();
            TextCell         textCell          = new TextCell();
            BindingExtension bindingExtension4 = new BindingExtension();
            TextCell         textCell2         = new TextCell();
            BindingExtension bindingExtension5 = new BindingExtension();
            TextCell         textCell3         = new TextCell();
            BindingExtension bindingExtension6 = new BindingExtension();
            TextCell         textCell4         = new TextCell();
            TableSection     tableSection      = new TableSection();
            TableRoot        tableRoot         = new TableRoot();
            TableView        tableView         = new TableView();
            ColumnDefinition columnDefinition3 = new ColumnDefinition();
            ColumnDefinition columnDefinition4 = new ColumnDefinition();
            ColumnDefinition columnDefinition5 = new ColumnDefinition();
            BindingExtension bindingExtension7 = new BindingExtension();
            Button           button            = new Button();
            BindingExtension bindingExtension8 = new BindingExtension();
            Button           button2           = new Button();
            Grid             grid2             = new Grid();
            Grid             grid3             = new Grid();
            NameScope        nameScope         = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(grid3, nameScope);
            NameScope.SetNameScope(rowDefinition, nameScope);
            NameScope.SetNameScope(rowDefinition2, nameScope);
            NameScope.SetNameScope(rowDefinition3, nameScope);
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(columnDefinition, nameScope);
            NameScope.SetNameScope(columnDefinition2, nameScope);
            NameScope.SetNameScope(label, nameScope);
            NameScope.SetNameScope(label2, nameScope);
            NameScope.SetNameScope(tableView, nameScope);
            ((INameScope)nameScope).RegisterName("tableView", tableView);
            if (tableView.StyleId == null)
            {
                tableView.StyleId = "tableView";
            }
            NameScope.SetNameScope(tableRoot, nameScope);
            NameScope.SetNameScope(tableSection, nameScope);
            NameScope.SetNameScope(textCell, nameScope);
            NameScope.SetNameScope(textCell2, nameScope);
            NameScope.SetNameScope(textCell3, nameScope);
            NameScope.SetNameScope(textCell4, nameScope);
            NameScope.SetNameScope(grid2, nameScope);
            NameScope.SetNameScope(columnDefinition3, nameScope);
            NameScope.SetNameScope(columnDefinition4, nameScope);
            NameScope.SetNameScope(columnDefinition5, nameScope);
            NameScope.SetNameScope(button, nameScope);
            NameScope.SetNameScope(button2, nameScope);
            this.tableView = tableView;
            this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
            bindingExtension.Path = "Title";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null);

            this.SetBinding(Page.TitleProperty, binding);
            grid3.SetValue(Grid.RowSpacingProperty, 0.0);
            rowDefinition.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid3.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition);
            rowDefinition2.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid3.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition2);
            rowDefinition3.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid3.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition3);
            grid.SetValue(VisualElement.BackgroundColorProperty, new Color(0.92156863212585449, 0.92156863212585449, 0.92156863212585449, 1.0));
            grid.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(10.0, 10.0, 10.0, 10.0));
            columnDefinition.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition);
            columnDefinition2.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("3*"));
            grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition2);
            label.SetValue(Grid.ColumnProperty, 0);
            label.SetValue(Label.TextProperty, "当前地址");
            label.SetValue(Label.TextColorProperty, new Color(0.501960813999176, 0.501960813999176, 0.501960813999176, 1.0));
            BindableObject         bindableObject        = label;
            BindableProperty       fontSizeProperty      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
            string value = "Default";
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 4];
            array[0] = label;
            array[1] = grid;
            array[2] = grid3;
            array[3] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, Label.FontSizeProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(ReLockPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(20, 82)));
            bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
            label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            grid.Children.Add(label);
            label2.SetValue(Grid.ColumnProperty, 1);
            bindingExtension2.Path = "CurLocation";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null);

            label2.SetBinding(Label.TextProperty, binding2);
            BindableObject         bindableObject2        = label2;
            BindableProperty       fontSizeProperty2      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
            string value2 = "Default";
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 4];
            array2[0] = label2;
            array2[1] = grid;
            array2[2] = grid3;
            array2[3] = this;
            xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, Label.FontSizeProperty));
            xamlServiceProvider2.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(ReLockPage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(21, 77)));
            bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
            label2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            grid.Children.Add(label2);
            grid3.Children.Add(grid);
            tableView.Intent = TableIntent.Form;
            tableView.SetValue(Grid.RowProperty, 1);
            tableView.SetValue(TableView.HasUnevenRowsProperty, true);
            tableView.SetValue(VisualElement.BackgroundColorProperty, new Color(0.9843137264251709, 0.9843137264251709, 0.9843137264251709, 1.0));
            textCell.SetValue(TextCell.TextProperty, "起始时间");
            bindingExtension3.Path = "Begintime";
            BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null);

            textCell.SetBinding(TextCell.DetailProperty, binding3);
            textCell.SetValue(TextCell.DetailColorProperty, Color.Black);
            tableSection.Add(textCell);
            textCell2.SetValue(TextCell.TextProperty, "目的地址");
            bindingExtension4.Path = "Address";
            BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue(null);

            textCell2.SetBinding(TextCell.DetailProperty, binding4);
            textCell2.SetValue(TextCell.DetailColorProperty, Color.Black);
            tableSection.Add(textCell2);
            textCell3.SetValue(TextCell.TextProperty, "运输状态");
            bindingExtension5.Path = "Status";
            BindingBase binding5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue(null);

            textCell3.SetBinding(TextCell.DetailProperty, binding5);
            textCell3.SetValue(TextCell.DetailColorProperty, Color.Black);
            tableSection.Add(textCell3);
            textCell4.SetValue(TextCell.TextProperty, "施封位置");
            bindingExtension6.Path = "LockLocation";
            BindingBase binding6 = ((IMarkupExtension <BindingBase>)bindingExtension6).ProvideValue(null);

            textCell4.SetBinding(TextCell.DetailProperty, binding6);
            textCell4.SetValue(TextCell.DetailColorProperty, Color.Black);
            tableSection.Add(textCell4);
            tableRoot.Add(tableSection);
            tableView.Root = tableRoot;
            grid3.Children.Add(tableView);
            grid2.SetValue(Grid.RowProperty, 2);
            grid2.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(20.0, 5.0, 20.0, 5.0));
            grid2.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            columnDefinition3.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid2.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition3);
            columnDefinition4.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("50"));
            grid2.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition4);
            columnDefinition5.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid2.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition5);
            button.SetValue(Grid.ColumnProperty, 0);
            button.SetValue(Button.TextProperty, "新建运输");
            bindingExtension7.Path = "NewCommand";
            BindingBase binding7 = ((IMarkupExtension <BindingBase>)bindingExtension7).ProvideValue(null);

            button.SetBinding(Button.CommandProperty, binding7);
            button.SetValue(Button.TextColorProperty, new Color(0.050980392843484879, 0.27843138575553894, 0.63137257099151611, 1.0));
            button.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            button.SetValue(Button.BorderRadiusProperty, 10);
            button.SetValue(Button.BorderColorProperty, new Color(0.050980392843484879, 0.27843138575553894, 0.63137257099151611, 1.0));
            button.SetValue(Button.BorderWidthProperty, 1.0);
            grid2.Children.Add(button);
            button2.SetValue(Grid.ColumnProperty, 2);
            button2.SetValue(Button.TextProperty, "继续施封");
            bindingExtension8.Path = "ContinueCommand";
            BindingBase binding8 = ((IMarkupExtension <BindingBase>)bindingExtension8).ProvideValue(null);

            button2.SetBinding(Button.CommandProperty, binding8);
            button2.SetValue(Button.TextColorProperty, Color.White);
            button2.SetValue(VisualElement.BackgroundColorProperty, new Color(0.050980392843484879, 0.27843138575553894, 0.63137257099151611, 1.0));
            button2.SetValue(Button.BorderRadiusProperty, 10);
            button2.SetValue(Button.BorderColorProperty, new Color(0.050980392843484879, 0.27843138575553894, 0.63137257099151611, 1.0));
            button2.SetValue(Button.BorderWidthProperty, 1.0);
            grid2.Children.Add(button2);
            grid3.Children.Add(grid2);
            this.SetValue(ContentPage.ContentProperty, grid3);
        }
Ejemplo n.º 24
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(NewImageCell).GetTypeInfo().Assembly.GetName(), "Layout/NewImageCell.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            ColumnDefinition     columnDefinition     = new ColumnDefinition();
            ColumnDefinition     columnDefinition2    = new ColumnDefinition();
            RowDefinition        rowDefinition        = new RowDefinition();
            Label                label                = new Label();
            TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
            Image                image                = new Image();
            Grid      grid      = new Grid();
            Grid      grid2     = new Grid();
            NameScope nameScope = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(grid2, nameScope);
            NameScope.SetNameScope(columnDefinition, nameScope);
            NameScope.SetNameScope(columnDefinition2, nameScope);
            NameScope.SetNameScope(rowDefinition, nameScope);
            NameScope.SetNameScope(label, nameScope);
            ((INameScope)nameScope).RegisterName("label", label);
            if (label.StyleId == null)
            {
                label.StyleId = "label";
            }
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(image, nameScope);
            ((INameScope)nameScope).RegisterName("image", image);
            if (image.StyleId == null)
            {
                image.StyleId = "image";
            }
            NameScope.SetNameScope(tapGestureRecognizer, nameScope);
            this.label = label;
            this.image = image;
            grid2.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            grid2.SetValue(Grid.RowSpacingProperty, 5.0);
            grid2.SetValue(Layout.PaddingProperty, new Thickness(10.0, 5.0, 10.0, 5.0));
            columnDefinition.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid2.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition);
            columnDefinition2.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("3*"));
            grid2.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition2);
            rowDefinition.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("90"));
            grid2.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition);
            BindableObject         bindableObject        = label;
            BindableProperty       fontSizeProperty      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
            string value = "Default";
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 3];
            array[0] = label;
            array[1] = grid2;
            array[2] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, Label.FontSizeProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("image", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(NewImageCell).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(15, 20)));
            bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
            label.SetValue(Label.TextColorProperty, new Color(0.501960813999176, 0.501960813999176, 0.501960813999176, 1.0));
            label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Start);
            label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Start"));
            label.SetValue(Grid.ColumnProperty, 0);
            grid2.Children.Add(label);
            grid.SetValue(Grid.ColumnProperty, 1);
            image.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Start);
            image.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            image.SetValue(VisualElement.HeightRequestProperty, 90.0);
            image.SetValue(VisualElement.WidthRequestProperty, 90.0);
            image.SetValue(Image.AspectProperty, Aspect.AspectFill);
            tapGestureRecognizer.Tapped += new EventHandler(this.TapGestureRecognizer_Tapped);
            image.GestureRecognizers.Add(tapGestureRecognizer);
            grid.Children.Add(image);
            grid2.Children.Add(grid);
            this.View = grid2;
        }
Ejemplo n.º 25
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(DataPage).GetTypeInfo().Assembly.GetName(), "Views/DataPage.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            BindingExtension   bindingExtension   = new BindingExtension();
            RowDefinition      rowDefinition      = new RowDefinition();
            RowDefinition      rowDefinition2     = new RowDefinition();
            RowDefinition      rowDefinition3     = new RowDefinition();
            ColumnDefinition   columnDefinition   = new ColumnDefinition();
            ColumnDefinition   columnDefinition2  = new ColumnDefinition();
            TranslateExtension translateExtension = new TranslateExtension();
            Label              label             = new Label();
            BindingExtension   bindingExtension2 = new BindingExtension();
            Label              label2            = new Label();
            Grid               grid = new Grid();
            TranslateExtension translateExtension2  = new TranslateExtension();
            BindingExtension   bindingExtension3    = new BindingExtension();
            NewEntryCell       newEntryCell         = new NewEntryCell();
            TranslateExtension translateExtension3  = new TranslateExtension();
            BindingExtension   bindingExtension4    = new BindingExtension();
            NewEntryCell       newEntryCell2        = new NewEntryCell();
            TranslateExtension translateExtension4  = new TranslateExtension();
            BindingExtension   bindingExtension5    = new BindingExtension();
            NewEntryCell       newEntryCell3        = new NewEntryCell();
            TranslateExtension translateExtension5  = new TranslateExtension();
            BindingExtension   bindingExtension6    = new BindingExtension();
            TranslateExtension translateExtension6  = new TranslateExtension();
            NewEntryCell       newEntryCell4        = new NewEntryCell();
            BindingExtension   bindingExtension7    = new BindingExtension();
            TranslateExtension translateExtension7  = new TranslateExtension();
            TranslateExtension translateExtension8  = new TranslateExtension();
            QRCodeCell         qrcodeCell           = new QRCodeCell();
            TranslateExtension translateExtension9  = new TranslateExtension();
            BindingExtension   bindingExtension8    = new BindingExtension();
            PhotoCell          photoCell            = new PhotoCell();
            TableSection       tableSection         = new TableSection();
            TableRoot          tableRoot            = new TableRoot();
            TableView          tableView            = new TableView();
            TranslateExtension translateExtension10 = new TranslateExtension();
            BindingExtension   bindingExtension9    = new BindingExtension();
            Button             button     = new Button();
            Grid               grid2      = new Grid();
            ScrollView         scrollView = new ScrollView();
            NameScope          nameScope  = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(scrollView, nameScope);
            NameScope.SetNameScope(grid2, nameScope);
            NameScope.SetNameScope(rowDefinition, nameScope);
            NameScope.SetNameScope(rowDefinition2, nameScope);
            NameScope.SetNameScope(rowDefinition3, nameScope);
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(columnDefinition, nameScope);
            NameScope.SetNameScope(columnDefinition2, nameScope);
            NameScope.SetNameScope(label, nameScope);
            NameScope.SetNameScope(label2, nameScope);
            NameScope.SetNameScope(tableView, nameScope);
            NameScope.SetNameScope(tableRoot, nameScope);
            NameScope.SetNameScope(tableSection, nameScope);
            NameScope.SetNameScope(newEntryCell, nameScope);
            NameScope.SetNameScope(newEntryCell2, nameScope);
            NameScope.SetNameScope(newEntryCell3, nameScope);
            NameScope.SetNameScope(newEntryCell4, nameScope);
            NameScope.SetNameScope(qrcodeCell, nameScope);
            NameScope.SetNameScope(photoCell, nameScope);
            ((INameScope)nameScope).RegisterName("photocell", photoCell);
            if (photoCell.StyleId == null)
            {
                photoCell.StyleId = "photocell";
            }
            NameScope.SetNameScope(button, nameScope);
            this.photocell = photoCell;
            this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
            bindingExtension.Path = "Title";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null);

            this.SetBinding(Page.TitleProperty, binding);
            grid2.SetValue(Grid.RowSpacingProperty, 0.0);
            rowDefinition.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid2.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition);
            rowDefinition2.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("480"));
            grid2.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition2);
            rowDefinition3.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid2.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition3);
            grid.SetValue(VisualElement.BackgroundColorProperty, new Color(0.92156863212585449, 0.92156863212585449, 0.92156863212585449, 1.0));
            grid.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(10.0, 10.0, 10.0, 10.0));
            columnDefinition.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition);
            columnDefinition2.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("3*"));
            grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition2);
            label.SetValue(Grid.ColumnProperty, 0);
            translateExtension.Text = "curaddress";
            IMarkupExtension    markupExtension     = translateExtension;
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 5];
            array[0] = label;
            array[1] = grid;
            array[2] = grid2;
            array[3] = scrollView;
            array[4] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, Label.TextProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver.Add("local", "clr-namespace:RFID");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(22, 50)));
            object text = markupExtension.ProvideValue(xamlServiceProvider);

            label.Text = text;
            label.SetValue(Label.TextColorProperty, new Color(0.501960813999176, 0.501960813999176, 0.501960813999176, 1.0));
            BindableObject         bindableObject        = label;
            BindableProperty       fontSizeProperty      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
            string value = "Default";
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 5];
            array2[0] = label;
            array2[1] = grid;
            array2[2] = grid2;
            array2[3] = scrollView;
            array2[4] = this;
            xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, Label.FontSizeProperty));
            xamlServiceProvider2.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver2.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver2.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver2.Add("local", "clr-namespace:RFID");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(22, 106)));
            bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider2));
            label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            grid.Children.Add(label);
            label2.SetValue(Grid.ColumnProperty, 1);
            bindingExtension2.Path = "CurLocation";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null);

            label2.SetBinding(Label.TextProperty, binding2);
            BindableObject         bindableObject2        = label2;
            BindableProperty       fontSizeProperty2      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
            string value2 = "Default";
            XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider();
            Type typeFromHandle5 = typeof(IProvideValueTarget);

            object[] array3 = new object[0 + 5];
            array3[0] = label2;
            array3[1] = grid;
            array3[2] = grid2;
            array3[3] = scrollView;
            array3[4] = this;
            xamlServiceProvider3.Add(typeFromHandle5, new SimpleValueTargetProvider(array3, Label.FontSizeProperty));
            xamlServiceProvider3.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle6 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver3 = new XmlNamespaceResolver();

            xmlNamespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver3.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver3.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver3.Add("local", "clr-namespace:RFID");
            xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(23, 77)));
            bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider3));
            label2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
            grid.Children.Add(label2);
            grid2.Children.Add(grid);
            tableView.Intent = TableIntent.Form;
            tableView.SetValue(Grid.RowProperty, 1);
            tableView.SetValue(TableView.HasUnevenRowsProperty, true);
            tableView.SetValue(VisualElement.BackgroundColorProperty, new Color(0.9843137264251709, 0.9843137264251709, 0.9843137264251709, 1.0));
            translateExtension2.Text = "acar";
            IMarkupExtension    markupExtension2     = translateExtension2;
            XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider();
            Type typeFromHandle7 = typeof(IProvideValueTarget);

            object[] array4 = new object[0 + 7];
            array4[0] = newEntryCell;
            array4[1] = tableSection;
            array4[2] = tableRoot;
            array4[3] = tableView;
            array4[4] = grid2;
            array4[5] = scrollView;
            array4[6] = this;
            xamlServiceProvider4.Add(typeFromHandle7, new SimpleValueTargetProvider(array4, NewEntryCell.TitleProperty));
            xamlServiceProvider4.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle8 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver4 = new XmlNamespaceResolver();

            xmlNamespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver4.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver4.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver4.Add("local", "clr-namespace:RFID");
            xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(29, 52)));
            object title = markupExtension2.ProvideValue(xamlServiceProvider4);

            newEntryCell.Title     = title;
            bindingExtension3.Path = "CarNo";
            BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null);

            newEntryCell.SetBinding(NewEntryCell.TextProperty, binding3);
            tableSection.Add(newEntryCell);
            translateExtension3.Text = "driver";
            IMarkupExtension    markupExtension3     = translateExtension3;
            XamlServiceProvider xamlServiceProvider5 = new XamlServiceProvider();
            Type typeFromHandle9 = typeof(IProvideValueTarget);

            object[] array5 = new object[0 + 7];
            array5[0] = newEntryCell2;
            array5[1] = tableSection;
            array5[2] = tableRoot;
            array5[3] = tableView;
            array5[4] = grid2;
            array5[5] = scrollView;
            array5[6] = this;
            xamlServiceProvider5.Add(typeFromHandle9, new SimpleValueTargetProvider(array5, NewEntryCell.TitleProperty));
            xamlServiceProvider5.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle10 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver5 = new XmlNamespaceResolver();

            xmlNamespaceResolver5.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver5.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver5.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver5.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver5.Add("local", "clr-namespace:RFID");
            xamlServiceProvider5.Add(typeFromHandle10, new XamlTypeResolver(xmlNamespaceResolver5, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider5.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(30, 51)));
            object title2 = markupExtension3.ProvideValue(xamlServiceProvider5);

            newEntryCell2.Title    = title2;
            bindingExtension4.Path = "Driver";
            BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue(null);

            newEntryCell2.SetBinding(NewEntryCell.TextProperty, binding4);
            tableSection.Add(newEntryCell2);
            translateExtension4.Text = "place";
            IMarkupExtension    markupExtension4     = translateExtension4;
            XamlServiceProvider xamlServiceProvider6 = new XamlServiceProvider();
            Type typeFromHandle11 = typeof(IProvideValueTarget);

            object[] array6 = new object[0 + 7];
            array6[0] = newEntryCell3;
            array6[1] = tableSection;
            array6[2] = tableRoot;
            array6[3] = tableView;
            array6[4] = grid2;
            array6[5] = scrollView;
            array6[6] = this;
            xamlServiceProvider6.Add(typeFromHandle11, new SimpleValueTargetProvider(array6, NewEntryCell.TitleProperty));
            xamlServiceProvider6.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle12 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver6 = new XmlNamespaceResolver();

            xmlNamespaceResolver6.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver6.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver6.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver6.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver6.Add("local", "clr-namespace:RFID");
            xamlServiceProvider6.Add(typeFromHandle12, new XamlTypeResolver(xmlNamespaceResolver6, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider6.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(31, 52)));
            object title3 = markupExtension4.ProvideValue(xamlServiceProvider6);

            newEntryCell3.Title    = title3;
            bindingExtension5.Path = "Place";
            BindingBase binding5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue(null);

            newEntryCell3.SetBinding(NewEntryCell.TextProperty, binding5);
            tableSection.Add(newEntryCell3);
            translateExtension5.Text = "arrival";
            IMarkupExtension    markupExtension5     = translateExtension5;
            XamlServiceProvider xamlServiceProvider7 = new XamlServiceProvider();
            Type typeFromHandle13 = typeof(IProvideValueTarget);

            object[] array7 = new object[0 + 7];
            array7[0] = newEntryCell4;
            array7[1] = tableSection;
            array7[2] = tableRoot;
            array7[3] = tableView;
            array7[4] = grid2;
            array7[5] = scrollView;
            array7[6] = this;
            xamlServiceProvider7.Add(typeFromHandle13, new SimpleValueTargetProvider(array7, NewEntryCell.TitleProperty));
            xamlServiceProvider7.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle14 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver7 = new XmlNamespaceResolver();

            xmlNamespaceResolver7.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver7.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver7.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver7.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver7.Add("local", "clr-namespace:RFID");
            xamlServiceProvider7.Add(typeFromHandle14, new XamlTypeResolver(xmlNamespaceResolver7, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider7.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(32, 54)));
            object title4 = markupExtension5.ProvideValue(xamlServiceProvider7);

            newEntryCell4.Title    = title4;
            bindingExtension6.Path = "Arrival";
            BindingBase binding6 = ((IMarkupExtension <BindingBase>)bindingExtension6).ProvideValue(null);

            newEntryCell4.SetBinding(NewEntryCell.TextProperty, binding6);
            translateExtension6.Text = "arrivalhint";
            IMarkupExtension    markupExtension6     = translateExtension6;
            XamlServiceProvider xamlServiceProvider8 = new XamlServiceProvider();
            Type typeFromHandle15 = typeof(IProvideValueTarget);

            object[] array8 = new object[0 + 7];
            array8[0] = newEntryCell4;
            array8[1] = tableSection;
            array8[2] = tableRoot;
            array8[3] = tableView;
            array8[4] = grid2;
            array8[5] = scrollView;
            array8[6] = this;
            xamlServiceProvider8.Add(typeFromHandle15, new SimpleValueTargetProvider(array8, NewEntryCell.HintProperty));
            xamlServiceProvider8.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle16 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver8 = new XmlNamespaceResolver();

            xmlNamespaceResolver8.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver8.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver8.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver8.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver8.Add("local", "clr-namespace:RFID");
            xamlServiceProvider8.Add(typeFromHandle16, new XamlTypeResolver(xmlNamespaceResolver8, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider8.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(32, 113)));
            object hint = markupExtension6.ProvideValue(xamlServiceProvider8);

            newEntryCell4.Hint = hint;
            tableSection.Add(newEntryCell4);
            bindingExtension7.Path = "QianfengNo";
            BindingBase binding7 = ((IMarkupExtension <BindingBase>)bindingExtension7).ProvideValue(null);

            qrcodeCell.SetBinding(QRCodeCell.TextProperty, binding7);
            translateExtension7.Text = "qianfengno";
            IMarkupExtension    markupExtension7     = translateExtension7;
            XamlServiceProvider xamlServiceProvider9 = new XamlServiceProvider();
            Type typeFromHandle17 = typeof(IProvideValueTarget);

            object[] array9 = new object[0 + 7];
            array9[0] = qrcodeCell;
            array9[1] = tableSection;
            array9[2] = tableRoot;
            array9[3] = tableView;
            array9[4] = grid2;
            array9[5] = scrollView;
            array9[6] = this;
            xamlServiceProvider9.Add(typeFromHandle17, new SimpleValueTargetProvider(array9, QRCodeCell.TitleProperty));
            xamlServiceProvider9.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle18 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver9 = new XmlNamespaceResolver();

            xmlNamespaceResolver9.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver9.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver9.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver9.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver9.Add("local", "clr-namespace:RFID");
            xamlServiceProvider9.Add(typeFromHandle18, new XamlTypeResolver(xmlNamespaceResolver9, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider9.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(33, 80)));
            object title5 = markupExtension7.ProvideValue(xamlServiceProvider9);

            qrcodeCell.Title         = title5;
            translateExtension8.Text = "qrcodehint";
            IMarkupExtension    markupExtension8      = translateExtension8;
            XamlServiceProvider xamlServiceProvider10 = new XamlServiceProvider();
            Type typeFromHandle19 = typeof(IProvideValueTarget);

            object[] array10 = new object[0 + 7];
            array10[0] = qrcodeCell;
            array10[1] = tableSection;
            array10[2] = tableRoot;
            array10[3] = tableView;
            array10[4] = grid2;
            array10[5] = scrollView;
            array10[6] = this;
            xamlServiceProvider10.Add(typeFromHandle19, new SimpleValueTargetProvider(array10, QRCodeCell.HintProperty));
            xamlServiceProvider10.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle20 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver10 = new XmlNamespaceResolver();

            xmlNamespaceResolver10.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver10.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver10.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver10.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver10.Add("local", "clr-namespace:RFID");
            xamlServiceProvider10.Add(typeFromHandle20, new XamlTypeResolver(xmlNamespaceResolver10, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider10.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(33, 117)));
            object hint2 = markupExtension8.ProvideValue(xamlServiceProvider10);

            qrcodeCell.Hint = hint2;
            qrcodeCell.SetValue(Cell.IsEnabledProperty, true);
            tableSection.Add(qrcodeCell);
            translateExtension9.Text = "qianfengphoto";
            IMarkupExtension    markupExtension9      = translateExtension9;
            XamlServiceProvider xamlServiceProvider11 = new XamlServiceProvider();
            Type typeFromHandle21 = typeof(IProvideValueTarget);

            object[] array11 = new object[0 + 7];
            array11[0] = photoCell;
            array11[1] = tableSection;
            array11[2] = tableRoot;
            array11[3] = tableView;
            array11[4] = grid2;
            array11[5] = scrollView;
            array11[6] = this;
            xamlServiceProvider11.Add(typeFromHandle21, new SimpleValueTargetProvider(array11, PhotoCell.TitleProperty));
            xamlServiceProvider11.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle22 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver11 = new XmlNamespaceResolver();

            xmlNamespaceResolver11.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver11.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver11.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver11.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver11.Add("local", "clr-namespace:RFID");
            xamlServiceProvider11.Add(typeFromHandle22, new XamlTypeResolver(xmlNamespaceResolver11, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider11.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(34, 70)));
            object title6 = markupExtension9.ProvideValue(xamlServiceProvider11);

            photoCell.Title        = title6;
            bindingExtension8.Path = "ImageFiles";
            BindingBase binding8 = ((IMarkupExtension <BindingBase>)bindingExtension8).ProvideValue(null);

            photoCell.SetBinding(PhotoCell.FilesProperty, binding8);
            photoCell.SetValue(PhotoCell.CanTakeMoreProperty, false);
            tableSection.Add(photoCell);
            tableRoot.Add(tableSection);
            tableView.Root = tableRoot;
            grid2.Children.Add(tableView);
            button.SetValue(View.MarginProperty, new Thickness(20.0));
            button.SetValue(Grid.RowProperty, 2);
            translateExtension10.Text = "shifeng";
            IMarkupExtension    markupExtension10     = translateExtension10;
            XamlServiceProvider xamlServiceProvider12 = new XamlServiceProvider();
            Type typeFromHandle23 = typeof(IProvideValueTarget);

            object[] array12 = new object[0 + 4];
            array12[0] = button;
            array12[1] = grid2;
            array12[2] = scrollView;
            array12[3] = this;
            xamlServiceProvider12.Add(typeFromHandle23, new SimpleValueTargetProvider(array12, Button.TextProperty));
            xamlServiceProvider12.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle24 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver12 = new XmlNamespaceResolver();

            xmlNamespaceResolver12.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver12.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver12.Add("prism", "clr-namespace:Prism.Mvvm;assembly=Prism.Forms");
            xmlNamespaceResolver12.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver12.Add("local", "clr-namespace:RFID");
            xamlServiceProvider12.Add(typeFromHandle24, new XamlTypeResolver(xmlNamespaceResolver12, typeof(DataPage).GetTypeInfo().Assembly));
            xamlServiceProvider12.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(40, 51)));
            object text2 = markupExtension10.ProvideValue(xamlServiceProvider12);

            button.Text            = text2;
            bindingExtension9.Path = "CommitCommand";
            BindingBase binding9 = ((IMarkupExtension <BindingBase>)bindingExtension9).ProvideValue(null);

            button.SetBinding(Button.CommandProperty, binding9);
            button.SetValue(Button.TextColorProperty, Color.White);
            button.SetValue(VisualElement.BackgroundColorProperty, new Color(0.050980392843484879, 0.27843138575553894, 0.63137257099151611, 1.0));
            button.SetValue(Button.BorderRadiusProperty, 10);
            button.SetValue(Button.BorderColorProperty, new Color(0.050980392843484879, 0.27843138575553894, 0.63137257099151611, 1.0));
            button.SetValue(Button.BorderWidthProperty, 1.0);
            grid2.Children.Add(button);
            scrollView.Content = grid2;
            this.SetValue(ContentPage.ContentProperty, scrollView);
        }
Ejemplo n.º 26
0
 private void InitializeComponent()
 {
     ResourceLoader.ResourceLoadingQuery resourceLoadingQuery = new ResourceLoader.ResourceLoadingQuery();
     resourceLoadingQuery.set_AssemblyName(typeof(NotesPage).GetTypeInfo().Assembly.GetName());
     resourceLoadingQuery.set_ResourcePath("Views/NotesPage.xaml");
     resourceLoadingQuery.set_Instance((object)this);
     if (ResourceLoader.CanProvideContentFor(resourceLoadingQuery))
     {
         this.__InitComponentRuntime();
     }
     else if (XamlLoader.get_XamlFileProvider() != null && XamlLoader.get_XamlFileProvider()(((object)this).GetType()) != null)
     {
         this.__InitComponentRuntime();
     }
     else
     {
         TranslateExtension      translateExtension1 = new TranslateExtension();
         StaticResourceExtension resourceExtension1  = new StaticResourceExtension();
         BindingExtension        bindingExtension1   = new BindingExtension();
         EmptyView emptyView = new EmptyView();
         StaticResourceExtension resourceExtension2 = new StaticResourceExtension();
         BindingExtension        bindingExtension2  = new BindingExtension();
         BindingExtension        bindingExtension3  = new BindingExtension();
         DataTemplate            dataTemplate1      = new DataTemplate();
         ListView  listView = new ListView((ListViewCachingStrategy)1);
         Grid      grid     = new Grid();
         NotesPage notesPage;
         NameScope nameScope = (NameScope)(NameScope.GetNameScope((BindableObject)(notesPage = this)) ?? (INameScope) new NameScope());
         NameScope.SetNameScope((BindableObject)notesPage, (INameScope)nameScope);
         ((INameScope)nameScope).RegisterName("Page", (object)notesPage);
         if (((Element)notesPage).get_StyleId() == null)
         {
             ((Element)notesPage).set_StyleId("Page");
         }
         this.Page = (MvxContentPage <NotesViewModel>)notesPage;
         translateExtension1.Text = "Notes_Page_Title";
         TranslateExtension  translateExtension2  = translateExtension1;
         XamlServiceProvider xamlServiceProvider1 = new XamlServiceProvider();
         Type     type1     = typeof(IProvideValueTarget);
         object[] objArray1 = new object[0 + 1];
         objArray1[0] = (object)notesPage;
         SimpleValueTargetProvider valueTargetProvider1;
         object obj1 = (object)(valueTargetProvider1 = new SimpleValueTargetProvider(objArray1, (object)Xamarin.Forms.Page.TitleProperty, (INameScope)nameScope));
         xamlServiceProvider1.Add(type1, (object)valueTargetProvider1);
         xamlServiceProvider1.Add(typeof(IReferenceProvider), obj1);
         Type type2 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver1 = new XmlNamespaceResolver();
         namespaceResolver1.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver1.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver1.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver1.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver1.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver1.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver1.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver1.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver1 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver1, typeof(NotesPage).GetTypeInfo().Assembly);
         xamlServiceProvider1.Add(type2, (object)xamlTypeResolver1);
         xamlServiceProvider1.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(15, 5)));
         object obj2 = ((IMarkupExtension)translateExtension2).ProvideValue((IServiceProvider)xamlServiceProvider1);
         ((Xamarin.Forms.Page)notesPage).set_Title((string)obj2);
         ((BindableObject)notesPage).SetValue((BindableProperty)Xamarin.Forms.PlatformConfiguration.iOSSpecific.Page.UseSafeAreaProperty, (object)true);
         resourceExtension1.set_Key("PageBackgroundColor");
         StaticResourceExtension resourceExtension3   = resourceExtension1;
         XamlServiceProvider     xamlServiceProvider2 = new XamlServiceProvider();
         Type     type3     = typeof(IProvideValueTarget);
         object[] objArray2 = new object[0 + 1];
         objArray2[0] = (object)notesPage;
         SimpleValueTargetProvider valueTargetProvider2;
         object obj3 = (object)(valueTargetProvider2 = new SimpleValueTargetProvider(objArray2, (object)VisualElement.BackgroundColorProperty, (INameScope)nameScope));
         xamlServiceProvider2.Add(type3, (object)valueTargetProvider2);
         xamlServiceProvider2.Add(typeof(IReferenceProvider), obj3);
         Type type4 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver2 = new XmlNamespaceResolver();
         namespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver2.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver2.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver2.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver2.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver2.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver2.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver2 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver2, typeof(NotesPage).GetTypeInfo().Assembly);
         xamlServiceProvider2.Add(type4, (object)xamlTypeResolver2);
         xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(18, 5)));
         object obj4 = ((IMarkupExtension)resourceExtension3).ProvideValue((IServiceProvider)xamlServiceProvider2);
         ((VisualElement)notesPage).set_BackgroundColor((Color)obj4);
         bindingExtension1.set_Path("Items.Count");
         BindingBase bindingBase1 = ((IMarkupExtension <BindingBase>)bindingExtension1).ProvideValue((IServiceProvider)null);
         ((BindableObject)emptyView).SetBinding((BindableProperty)BindableObject.BindingContextProperty, bindingBase1);
         ((ICollection <View>)grid.get_Children()).Add((View)emptyView);
         resourceExtension2.set_Key("ListViewMonthGroupHeaderTemplate");
         StaticResourceExtension resourceExtension4   = resourceExtension2;
         XamlServiceProvider     xamlServiceProvider3 = new XamlServiceProvider();
         Type     type5     = typeof(IProvideValueTarget);
         object[] objArray3 = new object[0 + 3];
         objArray3[0] = (object)listView;
         objArray3[1] = (object)grid;
         objArray3[2] = (object)notesPage;
         SimpleValueTargetProvider valueTargetProvider3;
         object obj5 = (object)(valueTargetProvider3 = new SimpleValueTargetProvider(objArray3, (object)ListView.GroupHeaderTemplateProperty, (INameScope)nameScope));
         xamlServiceProvider3.Add(type5, (object)valueTargetProvider3);
         xamlServiceProvider3.Add(typeof(IReferenceProvider), obj5);
         Type type6 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver3 = new XmlNamespaceResolver();
         namespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver3.Add("controls", "clr-namespace:Ekreta.Mobile.Core.Controls;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver3.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver3.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver3.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver3.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver3.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver3 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver3, typeof(NotesPage).GetTypeInfo().Assembly);
         xamlServiceProvider3.Add(type6, (object)xamlTypeResolver3);
         xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(27, 13)));
         object obj6 = ((IMarkupExtension)resourceExtension4).ProvideValue((IServiceProvider)xamlServiceProvider3);
         listView.set_GroupHeaderTemplate((DataTemplate)obj6);
         ((BindableObject)listView).SetValue((BindableProperty)ListView.HasUnevenRowsProperty, (object)true);
         ((BindableObject)listView).SetValue((BindableProperty)ListView.IsGroupingEnabledProperty, (object)true);
         bindingExtension2.set_Path("Items");
         BindingBase bindingBase2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue((IServiceProvider)null);
         ((BindableObject)listView).SetBinding((BindableProperty)ItemsView <Cell> .ItemsSourceProperty, bindingBase2);
         bindingExtension3.set_Mode((BindingMode)1);
         bindingExtension3.set_Path("SelectedItem");
         BindingBase bindingBase3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue((IServiceProvider)null);
         ((BindableObject)listView).SetBinding((BindableProperty)ListView.SelectedItemProperty, bindingBase3);
         DataTemplate dataTemplate2 = dataTemplate1;
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: variable of a compiler-generated type
         NotesPage.\u003CInitializeComponent\u003E_anonXamlCDataTemplate_29 xamlCdataTemplate29 = new NotesPage.\u003CInitializeComponent\u003E_anonXamlCDataTemplate_29();
         object[] objArray4 = new object[0 + 4];
         objArray4[0] = (object)dataTemplate1;
         objArray4[1] = (object)listView;
         objArray4[2] = (object)grid;
         objArray4[3] = (object)notesPage;
         // ISSUE: reference to a compiler-generated field
         xamlCdataTemplate29.parentValues = objArray4;
         // ISSUE: reference to a compiler-generated field
         xamlCdataTemplate29.root = notesPage;
         // ISSUE: reference to a compiler-generated method
         Func <object> func = new Func <object>(xamlCdataTemplate29.LoadDataTemplate);
         ((IDataTemplate)dataTemplate2).set_LoadTemplate(func);
         ((BindableObject)listView).SetValue((BindableProperty)ItemsView <Cell> .ItemTemplateProperty, (object)dataTemplate1);
         ((ICollection <View>)grid.get_Children()).Add((View)listView);
         ((BindableObject)notesPage).SetValue((BindableProperty)ContentPage.ContentProperty, (object)grid);
     }
 }
Ejemplo n.º 27
0
 private void InitializeComponent()
 {
     ResourceLoader.ResourceLoadingQuery resourceLoadingQuery = new ResourceLoader.ResourceLoadingQuery();
     resourceLoadingQuery.set_AssemblyName(typeof(EventDetailPage).GetTypeInfo().Assembly.GetName());
     resourceLoadingQuery.set_ResourcePath("Views/EventDetailPage.xaml");
     resourceLoadingQuery.set_Instance((object)this);
     if (ResourceLoader.CanProvideContentFor(resourceLoadingQuery))
     {
         this.__InitComponentRuntime();
     }
     else if (XamlLoader.get_XamlFileProvider() != null && XamlLoader.get_XamlFileProvider()(((object)this).GetType()) != null)
     {
         this.__InitComponentRuntime();
     }
     else
     {
         TranslateExtension      translateExtension1 = new TranslateExtension();
         StaticResourceExtension resourceExtension1  = new StaticResourceExtension();
         RowDefinition           rowDefinition1      = new RowDefinition();
         RowDefinition           rowDefinition2      = new RowDefinition();
         StaticResourceExtension resourceExtension2  = new StaticResourceExtension();
         RowDefinition           rowDefinition3      = new RowDefinition();
         RowDefinition           rowDefinition4      = new RowDefinition();
         StaticResourceExtension resourceExtension3  = new StaticResourceExtension();
         BindingExtension        bindingExtension1   = new BindingExtension();
         Label label1 = new Label();
         StaticResourceExtension resourceExtension4 = new StaticResourceExtension();
         BindingExtension        bindingExtension2  = new BindingExtension();
         Label                   label2             = new Label();
         StackLayout             stackLayout        = new StackLayout();
         StaticResourceExtension resourceExtension5 = new StaticResourceExtension();
         CachedImage             cachedImage        = new CachedImage();
         Grid             grid1             = new Grid();
         BindingExtension bindingExtension3 = new BindingExtension();
         WebView          webView           = new WebView();
         Grid             grid2             = new Grid();
         EventDetailPage  eventDetailPage;
         NameScope        nameScope = (NameScope)(NameScope.GetNameScope((BindableObject)(eventDetailPage = this)) ?? (INameScope) new NameScope());
         NameScope.SetNameScope((BindableObject)eventDetailPage, (INameScope)nameScope);
         translateExtension1.Text = "EventDetail_Page_Title";
         TranslateExtension  translateExtension2  = translateExtension1;
         XamlServiceProvider xamlServiceProvider1 = new XamlServiceProvider();
         Type     type1     = typeof(IProvideValueTarget);
         object[] objArray1 = new object[0 + 1];
         objArray1[0] = (object)eventDetailPage;
         SimpleValueTargetProvider valueTargetProvider1;
         object obj1 = (object)(valueTargetProvider1 = new SimpleValueTargetProvider(objArray1, (object)Page.TitleProperty, (INameScope)nameScope));
         xamlServiceProvider1.Add(type1, (object)valueTargetProvider1);
         xamlServiceProvider1.Add(typeof(IReferenceProvider), obj1);
         Type type2 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver1 = new XmlNamespaceResolver();
         namespaceResolver1.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver1.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver1.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver1.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver1.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver1.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver1.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver1.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver1.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver1 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver1, typeof(EventDetailPage).GetTypeInfo().Assembly);
         xamlServiceProvider1.Add(type2, (object)xamlTypeResolver1);
         xamlServiceProvider1.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(13, 5)));
         object obj2 = ((IMarkupExtension)translateExtension2).ProvideValue((IServiceProvider)xamlServiceProvider1);
         ((Page)eventDetailPage).set_Title((string)obj2);
         ((BindableObject)eventDetailPage).SetValue((BindableProperty)Page.UseSafeAreaProperty, (object)true);
         resourceExtension1.set_Key("PageBackgroundColor");
         StaticResourceExtension resourceExtension6   = resourceExtension1;
         XamlServiceProvider     xamlServiceProvider2 = new XamlServiceProvider();
         Type     type3     = typeof(IProvideValueTarget);
         object[] objArray2 = new object[0 + 1];
         objArray2[0] = (object)eventDetailPage;
         SimpleValueTargetProvider valueTargetProvider2;
         object obj3 = (object)(valueTargetProvider2 = new SimpleValueTargetProvider(objArray2, (object)VisualElement.BackgroundColorProperty, (INameScope)nameScope));
         xamlServiceProvider2.Add(type3, (object)valueTargetProvider2);
         xamlServiceProvider2.Add(typeof(IReferenceProvider), obj3);
         Type type4 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver2 = new XmlNamespaceResolver();
         namespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver2.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver2.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver2.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver2.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver2.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver2.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver2.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver2 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver2, typeof(EventDetailPage).GetTypeInfo().Assembly);
         xamlServiceProvider2.Add(type4, (object)xamlTypeResolver2);
         xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(16, 5)));
         object obj4 = ((IMarkupExtension)resourceExtension6).ProvideValue((IServiceProvider)xamlServiceProvider2);
         ((VisualElement)eventDetailPage).set_BackgroundColor((Color)obj4);
         ((BindableObject)rowDefinition1).SetValue((BindableProperty)RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
         ((DefinitionCollection <RowDefinition>)((BindableObject)grid2).GetValue((BindableProperty)Grid.RowDefinitionsProperty)).Add(rowDefinition1);
         ((BindableObject)rowDefinition2).SetValue((BindableProperty)RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
         ((DefinitionCollection <RowDefinition>)((BindableObject)grid2).GetValue((BindableProperty)Grid.RowDefinitionsProperty)).Add(rowDefinition2);
         resourceExtension2.set_Key("DetailHeaderHolderStyle");
         StaticResourceExtension resourceExtension7   = resourceExtension2;
         XamlServiceProvider     xamlServiceProvider3 = new XamlServiceProvider();
         Type     type5     = typeof(IProvideValueTarget);
         object[] objArray3 = new object[0 + 3];
         objArray3[0] = (object)grid1;
         objArray3[1] = (object)grid2;
         objArray3[2] = (object)eventDetailPage;
         SimpleValueTargetProvider valueTargetProvider3;
         object obj5 = (object)(valueTargetProvider3 = new SimpleValueTargetProvider(objArray3, (object)VisualElement.StyleProperty, (INameScope)nameScope));
         xamlServiceProvider3.Add(type5, (object)valueTargetProvider3);
         xamlServiceProvider3.Add(typeof(IReferenceProvider), obj5);
         Type type6 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver3 = new XmlNamespaceResolver();
         namespaceResolver3.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver3.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver3.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver3.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver3.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver3.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver3.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver3.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver3.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver3 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver3, typeof(EventDetailPage).GetTypeInfo().Assembly);
         xamlServiceProvider3.Add(type6, (object)xamlTypeResolver3);
         xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(27, 15)));
         object obj6 = ((IMarkupExtension)resourceExtension7).ProvideValue((IServiceProvider)xamlServiceProvider3);
         ((NavigableElement)grid1).set_Style((Style)obj6);
         ((BindableObject)rowDefinition3).SetValue((BindableProperty)RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
         ((DefinitionCollection <RowDefinition>)((BindableObject)grid1).GetValue((BindableProperty)Grid.RowDefinitionsProperty)).Add(rowDefinition3);
         ((BindableObject)rowDefinition4).SetValue((BindableProperty)RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("50"));
         ((DefinitionCollection <RowDefinition>)((BindableObject)grid1).GetValue((BindableProperty)Grid.RowDefinitionsProperty)).Add(rowDefinition4);
         ((BindableObject)stackLayout).SetValue((BindableProperty)Layout.PaddingProperty, (object)new Thickness(0.0, 10.0, 0.0, 0.0));
         ((BindableObject)stackLayout).SetValue((BindableProperty)View.VerticalOptionsProperty, (object)(LayoutOptions)LayoutOptions.Center);
         resourceExtension3.set_Key("DetailDataTitleStyle");
         StaticResourceExtension resourceExtension8   = resourceExtension3;
         XamlServiceProvider     xamlServiceProvider4 = new XamlServiceProvider();
         Type     type7     = typeof(IProvideValueTarget);
         object[] objArray4 = new object[0 + 5];
         objArray4[0] = (object)label1;
         objArray4[1] = (object)stackLayout;
         objArray4[2] = (object)grid1;
         objArray4[3] = (object)grid2;
         objArray4[4] = (object)eventDetailPage;
         SimpleValueTargetProvider valueTargetProvider4;
         object obj7 = (object)(valueTargetProvider4 = new SimpleValueTargetProvider(objArray4, (object)VisualElement.StyleProperty, (INameScope)nameScope));
         xamlServiceProvider4.Add(type7, (object)valueTargetProvider4);
         xamlServiceProvider4.Add(typeof(IReferenceProvider), obj7);
         Type type8 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver4 = new XmlNamespaceResolver();
         namespaceResolver4.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver4.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver4.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver4.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver4.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver4.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver4.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver4.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver4.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver4 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver4, typeof(EventDetailPage).GetTypeInfo().Assembly);
         xamlServiceProvider4.Add(type8, (object)xamlTypeResolver4);
         xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(33, 24)));
         object obj8 = ((IMarkupExtension)resourceExtension8).ProvideValue((IServiceProvider)xamlServiceProvider4);
         ((NavigableElement)label1).set_Style((Style)obj8);
         bindingExtension1.set_Path("Event.Title");
         BindingBase bindingBase1 = ((IMarkupExtension <BindingBase>)bindingExtension1).ProvideValue((IServiceProvider)null);
         ((BindableObject)label1).SetBinding((BindableProperty)Label.TextProperty, bindingBase1);
         ((ICollection <View>)((Layout <View>)stackLayout).get_Children()).Add((View)label1);
         ((BindableObject)label2).SetValue((BindableProperty)View.MarginProperty, (object)new Thickness(6.0));
         resourceExtension4.set_Key("DetailDataDescriptionStyle");
         StaticResourceExtension resourceExtension9   = resourceExtension4;
         XamlServiceProvider     xamlServiceProvider5 = new XamlServiceProvider();
         Type     type9     = typeof(IProvideValueTarget);
         object[] objArray5 = new object[0 + 5];
         objArray5[0] = (object)label2;
         objArray5[1] = (object)stackLayout;
         objArray5[2] = (object)grid1;
         objArray5[3] = (object)grid2;
         objArray5[4] = (object)eventDetailPage;
         SimpleValueTargetProvider valueTargetProvider5;
         object obj9 = (object)(valueTargetProvider5 = new SimpleValueTargetProvider(objArray5, (object)VisualElement.StyleProperty, (INameScope)nameScope));
         xamlServiceProvider5.Add(type9, (object)valueTargetProvider5);
         xamlServiceProvider5.Add(typeof(IReferenceProvider), obj9);
         Type type10 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver5 = new XmlNamespaceResolver();
         namespaceResolver5.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver5.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver5.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver5.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver5.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver5.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver5.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver5.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver5.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver5 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver5, typeof(EventDetailPage).GetTypeInfo().Assembly);
         xamlServiceProvider5.Add(type10, (object)xamlTypeResolver5);
         xamlServiceProvider5.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(36, 21)));
         object obj10 = ((IMarkupExtension)resourceExtension9).ProvideValue((IServiceProvider)xamlServiceProvider5);
         ((NavigableElement)label2).set_Style((Style)obj10);
         bindingExtension2.set_StringFormat("{0:D}");
         bindingExtension2.set_Path("Event.Date");
         BindingBase bindingBase2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue((IServiceProvider)null);
         ((BindableObject)label2).SetBinding((BindableProperty)Label.TextProperty, bindingBase2);
         ((ICollection <View>)((Layout <View>)stackLayout).get_Children()).Add((View)label2);
         ((ICollection <View>)grid1.get_Children()).Add((View)stackLayout);
         ((BindableObject)cachedImage).SetValue((BindableProperty)Grid.RowProperty, (object)1);
         resourceExtension5.set_Key("DetailHeaderBottomCachedImageStyle");
         StaticResourceExtension resourceExtension10  = resourceExtension5;
         XamlServiceProvider     xamlServiceProvider6 = new XamlServiceProvider();
         Type     type11    = typeof(IProvideValueTarget);
         object[] objArray6 = new object[0 + 4];
         objArray6[0] = (object)cachedImage;
         objArray6[1] = (object)grid1;
         objArray6[2] = (object)grid2;
         objArray6[3] = (object)eventDetailPage;
         SimpleValueTargetProvider valueTargetProvider6;
         object obj11 = (object)(valueTargetProvider6 = new SimpleValueTargetProvider(objArray6, (object)VisualElement.StyleProperty, (INameScope)nameScope));
         xamlServiceProvider6.Add(type11, (object)valueTargetProvider6);
         xamlServiceProvider6.Add(typeof(IReferenceProvider), obj11);
         Type type12 = typeof(IXamlTypeResolver);
         XmlNamespaceResolver namespaceResolver6 = new XmlNamespaceResolver();
         namespaceResolver6.Add("", "http://xamarin.com/schemas/2014/forms");
         namespaceResolver6.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
         namespaceResolver6.Add("d", "http://xamarin.com/schemas/2014/forms/design");
         namespaceResolver6.Add("extensions", "clr-namespace:Ekreta.Mobile.Core.Extensions;assembly=Ekreta.Mobile.Core");
         namespaceResolver6.Add("ffimageloading", "clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms");
         namespaceResolver6.Add("ios", "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core");
         namespaceResolver6.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
         namespaceResolver6.Add("mvvmcross", "clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms");
         namespaceResolver6.Add("viewModels", "clr-namespace:Ekreta.Mobile.Core.ViewModels;assembly=Ekreta.Mobile.Core");
         XamlTypeResolver xamlTypeResolver6 = new XamlTypeResolver((IXmlNamespaceResolver)namespaceResolver6, typeof(EventDetailPage).GetTypeInfo().Assembly);
         xamlServiceProvider6.Add(type12, (object)xamlTypeResolver6);
         xamlServiceProvider6.Add(typeof(IXmlLineInfoProvider), (object)new XmlLineInfoProvider((IXmlLineInfo) new XmlLineInfo(40, 54)));
         object obj12 = ((IMarkupExtension)resourceExtension10).ProvideValue((IServiceProvider)xamlServiceProvider6);
         ((NavigableElement)cachedImage).set_Style((Style)obj12);
         ((ICollection <View>)grid1.get_Children()).Add((View)cachedImage);
         ((ICollection <View>)grid2.get_Children()).Add((View)grid1);
         ((BindableObject)webView).SetValue((BindableProperty)Grid.RowProperty, (object)1);
         ((BindableObject)webView).SetValue((BindableProperty)View.HorizontalOptionsProperty, (object)(LayoutOptions)LayoutOptions.FillAndExpand);
         webView.add_Navigating(new EventHandler <WebNavigatingEventArgs>(eventDetailPage.WebView_OnNavigating));
         bindingExtension3.set_Path("Event.WebViewSource");
         BindingBase bindingBase3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue((IServiceProvider)null);
         ((BindableObject)webView).SetBinding((BindableProperty)WebView.SourceProperty, bindingBase3);
         ((BindableObject)webView).SetValue((BindableProperty)View.VerticalOptionsProperty, (object)(LayoutOptions)LayoutOptions.FillAndExpand);
         ((ICollection <View>)grid2.get_Children()).Add((View)webView);
         ((BindableObject)eventDetailPage).SetValue((BindableProperty)ContentPage.ContentProperty, (object)grid2);
     }
 }
Ejemplo n.º 28
0
        private void InitializeComponent()
        {
            if (ResourceLoader.CanProvideContentFor(new ResourceLoader.ResourceLoadingQuery
            {
                AssemblyName = typeof(BusyPage).GetTypeInfo().Assembly.GetName(),
                ResourcePath = "Busy/BusyPage.xaml",
                Instance = this
            }))
            {
                __InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(GetType()) != null)
            {
                __InitComponentRuntime();
                return;
            }
            ReferenceExtension referenceExtension = new ReferenceExtension();
            BindingExtension   bindingExtension   = new BindingExtension();
            Label            label            = new Label();
            RadBusyIndicator radBusyIndicator = new RadBusyIndicator();
            StackLayout      stackLayout      = new StackLayout();
            BusyPage         busyPage;
            NameScope        nameScope = (NameScope)(NameScope.GetNameScope(busyPage = this) ?? new NameScope());

            NameScope.SetNameScope(busyPage, nameScope);
            ((INameScope)nameScope).RegisterName("This", (object)busyPage);
            if (busyPage.StyleId == null)
            {
                busyPage.StyleId = "This";
            }
            This = busyPage;
            busyPage.SetValue(VisualElement.BackgroundColorProperty, new Color(0.0, 0.0, 0.0, 0.501960813999176));
            busyPage.SetValue(PopupPage.CloseWhenBackgroundIsClickedProperty, false);
            stackLayout.SetValue(View.VerticalOptionsProperty, LayoutOptions.CenterAndExpand);
            stackLayout.SetValue(View.HorizontalOptionsProperty, LayoutOptions.CenterAndExpand);
            radBusyIndicator.SetValue(View.MarginProperty, new Thickness(10.0));
            radBusyIndicator.SetValue(RadBusyIndicator.AnimationContentHeightRequestProperty, 100.0);
            radBusyIndicator.SetValue(RadBusyIndicator.AnimationContentWidthRequestProperty, 100.0);
            radBusyIndicator.SetValue(RadBusyIndicator.AnimationTypeProperty, AnimationType.Animation8);
            radBusyIndicator.SetValue(RadBusyIndicator.AnimationContentColorProperty, Color.White);
            radBusyIndicator.SetValue(RadBusyIndicator.IsBusyProperty, true);
            referenceExtension.Name = "This";
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 5];
            array[0] = bindingExtension;
            array[1] = label;
            array[2] = radBusyIndicator;
            array[3] = stackLayout;
            array[4] = busyPage;
            object service;

            xamlServiceProvider.Add(typeFromHandle, service = new SimpleValueTargetProvider(array, typeof(BindingExtension).GetRuntimeProperty("Source"), nameScope));
            xamlServiceProvider.Add(typeof(IReferenceProvider), service);
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("pages", "clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup");
            xmlNamespaceResolver.Add("telerikPrimitives", "clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(BusyPage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(24, 21)));
            object target = bindingExtension.Source = ((IMarkupExtension)referenceExtension).ProvideValue((IServiceProvider)xamlServiceProvider);

            VisualDiagnostics.RegisterSourceInfo(target, new Uri("Busy\\BusyPage.xaml", UriKind.RelativeOrAbsolute), 24, 21);
            bindingExtension.Path = "Message";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue((IServiceProvider)null);

            label.SetBinding(Label.TextProperty, binding);
            label.SetValue(Label.TextColorProperty, Color.White);
            label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            BindableProperty    fontSizeProperty     = Label.FontSizeProperty;
            FontSizeConverter   fontSizeConverter    = new FontSizeConverter();
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 4];
            array2[0] = label;
            array2[1] = radBusyIndicator;
            array2[2] = stackLayout;
            array2[3] = busyPage;
            object service2;

            xamlServiceProvider2.Add(typeFromHandle3, service2 = new SimpleValueTargetProvider(array2, Label.FontSizeProperty, nameScope));
            xamlServiceProvider2.Add(typeof(IReferenceProvider), service2);
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver2.Add("pages", "clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup");
            xmlNamespaceResolver2.Add("telerikPrimitives", "clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(BusyPage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(27, 21)));
            label.SetValue(fontSizeProperty, ((IExtendedTypeConverter)fontSizeConverter).ConvertFromInvariantString("Medium", (IServiceProvider)xamlServiceProvider2));
            radBusyIndicator.SetValue(RadBusyIndicator.BusyContentProperty, label);
            VisualDiagnostics.RegisterSourceInfo(label, new Uri("Busy\\BusyPage.xaml", UriKind.RelativeOrAbsolute), 23, 18);
            stackLayout.Children.Add(radBusyIndicator);
            VisualDiagnostics.RegisterSourceInfo(radBusyIndicator, new Uri("Busy\\BusyPage.xaml", UriKind.RelativeOrAbsolute), 14, 10);
            busyPage.SetValue(ContentPage.ContentProperty, stackLayout);
            VisualDiagnostics.RegisterSourceInfo(stackLayout, new Uri("Busy\\BusyPage.xaml", UriKind.RelativeOrAbsolute), 11, 6);
            VisualDiagnostics.RegisterSourceInfo(busyPage, new Uri("Busy\\BusyPage.xaml", UriKind.RelativeOrAbsolute), 2, 2);
        }
Ejemplo n.º 29
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(MinePage).GetTypeInfo().Assembly.GetName(), "Views/MinePage.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            RowDefinition      rowDefinition      = new RowDefinition();
            RowDefinition      rowDefinition2     = new RowDefinition();
            RowDefinition      rowDefinition3     = new RowDefinition();
            BindingExtension   bindingExtension   = new BindingExtension();
            Image              image              = new Image();
            BindingExtension   bindingExtension2  = new BindingExtension();
            CircleImage        circleImage        = new CircleImage();
            BindingExtension   bindingExtension3  = new BindingExtension();
            Label              label              = new Label();
            BindingExtension   bindingExtension4  = new BindingExtension();
            Label              label2             = new Label();
            StackLayout        stackLayout        = new StackLayout();
            AbsoluteLayout     absoluteLayout     = new AbsoluteLayout();
            Frame              frame              = new Frame();
            BindingExtension   bindingExtension5  = new BindingExtension();
            DataTemplate       dataTemplate       = new DataTemplate();
            ListView           listView           = new ListView();
            Frame              frame2             = new Frame();
            TranslateExtension translateExtension = new TranslateExtension();
            BindingExtension   bindingExtension6  = new BindingExtension();
            Button             button             = new Button();
            Grid              grid              = new Grid();
            ScrollView        scrollView        = new ScrollView();
            BindingExtension  bindingExtension7 = new BindingExtension();
            BindingExtension  bindingExtension8 = new BindingExtension();
            ActivityIndicator activityIndicator = new ActivityIndicator();
            Grid              grid2             = new Grid();
            NameScope         nameScope         = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(grid2, nameScope);
            NameScope.SetNameScope(scrollView, nameScope);
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(rowDefinition, nameScope);
            NameScope.SetNameScope(rowDefinition2, nameScope);
            NameScope.SetNameScope(rowDefinition3, nameScope);
            NameScope.SetNameScope(frame, nameScope);
            NameScope.SetNameScope(absoluteLayout, nameScope);
            NameScope.SetNameScope(image, nameScope);
            NameScope.SetNameScope(stackLayout, nameScope);
            NameScope.SetNameScope(circleImage, nameScope);
            NameScope.SetNameScope(label, nameScope);
            NameScope.SetNameScope(label2, nameScope);
            NameScope.SetNameScope(frame2, nameScope);
            NameScope.SetNameScope(listView, nameScope);
            ((INameScope)nameScope).RegisterName("listview", listView);
            if (listView.StyleId == null)
            {
                listView.StyleId = "listview";
            }
            NameScope.SetNameScope(button, nameScope);
            NameScope.SetNameScope(activityIndicator, nameScope);
            this.listview = listView;
            this.SetValue(NavigationPage.HasNavigationBarProperty, false);
            grid.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(10.0));
            grid.SetValue(Grid.RowSpacingProperty, 10.0);
            rowDefinition.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition);
            rowDefinition2.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition2);
            rowDefinition3.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto"));
            grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition3);
            frame.SetValue(Grid.RowProperty, 0);
            frame.SetValue(Frame.HasShadowProperty, false);
            frame.SetValue(Frame.CornerRadiusProperty, 10f);
            frame.SetValue(VisualElement.BackgroundColorProperty, Color.Black);
            frame.SetValue(Frame.BorderColorProperty, Color.Black);
            frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(0.0));
            absoluteLayout.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(0.0));
            absoluteLayout.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            absoluteLayout.SetValue(View.VerticalOptionsProperty, LayoutOptions.FillAndExpand);
            image.SetValue(Image.AspectProperty, Aspect.AspectFill);
            bindingExtension.Path = "Background";
            BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null);

            image.SetBinding(Image.SourceProperty, binding);
            image.SetValue(AbsoluteLayout.LayoutBoundsProperty, new Rectangle(0.0, 0.0, 1.0, 1.0));
            image.SetValue(AbsoluteLayout.LayoutFlagsProperty, AbsoluteLayoutFlags.All);
            absoluteLayout.Children.Add(image);
            stackLayout.SetValue(VisualElement.BackgroundColorProperty, Color.Transparent);
            stackLayout.SetValue(AbsoluteLayout.LayoutBoundsProperty, new Rectangle(0.5, 0.5, -1.0, -1.0));
            stackLayout.SetValue(AbsoluteLayout.LayoutFlagsProperty, AbsoluteLayoutFlags.PositionProportional);
            bindingExtension2.Path = "UserIcon";
            BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null);

            circleImage.SetBinding(Image.SourceProperty, binding2);
            circleImage.SetValue(VisualElement.HeightRequestProperty, 80.0);
            circleImage.SetValue(VisualElement.WidthRequestProperty, 80.0);
            circleImage.SetValue(Image.AspectProperty, Aspect.AspectFit);
            stackLayout.Children.Add(circleImage);
            label.SetValue(Label.TextColorProperty, Color.White);
            BindableObject         bindableObject        = label;
            BindableProperty       fontSizeProperty      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
            string value = "Large";
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 8];
            array[0] = label;
            array[1] = stackLayout;
            array[2] = absoluteLayout;
            array[3] = frame;
            array[4] = grid;
            array[5] = scrollView;
            array[6] = grid2;
            array[7] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, Label.FontSizeProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("circle", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin");
            xmlNamespaceResolver.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver.Add("local", "clr-namespace:RFID");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(MinePage).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(25, 62)));
            bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
            bindingExtension3.Path = "Name";
            BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null);

            label.SetBinding(Label.TextProperty, binding3);
            label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            stackLayout.Children.Add(label);
            label2.SetValue(Label.TextColorProperty, Color.White);
            BindableObject         bindableObject2        = label2;
            BindableProperty       fontSizeProperty2      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter();
            string value2 = "Medium";
            XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider();
            Type typeFromHandle3 = typeof(IProvideValueTarget);

            object[] array2 = new object[0 + 8];
            array2[0] = label2;
            array2[1] = stackLayout;
            array2[2] = absoluteLayout;
            array2[3] = frame;
            array2[4] = grid;
            array2[5] = scrollView;
            array2[6] = grid2;
            array2[7] = this;
            xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, Label.FontSizeProperty));
            xamlServiceProvider2.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle4 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver2 = new XmlNamespaceResolver();

            xmlNamespaceResolver2.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver2.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver2.Add("circle", "clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin");
            xmlNamespaceResolver2.Add("layout", "clr-namespace:RFID.Layout");
            xmlNamespaceResolver2.Add("local", "clr-namespace:RFID");
            xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(MinePage).GetTypeInfo().Assembly));
            xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(26, 62)));
            bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2));
            bindingExtension4.Path = "Introduce";
            BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue(null);

            label2.SetBinding(Label.TextProperty, binding4);
            label2.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Center"));
            stackLayout.Children.Add(label2);
            absoluteLayout.Children.Add(stackLayout);
            frame.SetValue(ContentView.ContentProperty, absoluteLayout);
            grid.Children.Add(frame);
            frame2.SetValue(Frame.OutlineColorProperty, Color.White);
            frame2.SetValue(Grid.RowProperty, 1);
            frame2.SetValue(Frame.CornerRadiusProperty, 5f);
            frame2.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            frame2.SetValue(Frame.BorderColorProperty, new Color(0.87058824300765991, 0.87058824300765991, 0.87058824300765991, 1.0));
            frame2.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(0.0));
            listView.SetValue(ListView.RowHeightProperty, 50);
            listView.SetValue(VisualElement.HeightRequestProperty, 203.0);
            listView.SetValue(ListView.SeparatorColorProperty, new Color(0.87058824300765991, 0.87058824300765991, 0.87058824300765991, 1.0));
            listView.SetValue(ListView.SeparatorVisibilityProperty, SeparatorVisibility.Default);
            listView.ItemSelected += this.ListView_ItemSelected;
            bindingExtension5.Path = "MenuSource";
            BindingBase binding5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue(null);

            listView.SetBinding(ItemsView <Cell> .ItemsSourceProperty, binding5);
            IDataTemplate dataTemplate2 = dataTemplate;

            MinePage.< InitializeComponent > _anonXamlCDataTemplate_1 <InitializeComponent> _anonXamlCDataTemplate_ = new MinePage.< InitializeComponent > _anonXamlCDataTemplate_1();
            object[]   array3 = new object[0 + 7];
            array3[0] = dataTemplate;
            array3[1] = listView;
            array3[2] = frame2;
            array3[3] = grid;
            array3[4] = scrollView;
            array3[5] = grid2;
            array3[6] = this;
Ejemplo n.º 30
0
        private void InitializeComponent()
        {
            if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(EditorCell).GetTypeInfo().Assembly.GetName(), "Layout/EditorCell.xaml") != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
            {
                this.__InitComponentRuntime();
                return;
            }
            ColumnDefinition columnDefinition  = new ColumnDefinition();
            ColumnDefinition columnDefinition2 = new ColumnDefinition();
            Label            label             = new Label();
            NoBorderEntry    noBorderEntry     = new NoBorderEntry();
            Grid             grid      = new Grid();
            NameScope        nameScope = new NameScope();

            NameScope.SetNameScope(this, nameScope);
            NameScope.SetNameScope(grid, nameScope);
            NameScope.SetNameScope(columnDefinition, nameScope);
            NameScope.SetNameScope(columnDefinition2, nameScope);
            NameScope.SetNameScope(label, nameScope);
            ((INameScope)nameScope).RegisterName("label", label);
            if (label.StyleId == null)
            {
                label.StyleId = "label";
            }
            NameScope.SetNameScope(noBorderEntry, nameScope);
            ((INameScope)nameScope).RegisterName("entry", noBorderEntry);
            if (noBorderEntry.StyleId == null)
            {
                noBorderEntry.StyleId = "entry";
            }
            this.label = label;
            this.entry = noBorderEntry;
            grid.SetValue(VisualElement.BackgroundColorProperty, Color.White);
            grid.SetValue(Grid.RowSpacingProperty, 5.0);
            grid.SetValue(Layout.PaddingProperty, new Thickness(10.0, 5.0, 10.0, 5.0));
            columnDefinition.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*"));
            grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition);
            columnDefinition2.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("3*"));
            grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition2);
            BindableObject         bindableObject        = label;
            BindableProperty       fontSizeProperty      = Label.FontSizeProperty;
            IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter();
            string value = "Default";
            XamlServiceProvider xamlServiceProvider = new XamlServiceProvider();
            Type typeFromHandle = typeof(IProvideValueTarget);

            object[] array = new object[0 + 3];
            array[0] = label;
            array[1] = grid;
            array[2] = this;
            xamlServiceProvider.Add(typeFromHandle, new SimpleValueTargetProvider(array, Label.FontSizeProperty));
            xamlServiceProvider.Add(typeof(INameScopeProvider), new NameScopeProvider
            {
                NameScope = nameScope
            });
            Type typeFromHandle2 = typeof(IXamlTypeResolver);
            XmlNamespaceResolver xmlNamespaceResolver = new XmlNamespaceResolver();

            xmlNamespaceResolver.Add("", "http://xamarin.com/schemas/2014/forms");
            xmlNamespaceResolver.Add("x", "http://schemas.microsoft.com/winfx/2009/xaml");
            xmlNamespaceResolver.Add("layout", "clr-namespace:RFID.Layout");
            xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(EditorCell).GetTypeInfo().Assembly));
            xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(12, 20)));
            bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider));
            label.SetValue(Label.TextColorProperty, new Color(0.501960813999176, 0.501960813999176, 0.501960813999176, 1.0));
            label.SetValue(Grid.ColumnProperty, 0);
            grid.Children.Add(label);
            noBorderEntry.SetValue(VisualElement.BackgroundColorProperty, new Color(0.93725490570068359, 0.93725490570068359, 0.93725490570068359, 1.0));
            noBorderEntry.SetValue(Entry.PlaceholderColorProperty, new Color(0.63529413938522339, 0.63529413938522339, 0.63529413938522339, 1.0));
            noBorderEntry.SetValue(Grid.ColumnProperty, 1);
            noBorderEntry.SetValue(Entry.TextColorProperty, new Color(0.501960813999176, 0.501960813999176, 0.501960813999176, 1.0));
            noBorderEntry.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
            grid.Children.Add(noBorderEntry);
            this.View = grid;
        }