using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
using Telerik.Windows.Data;
using System.Windows.Data;

namespace RadGridView_SL5_AR_2
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            //StyleManager.ApplicationTheme = new Windows8Theme();
            InitializeComponent();
            this.playersGrid.ItemsSource = Player.GetPlayers();
            // Uncomment to enable Hierarchy
            //this.clubsGrid.TableDefinition.ChildTableDefinitions.Add(
            //    new GridViewTableDefinition
            //    {
            //        Relation = new PropertyRelation("Players")
            //    });
        }

        private void Button1_Click(object sender, RoutedEventArgs e)
        {
            //this.playersGrid.Columns.Clear();

            GridViewDataColumn column = new GridViewDataColumn();
            column.DataMemberBinding = new Binding("Name");
            //column.MaxWidth = 10;
            //this.playersGrid.Columns.Add(column);
        }

        private void Button2_Click(object sender, RoutedEventArgs e)
        {
          //  this.playersGrid.FilteringMode = Telerik.Windows.Controls.GridView.FilteringMode.Popup;
        }

        private void Button3_Click(object sender, RoutedEventArgs e)
        {
           // this.playersGrid.FilteringMode = Telerik.Windows.Controls.GridView.FilteringMode.FilterRow;
        }
    }
}
