예제 #1
0
        public CoverFlow()
        {
            InitializeComponent();

            // Load images
            for (int i = 1; i <= 5; i++)
            {
                CoverFlowMain.Add("pack://application:,,,/Resource/Image/" + i + ".jpg");
            }
        }
예제 #2
0
        public TestDemoDisplay()
        {
            InitializeComponent();

            var imgs = System.IO.Directory.GetFiles("./../../../assets/TestDemos");

            if (imgs.Length > 0)
            {
                foreach (var imgPath in imgs)
                {
                    var fullPath = System.IO.Path.GetFullPath(imgPath);
                    CoverFlowMain.Add(new Uri(fullPath, UriKind.RelativeOrAbsolute));
                }
            }
            CoverFlowMain.JumpTo(2);
        }