Esempio n. 1
0
 private void InitList()
 {
     MyLoopList.SetAutoDragOffset(0.50);
     MyLoopList.SetDuration(new Duration(new TimeSpan(3000000))); //300m
     MyLoopList.Scrolled     += MyLoopListOnScrolled;
     MyTextLoopList.Scrolled += MyTextLoopList_Scrolled;
     MyTextLoopList.SetFontSize(36);
     MyTextLoopList.SetFontColor(Colors.White);
     //MyTextLoopList.SetWordWrap(TextWrapping.Wrap);
     //MyTextLoopList.SetFontFamily("Miriam Fixed");
     MyTextLoopList.SetDuration(new Duration(new TimeSpan(5500000)));
     LoadPictures(new LocalPictureUiLoader());
 }
Esempio n. 2
0
        private void InitList()
        {
            MyLoopList.SetAutoDragOffset(0.5);
            MyLoopList.SetDuration(new Duration(new TimeSpan(3000000))); //300m
            MyLoopList.Scrolled     += MyLoopListOnScrolled;
            MyTextLoopList.Scrolled += MyTextLoopList_Scrolled;
            MyTextLoopList.SetFontSize(36);
            MyTextLoopList.SetFontFamily("Miriam Fixed");
            MyTextLoopList.SetDuration(new Duration(new TimeSpan(5500000)));

            string[] paths = Directory.GetFiles(Environment.CurrentDirectory + @"\images\Beach");
            Image    img   = new Image {
                Source = new BitmapImage(new Uri(paths[0], UriKind.RelativeOrAbsolute))
            };
            Node node1 = MyLoopList.AddNewToLeft(null, -1, img);

            img = new Image {
                Source = new BitmapImage(new Uri(paths[1], UriKind.RelativeOrAbsolute))
            };
            Node node2 = MyLoopList.AddNewToLeft(null, -1, img);

            node1.Right = node2;
            node2.Left  = node1;
            node2.Below = node1;
            node2.Right = node1;
            Node nodeHallo = MyLoopList.AddNewToAbove(null, -1, new Button {
                Content = "Hallo", Width = 40, Height = 40
            });
            Node nodeToll = MyLoopList.AddNewToLeft(nodeHallo, -1, new Button {
                Content = "Toll, ne?", Width = 100, Height = 40
            });

            node2.Above     = nodeToll;
            nodeToll.Below  = nodeHallo;
            nodeToll.Above  = nodeHallo;
            nodeHallo.Above = nodeToll;
            nodeHallo.Below = nodeToll;
            MyTextLoopList.Add("lol");
            MyTextLoopList.Add("käse");
            MyTextLoopList.Add("Test");
            MyTextLoopList.Add("Ahjo");
            MyTextLoopList.Add("a");
            MyTextLoopList.Add("b");
            MyTextLoopList.Add("c");
        }