Beispiel #1
0
 public ItemDetailPage(Favoritos favoritos, ItemDetailViewModel ImovelDetail)
 {
     InitializeComponent();
     this.favoritos        = favoritos;
     this.ImovelDetail     = ImovelDetail;
     BindingContext        = this.ImovelDetail;
     caroussel.ItemsSource = this.ImovelDetail.Imagens;
     this.ImovelDetail.LoadItemsCommand.Execute(null);
     //     CarregarDados();
 }
Beispiel #2
0
        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);
            };
        }