public void OnSelect(object sender, SelectedItemChangedEventArgs e)
 {
     // get the item selected
     var mItem = (Model.InventoryMedia)e.SelectedItem;
     // create a new details view with the item
     var view = new MediaDetailsView(ItemID, mItem);
     //// tell the navigator to show the new view
     Navigation.PushAsync(view);
 }
Ejemplo n.º 2
0
        public void OnSelect(object sender, SelectedItemChangedEventArgs e)
        {
            // get the item selected
            var mItem = (Model.InventoryMedia)e.SelectedItem;
            // create a new details view with the item
            var view = new MediaDetailsView(ItemID, mItem);

            //// tell the navigator to show the new view
            Navigation.PushAsync(view);
        }
Ejemplo n.º 3
0
 public MediaListView(int itemID)
 {
     ItemID = itemID;
     InitializeComponent();
     //
     // Media Button
     btnMedia.Clicked += (sender, e) =>
     {
         var mItem = new Model.InventoryMedia();
         // create a new details view with the item
         var view = new MediaDetailsView(itemID, mItem);
         // tell the navigator to show the new view
         Navigation.PushAsync(view);
     };
 }
		public MediaListView (int itemID)
		{
            ItemID = itemID;
			InitializeComponent ();
            //
            // Media Button
            btnMedia.Clicked += (sender, e) =>
            {
                var mItem = new Model.InventoryMedia();
                // create a new details view with the item
                var view = new MediaDetailsView(itemID, mItem);
                // tell the navigator to show the new view
                Navigation.PushAsync(view);
            };
        }