public void NextBtnlistMethod()
 {
     prvbtn.IsEnabled = true;
     lstData.Children.Clear();
     if (!(listcurrentholder > modeldata.sorteddata.Count - 1))
     {
         if (modeldata.sorteddata[listcurrentholder] != null)
         {
             ListMethod();
         }
     }
     else
     {
         lstData.Children.Clear();
         listcurrentholder = listcurrentholder - stackchildrencount;
         nxtbtn.IsEnabled  = false;
         for (int i = 0; i < stackchildrencount; i++)
         {
             if (!(listcurrentholder > modeldata.sorteddata.Count - 1))
             {
                 if (modeldata.sorteddata[listcurrentholder] != null)
                 {
                     ListContentView view = new ListContentView(modeldata.sorteddata[listcurrentholder]);
                     lstData.Children.Add(view);
                 }
             }
         }
     }
 }
 private void ListMethod()
 {
     for (int i = 0; i < stackchildrencount; i++)
     {
         if (!(listcurrentholder > modeldata.sorteddata.Count - 1))
         {
             if (modeldata.sorteddata[listcurrentholder] != null)
             {
                 ListContentView view = new ListContentView(modeldata.sorteddata[listcurrentholder]);
                 lstData.Children.Add(view);
             }
             ++listcurrentholder;
         }
         else
         {
             nxtbtn.IsEnabled = false;
             break;
         }
     }
 }
        public void BackBtnlistMethod()
        {
            listcurrentholder = listcurrentholder - stackchildrencount;
            nxtbtn.IsEnabled  = true;
            lstData.Children.Clear();

            if (!(listcurrentholder < 0))
            {
                for (int i = 0; i < stackchildrencount; i++)
                {
                    if (modeldata.sorteddata[listcurrentholder] != null)
                    {
                        ListContentView view = new ListContentView(modeldata.sorteddata[listcurrentholder]);
                        lstData.Children.Add(view);
                    }
                    ++listcurrentholder;
                }
                listcurrentholder = listcurrentholder - stackchildrencount;
            }
            else
            {
                ++listcurrentholder;
                lstData.Children.Clear();
                for (int j = 0; j < stackchildrencount; j++)
                {
                    ListContentView view = new ListContentView(modeldata.sorteddata[j]);
                    lstData.Children.Add(view);
                    ++listcurrentholder;
                }
                prvbtn.IsEnabled = false;
            }
            if (listcurrentholder == 0)
            {
                prvbtn.IsEnabled = false;
            }
        }