public ItemDetailPage(Inicio inicio, ItemDetailViewModel ImovelDetail) { InitializeComponent(); this.inicio = inicio; this.ImovelDetail = ImovelDetail; this.ImovelDetail.LoadItemsCommand.Execute(null); BindingContext = this.ImovelDetail; webView = Videc; if (this.ImovelDetail.Imagens != null) { caroussel.ItemsSource = this.ImovelDetail.Imagens; } // CarregarDados(); }
public Maps(Inicio Inicio) { InitializeComponent(); Mapa.MoveToRegion(MapSpan.FromCenterAndRadius( new Position(-23.0210053, -45.5572689), Distance.FromMiles(0.5))); this.Inicio = Inicio; BindingContext = this.Inicio.viewModel; caroussel.ItemsSource = this.Inicio.viewModel.Imovels; CarregarDados(); Mapa.MyLocationEnabled = true; try { GetUserPosition(); } catch { } }
public TabbedPage1() { InitializeComponent(); viewModel = new ItemsViewModel(); viewModel.LoadItemsCommand.Execute(null); menuContainerPage = new MenuContainerPage(); Services.Sistema.menuSuperior = new MenuSuperior(); this.menuContainerPage.SlideMenu = Services.Sistema.menuSuperior; Children.Add(Inicio = new Inicio(viewModel)); Children.Add(Favoritos = new Favoritos()); Children.Add(Atendimento = new Atendimento()); Children.Add(Entrar = new Entrar()); logo = logotipo; // logo.Source = new UriImageSource { CachingEnabled = false, Uri = new Uri("https://www.rodrigosimoesimoveis.com.br/uploads/www.rodrigosimoesimoveis.com.br/logotipo.png")}; ForceLayout(); this.CurrentPageChanged += async(object sender, EventArgs e) => { var i = this.Children.IndexOf(this.CurrentPage); TrocarDePagina(i); }; }