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;
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;
private void InitializeComponent() { if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(PhotoView).GetTypeInfo().Assembly.GetName(), "Layout/PhotoView.xaml") != null) { this.__InitComponentRuntime(); return; } if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null) { this.__InitComponentRuntime(); return; } TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer(); SvgCachedImage svgCachedImage = new SvgCachedImage(); TapGestureRecognizer tapGestureRecognizer2 = new TapGestureRecognizer(); Image image = new Image(); AbsoluteLayout absoluteLayout = new AbsoluteLayout(); Frame frame = new Frame(); TapGestureRecognizer tapGestureRecognizer3 = new TapGestureRecognizer(); SvgCachedImage svgCachedImage2 = new SvgCachedImage(); AbsoluteLayout absoluteLayout2 = new AbsoluteLayout(); NameScope nameScope = new NameScope(); NameScope.SetNameScope(this, nameScope); NameScope.SetNameScope(absoluteLayout2, nameScope); NameScope.SetNameScope(frame, nameScope); NameScope.SetNameScope(absoluteLayout, nameScope); NameScope.SetNameScope(svgCachedImage, nameScope); NameScope.SetNameScope(tapGestureRecognizer, nameScope); NameScope.SetNameScope(image, nameScope); ((INameScope)nameScope).RegisterName("photo", image); if (image.StyleId == null) { image.StyleId = "photo"; } NameScope.SetNameScope(tapGestureRecognizer2, nameScope); NameScope.SetNameScope(svgCachedImage2, nameScope); ((INameScope)nameScope).RegisterName("closeIcon", svgCachedImage2); if (svgCachedImage2.StyleId == null) { svgCachedImage2.StyleId = "closeIcon"; } NameScope.SetNameScope(tapGestureRecognizer3, nameScope); this.photo = image; this.closeIcon = svgCachedImage2; absoluteLayout2.SetValue(VisualElement.BackgroundColorProperty, Color.Transparent); absoluteLayout2.SetValue(VisualElement.HeightRequestProperty, 90.0); absoluteLayout2.SetValue(VisualElement.WidthRequestProperty, 90.0); frame.SetValue(Grid.RowProperty, 0); frame.SetValue(Frame.HasShadowProperty, false); frame.SetValue(Frame.CornerRadiusProperty, 10f); frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(0.0)); frame.SetValue(VisualElement.BackgroundColorProperty, Color.Silver); frame.SetValue(AbsoluteLayout.LayoutBoundsProperty, new Rectangle(0.0, 0.0, 1.0, 1.0)); frame.SetValue(AbsoluteLayout.LayoutFlagsProperty, AbsoluteLayoutFlags.All); svgCachedImage.SetValue(CachedImage.SourceProperty, new FFImageLoading.Forms.ImageSourceConverter().ConvertFromInvariantString("Camera.svg")); svgCachedImage.SetValue(VisualElement.HeightRequestProperty, 55.0); svgCachedImage.SetValue(VisualElement.WidthRequestProperty, 55.0); svgCachedImage.SetValue(AbsoluteLayout.LayoutBoundsProperty, new Rectangle(0.5, 0.5, -1.0, -1.0)); svgCachedImage.SetValue(AbsoluteLayout.LayoutFlagsProperty, AbsoluteLayoutFlags.PositionProportional); tapGestureRecognizer.Tapped += this.Handle_Tapped; svgCachedImage.GestureRecognizers.Add(tapGestureRecognizer); absoluteLayout.Children.Add(svgCachedImage); image.SetValue(Image.AspectProperty, Aspect.AspectFill); image.SetValue(AbsoluteLayout.LayoutBoundsProperty, new Rectangle(0.0, 0.0, 1.0, 1.0)); image.SetValue(AbsoluteLayout.LayoutFlagsProperty, AbsoluteLayoutFlags.All); tapGestureRecognizer2.Tapped += this.Handle_Tapped; image.GestureRecognizers.Add(tapGestureRecognizer2); absoluteLayout.Children.Add(image); frame.SetValue(ContentView.ContentProperty, absoluteLayout); absoluteLayout2.Children.Add(frame); svgCachedImage2.SetValue(VisualElement.IsVisibleProperty, new VisualElement.VisibilityConverter().ConvertFromInvariantString("false")); svgCachedImage2.SetValue(CachedImage.SourceProperty, new FFImageLoading.Forms.ImageSourceConverter().ConvertFromInvariantString("error.svg")); svgCachedImage2.SetValue(VisualElement.HeightRequestProperty, 40.0); svgCachedImage2.SetValue(VisualElement.WidthRequestProperty, 40.0); svgCachedImage2.SetValue(AbsoluteLayout.LayoutBoundsProperty, new Rectangle(53.0, -3.0, -1.0, -1.0)); svgCachedImage2.SetValue(AbsoluteLayout.LayoutFlagsProperty, AbsoluteLayoutFlags.None); tapGestureRecognizer3.Tapped += this.Handle_Tapped_1; svgCachedImage2.GestureRecognizers.Add(tapGestureRecognizer3); absoluteLayout2.Children.Add(svgCachedImage2); this.SetValue(ContentView.ContentProperty, absoluteLayout2); }
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); }
private void InitializeComponent() { if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(MineCell).GetTypeInfo().Assembly.GetName(), "Layout/MineCell.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(); ColumnDefinition columnDefinition3 = new ColumnDefinition(); BindingExtension bindingExtension = new BindingExtension(); TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer(); BindingExtension bindingExtension2 = new BindingExtension(); SvgCachedImage svgCachedImage = new SvgCachedImage(); BindingExtension bindingExtension3 = new BindingExtension(); Label label = new Label(); SvgCachedImage svgCachedImage2 = new SvgCachedImage(); 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(columnDefinition3, nameScope); NameScope.SetNameScope(tapGestureRecognizer, nameScope); NameScope.SetNameScope(svgCachedImage, nameScope); ((INameScope)nameScope).RegisterName("icon", svgCachedImage); if (svgCachedImage.StyleId == null) { svgCachedImage.StyleId = "icon"; } NameScope.SetNameScope(label, nameScope); ((INameScope)nameScope).RegisterName("label", label); if (label.StyleId == null) { label.StyleId = "label"; } NameScope.SetNameScope(svgCachedImage2, nameScope); this.icon = svgCachedImage; this.label = label; grid.SetValue(Grid.ColumnSpacingProperty, 10.0); grid.SetValue(Layout.PaddingProperty, new Thickness(20.0, 0.0, 15.0, 0.0)); columnDefinition.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("24")); grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition); columnDefinition2.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*")); grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition2); columnDefinition3.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("15")); grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition3); bindingExtension.Path = "SelectCommand"; BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null); tapGestureRecognizer.SetBinding(TapGestureRecognizer.CommandProperty, binding); grid.GestureRecognizers.Add(tapGestureRecognizer); svgCachedImage.SetValue(Grid.ColumnProperty, 0); svgCachedImage.SetValue(VisualElement.WidthRequestProperty, 24.0); svgCachedImage.SetValue(VisualElement.HeightRequestProperty, 24.0); svgCachedImage.SetValue(CachedImage.AspectProperty, Aspect.AspectFit); bindingExtension2.Path = "Icon"; BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null); svgCachedImage.SetBinding(CachedImage.SourceProperty, binding2); svgCachedImage.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center); grid.Children.Add(svgCachedImage); label.SetValue(Grid.ColumnProperty, 1); 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("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"); xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(MineCell).GetTypeInfo().Assembly)); xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(14, 36))); bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider)); label.SetValue(Label.TextColorProperty, Color.Black); bindingExtension3.Path = "Title"; BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null); label.SetBinding(Label.TextProperty, binding3); label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center); label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Start")); grid.Children.Add(label); svgCachedImage2.SetValue(Grid.ColumnProperty, 2); svgCachedImage2.SetValue(VisualElement.WidthRequestProperty, 15.0); svgCachedImage2.SetValue(VisualElement.HeightRequestProperty, 15.0); svgCachedImage2.SetValue(CachedImage.AspectProperty, Aspect.AspectFit); svgCachedImage2.SetValue(CachedImage.SourceProperty, new FFImageLoading.Forms.ImageSourceConverter().ConvertFromInvariantString("rightarrow.svg")); svgCachedImage2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center); grid.Children.Add(svgCachedImage2); this.View = grid; }
private void InitializeComponent() { if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(SelectCell).GetTypeInfo().Assembly.GetName(), "Layout/SelectCell.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(); TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer(); Label label = new Label(); NoBorderEntry noBorderEntry = new NoBorderEntry(); Label label2 = new Label(); SvgCachedImage svgCachedImage = new SvgCachedImage(); Grid grid = new Grid(); NameScope nameScope = new NameScope(); NameScope.SetNameScope(this, nameScope); NameScope.SetNameScope(grid, nameScope); ((INameScope)nameScope).RegisterName("view", grid); if (grid.StyleId == null) { grid.StyleId = "view"; } NameScope.SetNameScope(columnDefinition, nameScope); NameScope.SetNameScope(columnDefinition2, nameScope); NameScope.SetNameScope(rowDefinition, nameScope); NameScope.SetNameScope(tapGestureRecognizer, 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"; } NameScope.SetNameScope(label2, nameScope); ((INameScope)nameScope).RegisterName("placeLabel", label2); if (label2.StyleId == null) { label2.StyleId = "placeLabel"; } NameScope.SetNameScope(svgCachedImage, nameScope); ((INameScope)nameScope).RegisterName("arrow", svgCachedImage); if (svgCachedImage.StyleId == null) { svgCachedImage.StyleId = "arrow"; } this.view = grid; this.label = label; this.entry = noBorderEntry; this.placeLabel = label2; this.arrow = svgCachedImage; 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); rowDefinition.SetValue(RowDefinition.HeightProperty, new GridLengthTypeConverter().ConvertFromInvariantString("Auto")); grid.GetValue(Grid.RowDefinitionsProperty).Add(rowDefinition); tapGestureRecognizer.Tapped += this.TapGestureRecognizer_Tapped; grid.GestureRecognizers.Add(tapGestureRecognizer); 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"); xmlNamespaceResolver.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"); xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(SelectCell).GetTypeInfo().Assembly)); xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(19, 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.Center); label.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand); label.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Start")); label.SetValue(Grid.ColumnProperty, 0); grid.Children.Add(label); noBorderEntry.SetValue(VisualElement.BackgroundColorProperty, Color.White); noBorderEntry.SetValue(VisualElement.WidthRequestProperty, 1.0); BindableObject bindableObject2 = noBorderEntry; BindableProperty fontSizeProperty2 = Entry.FontSizeProperty; IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter(); string value2 = "Default"; XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider(); Type typeFromHandle3 = typeof(IProvideValueTarget); object[] array2 = new object[0 + 3]; array2[0] = noBorderEntry; array2[1] = grid; array2[2] = this; xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, Entry.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("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"); xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(SelectCell).GetTypeInfo().Assembly)); xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(20, 92))); bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider2)); noBorderEntry.SetValue(Grid.ColumnProperty, 1); noBorderEntry.SetValue(View.HorizontalOptionsProperty, LayoutOptions.End); noBorderEntry.SetValue(VisualElement.IsEnabledProperty, false); grid.Children.Add(noBorderEntry); BindableObject bindableObject3 = label2; BindableProperty fontSizeProperty3 = Label.FontSizeProperty; IExtendedTypeConverter extendedTypeConverter3 = new FontSizeConverter(); string value3 = "Default"; XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider(); Type typeFromHandle5 = typeof(IProvideValueTarget); object[] array3 = new object[0 + 3]; array3[0] = label2; array3[1] = grid; array3[2] = 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("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"); xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(SelectCell).GetTypeInfo().Assembly)); xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(21, 20))); bindableObject3.SetValue(fontSizeProperty3, extendedTypeConverter3.ConvertFromInvariantString(value3, xamlServiceProvider3)); label2.SetValue(Label.TextColorProperty, Color.Black); label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center); label2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand); label2.SetValue(Label.HorizontalTextAlignmentProperty, new TextAlignmentConverter().ConvertFromInvariantString("Start")); label2.SetValue(Grid.ColumnProperty, 1); grid.Children.Add(label2); svgCachedImage.SetValue(CachedImage.SourceProperty, new FFImageLoading.Forms.ImageSourceConverter().ConvertFromInvariantString("rightarrow.svg")); svgCachedImage.SetValue(Grid.ColumnProperty, 1); svgCachedImage.SetValue(View.HorizontalOptionsProperty, LayoutOptions.End); svgCachedImage.SetValue(VisualElement.WidthRequestProperty, 15.0); svgCachedImage.SetValue(VisualElement.HeightRequestProperty, 15.0); svgCachedImage.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center); grid.Children.Add(svgCachedImage); this.View = grid; }
private void InitializeComponent() { if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(LoginPage).GetTypeInfo().Assembly.GetName(), "Views/LoginPage.xaml") != null) { this.__InitComponentRuntime(); return; } if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null) { this.__InitComponentRuntime(); return; } TranslateExtension translateExtension = new TranslateExtension(); TranslateExtension translateExtension2 = new TranslateExtension(); BindingExtension bindingExtension = new BindingExtension(); ToolbarItem toolbarItem = new ToolbarItem(); RowDefinition rowDefinition = new RowDefinition(); RowDefinition rowDefinition2 = new RowDefinition(); RowDefinition rowDefinition3 = new RowDefinition(); ColumnDefinition columnDefinition = new ColumnDefinition(); ColumnDefinition columnDefinition2 = new ColumnDefinition(); SvgCachedImage svgCachedImage = new SvgCachedImage(); TranslateExtension translateExtension3 = new TranslateExtension(); BindingExtension bindingExtension2 = new BindingExtension(); NoBorderEntry noBorderEntry = new NoBorderEntry(); Grid grid = new Grid(); Frame frame = new Frame(); ColumnDefinition columnDefinition3 = new ColumnDefinition(); ColumnDefinition columnDefinition4 = new ColumnDefinition(); SvgCachedImage svgCachedImage2 = new SvgCachedImage(); TranslateExtension translateExtension4 = new TranslateExtension(); BindingExtension bindingExtension3 = new BindingExtension(); NoBorderEntry noBorderEntry2 = new NoBorderEntry(); Grid grid2 = new Grid(); Frame frame2 = new Frame(); StackLayout stackLayout = new StackLayout(); TranslateExtension translateExtension5 = new TranslateExtension(); BindingExtension bindingExtension4 = new BindingExtension(); Button button = new Button(); StackLayout stackLayout2 = new StackLayout(); Grid grid3 = new Grid(); BindingExtension bindingExtension5 = new BindingExtension(); BindingExtension bindingExtension6 = new BindingExtension(); ActivityIndicator activityIndicator = new ActivityIndicator(); Grid grid4 = new Grid(); NameScope nameScope = new NameScope(); NameScope.SetNameScope(this, nameScope); NameScope.SetNameScope(toolbarItem, nameScope); NameScope.SetNameScope(grid4, nameScope); NameScope.SetNameScope(grid3, nameScope); NameScope.SetNameScope(rowDefinition, nameScope); NameScope.SetNameScope(rowDefinition2, nameScope); NameScope.SetNameScope(rowDefinition3, nameScope); NameScope.SetNameScope(stackLayout, nameScope); NameScope.SetNameScope(frame, nameScope); NameScope.SetNameScope(grid, nameScope); NameScope.SetNameScope(columnDefinition, nameScope); NameScope.SetNameScope(columnDefinition2, nameScope); NameScope.SetNameScope(svgCachedImage, nameScope); NameScope.SetNameScope(noBorderEntry, nameScope); NameScope.SetNameScope(frame2, nameScope); NameScope.SetNameScope(grid2, nameScope); NameScope.SetNameScope(columnDefinition3, nameScope); NameScope.SetNameScope(columnDefinition4, nameScope); NameScope.SetNameScope(svgCachedImage2, nameScope); NameScope.SetNameScope(noBorderEntry2, nameScope); NameScope.SetNameScope(stackLayout2, nameScope); NameScope.SetNameScope(button, nameScope); NameScope.SetNameScope(activityIndicator, nameScope); this.SetValue(VisualElement.BackgroundColorProperty, Color.White); this.SetValue(Page.BackgroundImageProperty, "main_bg.png"); translateExtension.Text = "login"; IMarkupExtension markupExtension = translateExtension; XamlServiceProvider xamlServiceProvider = new XamlServiceProvider(); Type typeFromHandle = typeof(IProvideValueTarget); object[] array = new object[0 + 1]; array[0] = 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("layout", "clr-namespace:RFID.Layout"); xmlNamespaceResolver.Add("local", "clr-namespace:RFID"); xmlNamespaceResolver.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"); xamlServiceProvider.Add(typeFromHandle2, new XamlTypeResolver(xmlNamespaceResolver, typeof(LoginPage).GetTypeInfo().Assembly)); xamlServiceProvider.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(10, 5))); object title = markupExtension.ProvideValue(xamlServiceProvider); this.Title = title; translateExtension2.Text = "server"; IMarkupExtension markupExtension2 = translateExtension2; XamlServiceProvider xamlServiceProvider2 = new XamlServiceProvider(); Type typeFromHandle3 = typeof(IProvideValueTarget); object[] array2 = new object[0 + 2]; array2[0] = toolbarItem; array2[1] = this; xamlServiceProvider2.Add(typeFromHandle3, new SimpleValueTargetProvider(array2, MenuItem.TextProperty)); 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"); xamlServiceProvider2.Add(typeFromHandle4, new XamlTypeResolver(xmlNamespaceResolver2, typeof(LoginPage).GetTypeInfo().Assembly)); xamlServiceProvider2.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(12, 22))); object text = markupExtension2.ProvideValue(xamlServiceProvider2); toolbarItem.Text = text; toolbarItem.Order = ToolbarItemOrder.Primary; bindingExtension.Path = "ServerCommand"; BindingBase binding = ((IMarkupExtension <BindingBase>)bindingExtension).ProvideValue(null); toolbarItem.SetBinding(MenuItem.CommandProperty, binding); this.ToolbarItems.Add(toolbarItem); 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); stackLayout.SetValue(Grid.RowProperty, 1); stackLayout.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center); stackLayout.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center); stackLayout.SetValue(View.MarginProperty, new Thickness(20.0, 0.0, 20.0, 0.0)); frame.SetValue(Frame.BorderColorProperty, Color.Black); frame.SetValue(Frame.CornerRadiusProperty, 10f); frame.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand); frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(10.0, 0.0, 10.0, 0.0)); frame.SetValue(Frame.HasShadowProperty, false); grid.SetValue(Grid.ColumnSpacingProperty, 10.0); columnDefinition.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("30")); grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition); columnDefinition2.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*")); grid.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition2); svgCachedImage.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center); svgCachedImage.SetValue(CachedImage.AspectProperty, Aspect.AspectFit); svgCachedImage.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center); svgCachedImage.SetValue(Grid.ColumnProperty, 0); svgCachedImage.SetValue(VisualElement.WidthRequestProperty, 24.0); svgCachedImage.SetValue(VisualElement.HeightRequestProperty, 24.0); svgCachedImage.SetValue(CachedImage.SourceProperty, new FFImageLoading.Forms.ImageSourceConverter().ConvertFromInvariantString("user.svg")); grid.Children.Add(svgCachedImage); translateExtension3.Text = "user"; IMarkupExtension markupExtension3 = translateExtension3; XamlServiceProvider xamlServiceProvider3 = new XamlServiceProvider(); Type typeFromHandle5 = typeof(IProvideValueTarget); object[] array3 = new object[0 + 7]; array3[0] = noBorderEntry; array3[1] = grid; array3[2] = frame; array3[3] = stackLayout; array3[4] = grid3; array3[5] = grid4; array3[6] = this; xamlServiceProvider3.Add(typeFromHandle5, new SimpleValueTargetProvider(array3, Entry.PlaceholderProperty)); 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"); xamlServiceProvider3.Add(typeFromHandle6, new XamlTypeResolver(xmlNamespaceResolver3, typeof(LoginPage).GetTypeInfo().Assembly)); xamlServiceProvider3.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(34, 51))); object placeholder = markupExtension3.ProvideValue(xamlServiceProvider3); noBorderEntry.Placeholder = placeholder; bindingExtension2.Mode = BindingMode.TwoWay; bindingExtension2.Path = "Username"; BindingBase binding2 = ((IMarkupExtension <BindingBase>)bindingExtension2).ProvideValue(null); noBorderEntry.SetBinding(Entry.TextProperty, binding2); BindableObject bindableObject = noBorderEntry; BindableProperty fontSizeProperty = Entry.FontSizeProperty; IExtendedTypeConverter extendedTypeConverter = new FontSizeConverter(); string value = "Default"; XamlServiceProvider xamlServiceProvider4 = new XamlServiceProvider(); Type typeFromHandle7 = typeof(IProvideValueTarget); object[] array4 = new object[0 + 7]; array4[0] = noBorderEntry; array4[1] = grid; array4[2] = frame; array4[3] = stackLayout; array4[4] = grid3; array4[5] = grid4; array4[6] = this; xamlServiceProvider4.Add(typeFromHandle7, new SimpleValueTargetProvider(array4, Entry.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"); xmlNamespaceResolver4.Add("local", "clr-namespace:RFID"); xmlNamespaceResolver4.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"); xamlServiceProvider4.Add(typeFromHandle8, new XamlTypeResolver(xmlNamespaceResolver4, typeof(LoginPage).GetTypeInfo().Assembly)); xamlServiceProvider4.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(34, 126))); bindableObject.SetValue(fontSizeProperty, extendedTypeConverter.ConvertFromInvariantString(value, xamlServiceProvider4)); noBorderEntry.SetValue(Grid.ColumnProperty, 1); noBorderEntry.SetValue(Entry.TextColorProperty, Color.Black); grid.Children.Add(noBorderEntry); frame.SetValue(ContentView.ContentProperty, grid); stackLayout.Children.Add(frame); frame2.SetValue(Frame.BorderColorProperty, Color.Black); frame2.SetValue(Frame.CornerRadiusProperty, 10f); frame2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand); frame2.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(10.0, 0.0, 10.0, 0.0)); frame2.SetValue(Frame.HasShadowProperty, false); grid2.SetValue(Grid.ColumnSpacingProperty, 10.0); columnDefinition3.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("30")); grid2.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition3); columnDefinition4.SetValue(ColumnDefinition.WidthProperty, new GridLengthTypeConverter().ConvertFromInvariantString("*")); grid2.GetValue(Grid.ColumnDefinitionsProperty).Add(columnDefinition4); svgCachedImage2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center); svgCachedImage2.SetValue(CachedImage.AspectProperty, Aspect.AspectFit); svgCachedImage2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center); svgCachedImage2.SetValue(Grid.ColumnProperty, 0); svgCachedImage2.SetValue(VisualElement.WidthRequestProperty, 24.0); svgCachedImage2.SetValue(VisualElement.HeightRequestProperty, 24.0); svgCachedImage2.SetValue(CachedImage.SourceProperty, new FFImageLoading.Forms.ImageSourceConverter().ConvertFromInvariantString("lock.svg")); grid2.Children.Add(svgCachedImage2); translateExtension4.Text = "password"; IMarkupExtension markupExtension4 = translateExtension4; XamlServiceProvider xamlServiceProvider5 = new XamlServiceProvider(); Type typeFromHandle9 = typeof(IProvideValueTarget); object[] array5 = new object[0 + 7]; array5[0] = noBorderEntry2; array5[1] = grid2; array5[2] = frame2; array5[3] = stackLayout; array5[4] = grid3; array5[5] = grid4; array5[6] = this; xamlServiceProvider5.Add(typeFromHandle9, new SimpleValueTargetProvider(array5, Entry.PlaceholderProperty)); 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"); xmlNamespaceResolver5.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"); xamlServiceProvider5.Add(typeFromHandle10, new XamlTypeResolver(xmlNamespaceResolver5, typeof(LoginPage).GetTypeInfo().Assembly)); xamlServiceProvider5.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(46, 51))); object placeholder2 = markupExtension4.ProvideValue(xamlServiceProvider5); noBorderEntry2.Placeholder = placeholder2; bindingExtension3.Mode = BindingMode.TwoWay; bindingExtension3.Path = "Password"; BindingBase binding3 = ((IMarkupExtension <BindingBase>)bindingExtension3).ProvideValue(null); noBorderEntry2.SetBinding(Entry.TextProperty, binding3); BindableObject bindableObject2 = noBorderEntry2; BindableProperty fontSizeProperty2 = Entry.FontSizeProperty; IExtendedTypeConverter extendedTypeConverter2 = new FontSizeConverter(); string value2 = "Default"; XamlServiceProvider xamlServiceProvider6 = new XamlServiceProvider(); Type typeFromHandle11 = typeof(IProvideValueTarget); object[] array6 = new object[0 + 7]; array6[0] = noBorderEntry2; array6[1] = grid2; array6[2] = frame2; array6[3] = stackLayout; array6[4] = grid3; array6[5] = grid4; array6[6] = this; xamlServiceProvider6.Add(typeFromHandle11, new SimpleValueTargetProvider(array6, Entry.FontSizeProperty)); 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("layout", "clr-namespace:RFID.Layout"); xmlNamespaceResolver6.Add("local", "clr-namespace:RFID"); xmlNamespaceResolver6.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"); xamlServiceProvider6.Add(typeFromHandle12, new XamlTypeResolver(xmlNamespaceResolver6, typeof(LoginPage).GetTypeInfo().Assembly)); xamlServiceProvider6.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(46, 130))); bindableObject2.SetValue(fontSizeProperty2, extendedTypeConverter2.ConvertFromInvariantString(value2, xamlServiceProvider6)); noBorderEntry2.SetValue(Grid.ColumnProperty, 1); noBorderEntry2.SetValue(Entry.TextColorProperty, Color.Black); noBorderEntry2.SetValue(Entry.IsPasswordProperty, true); grid2.Children.Add(noBorderEntry2); frame2.SetValue(ContentView.ContentProperty, grid2); stackLayout.Children.Add(frame2); grid3.Children.Add(stackLayout); stackLayout2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Start); stackLayout2.SetValue(Grid.RowProperty, 2); stackLayout2.SetValue(StackLayout.SpacingProperty, 15.0); stackLayout2.SetValue(View.MarginProperty, new Thickness(20.0, 0.0, 20.0, 40.0)); BindableObject bindableObject3 = button; BindableProperty fontSizeProperty3 = Button.FontSizeProperty; IExtendedTypeConverter extendedTypeConverter3 = new FontSizeConverter(); string value3 = "Medium"; XamlServiceProvider xamlServiceProvider7 = new XamlServiceProvider(); Type typeFromHandle13 = typeof(IProvideValueTarget); object[] array7 = new object[0 + 5]; array7[0] = button; array7[1] = stackLayout2; array7[2] = grid3; array7[3] = grid4; array7[4] = this; xamlServiceProvider7.Add(typeFromHandle13, new SimpleValueTargetProvider(array7, Button.FontSizeProperty)); 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("layout", "clr-namespace:RFID.Layout"); xmlNamespaceResolver7.Add("local", "clr-namespace:RFID"); xmlNamespaceResolver7.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"); xamlServiceProvider7.Add(typeFromHandle14, new XamlTypeResolver(xmlNamespaceResolver7, typeof(LoginPage).GetTypeInfo().Assembly)); xamlServiceProvider7.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(75, 32))); bindableObject3.SetValue(fontSizeProperty3, extendedTypeConverter3.ConvertFromInvariantString(value3, xamlServiceProvider7)); button.SetValue(VisualElement.BackgroundColorProperty, Color.Black); button.SetValue(Button.TextColorProperty, Color.White); button.SetValue(Button.BorderColorProperty, Color.Black); button.SetValue(Button.BorderWidthProperty, 1.0); button.SetValue(Button.BorderRadiusProperty, 5); translateExtension5.Text = "login"; IMarkupExtension markupExtension5 = translateExtension5; XamlServiceProvider xamlServiceProvider8 = new XamlServiceProvider(); Type typeFromHandle15 = typeof(IProvideValueTarget); object[] array8 = new object[0 + 5]; array8[0] = button; array8[1] = stackLayout2; array8[2] = grid3; array8[3] = grid4; array8[4] = this; xamlServiceProvider8.Add(typeFromHandle15, new SimpleValueTargetProvider(array8, Button.TextProperty)); 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("layout", "clr-namespace:RFID.Layout"); xmlNamespaceResolver8.Add("local", "clr-namespace:RFID"); xmlNamespaceResolver8.Add("svg", "clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"); xamlServiceProvider8.Add(typeFromHandle16, new XamlTypeResolver(xmlNamespaceResolver8, typeof(LoginPage).GetTypeInfo().Assembly)); xamlServiceProvider8.Add(typeof(IXmlLineInfoProvider), new XmlLineInfoProvider(new XmlLineInfo(75, 145))); object text2 = markupExtension5.ProvideValue(xamlServiceProvider8); button.Text = text2; bindingExtension4.Path = "LoginCommand"; BindingBase binding4 = ((IMarkupExtension <BindingBase>)bindingExtension4).ProvideValue(null); button.SetBinding(Button.CommandProperty, binding4); stackLayout2.Children.Add(button); grid3.Children.Add(stackLayout2); grid4.Children.Add(grid3); activityIndicator.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center); activityIndicator.SetValue(View.HorizontalOptionsProperty, LayoutOptions.Center); bindingExtension5.Path = "IsBusy"; BindingBase binding5 = ((IMarkupExtension <BindingBase>)bindingExtension5).ProvideValue(null); activityIndicator.SetBinding(ActivityIndicator.IsRunningProperty, binding5); bindingExtension6.Path = "IsBusy"; BindingBase binding6 = ((IMarkupExtension <BindingBase>)bindingExtension6).ProvideValue(null); activityIndicator.SetBinding(VisualElement.IsVisibleProperty, binding6); grid4.Children.Add(activityIndicator); this.SetValue(ContentPage.ContentProperty, grid4); }