Ejemplo n.º 1
0
        //TaskFolder preparation
        private void addTaskFolder(TaskFolder tf)
        {
            PageFolderLook pageFL = new PageFolderLook(tf);

            //EVENT ADD
            pageFL.AnyChange += EventButApplyClicked;

            //delete event
            //pageFL.ButtonClickedHandler -= ButtonClickedEvent;


            Frame myFrame = new Frame();

            myFrame.Margin = new Thickness(10, 10, 10, 10);
            myFrame.Navigate(pageFL);

            if (tasksCnt % 5 == 0)
            {
                StackPanel sp = new StackPanel();
                sp.Orientation = Orientation.Horizontal;
                stackPanels.Add(sp);
                panelTasks.Children.Add(sp);
            }
            stackPanels[stackPanels.Count - 1].Children.Add(myFrame);
            tasksCnt++;
        }
Ejemplo n.º 2
0
        //TaskFolder preparation
        private void addTaskFolder(TaskFolder tf)
        {
            PageFolderLook pageFL = new PageFolderLook(tf);

            pageFL.AnyChange += EventRepaint;

            Frame myFrame = new Frame();

            myFrame.Margin = new Thickness(10, 10, 10, 10);
            myFrame.Navigate(pageFL);

            if (tasksCnt % 5 == 0)
            {
                StackPanel sp = new StackPanel();
                sp.Orientation = Orientation.Horizontal;
                spList.Add(sp);
                panelRecycle.Children.Add(sp);
            }
            spList[spList.Count - 1].Children.Add(myFrame);
            tasksCnt++;
        }