Exemplo n.º 1
0
        void OnListViewItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            Fichier selectedItem = e.SelectedItem as Fichier;

            stackWeb.IsVisible      = true;
            stackListView.IsVisible = false;
            boutonBack.IsVisible    = true;
        }
Exemplo n.º 2
0
        //void OnSizeChanged(object sender, EventArgs e)
        //{
        //    var orientation = DeviceDisplay.MainDisplayInfo.Orientation;
        //    var mainDisplayInfo = DeviceDisplay.MainDisplayInfo;

        //    if (orientation == DisplayOrientation.Landscape)
        //    {
        //        back_header.Source = ImageSource.FromFile("back_header_Menu_land.png");
        //    }
        //    else
        //    {
        //        back_header.Source = ImageSource.FromFile("back_header_Menu.png");
        //    }
        //}

        private void OnCollectionViewSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Fichier selectedItem = e.CurrentSelection as Fichier;

            stackWeb.IsVisible      = true;
            stackListView.IsVisible = false;
            boutonBack.IsVisible    = true;
        }
Exemplo n.º 3
0
 void OnListViewItemTapped(object sender, ItemTappedEventArgs e)
 {
     Fichier tappedItem = e.Item as Fichier;
 }
Exemplo n.º 4
0
        //void OnSizeChanged(object sender, EventArgs e)
        //{
        //    var orientation = DeviceDisplay.MainDisplayInfo.Orientation;
        //    var mainDisplayInfo = DeviceDisplay.MainDisplayInfo;

        //    if (orientation == DisplayOrientation.Landscape)
        //    {
        //        back_header.Source = ImageSource.FromFile("back_header_Menu_land.png");
        //        //rltLayout.WidthRequest = mainDisplayInfo.Width;
        //        //stackListView.WidthRequest = mainDisplayInfo.Width-200;
        //    }
        //    else
        //    {
        //        back_header.Source = ImageSource.FromFile("back_header_Menu.png");
        //        //rltLayout.WidthRequest = mainDisplayInfo.Width;
        //        //stackListView.WidthRequest = mainDisplayInfo.Width-200;
        //    }
        //}

        async void OnListViewItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            Fichier selectedItem = e.SelectedItem as Fichier;
            await Navigation.PushModalAsync(new MessagesDetail(), false);
        }