public void Load()
 {
     StackPanel1.Children.Clear();
     for (int i = AppData.EditInfos.Length; i >= 0; i--)
     {
         int          j    = AppData.EditInfos.Length - i;
         EditItemView view = null;
         if (i == AppData.EditInfos.Length)
         {
             view = new EditItemView()
             {
                 EditInfo = EditTemp.GetModEditInfo(), VerticalAlignment = VerticalAlignment.Top, Margin = new Thickness(0, 0, 0, 5)
             };
         }
         else
         {
             view = new EditItemView()
             {
                 EditInfo = AppData.EditInfos[i], VerticalAlignment = VerticalAlignment.Top, Margin = new Thickness(0, 5, 0, 5)
             };
         }
         view.Index = j;
         view.LoadContent();
         view.SlideTapped   += View_SlideTapped;
         view.ContentTapped += View_ContentTapped;
         StackPanel1.Children.Add(view);
     }
 }
        private static void IsContentOpened_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            EditItemView view = (EditItemView)d;

            if ((bool)e.NewValue)
            {
                view.Height = double.NaN;
            }
            else
            {
                view.Height = 100;
            }
            view.TriggerImageSlide.IsChecked = (bool)e.NewValue;
        }