using System;
using System.Collections.Generic;
using System.Linq;
using Xamarin.Forms;
using Xamarin.Forms.DataGrid;
using Aurora.Backend.Models.Media;
namespace Aurora.Frontend.Components.Queue
{
    public partial class Queue : ContentView
    {
        public Queue()
        {
            InitializeComponent();
        }
        #region ItemsSource Property
        /// 
        /// Bindable Property for the ItemsSource of the datagrid.
        ///  
        /// ),
            declaringType: typeof(Queue),
            defaultBindingMode: BindingMode.Default,
            propertyChanged: OnItemsSourceChanged);
        /// 
        /// Backing property for the ItemsSource property.
        ///  
        ///  ItemsSource
        {
            get
            {
                return (IEnumerable)GetValue(ItemsSourceProperty);
            }
            set
            {
                SetValue(ItemsSourceProperty, value);
            }
        }
        /// 
        /// ItemsSource Changed event handler
        ///  
        /// ;
        }
        #endregion ItemsSource Property
        /// 
        /// Bindable property for the selected item field on the datagrid.
        ///  
        /// 
        /// Backing property for the SelectedItem property.
        ///  
        /// 
        /// Handles selection change events.
        ///  
        ///  source = (IEnumerable)queueDataGrid.ItemsSource;
            if (source.Contains(newValue))
            {
                queueDataGrid.SelectedItem = newValue;
            }
        }
    }
}