Пример #1
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);
        }
Пример #2
0
        public UserPageView()
        {
            InitializeComponent();
            CoverFlowMain.AddRange(new[]
            {
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
            });
            asd3423.AddRange(new[]
            {
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
            });

            dsfdsf.AddRange(new[]
            {
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Images/RedEngine/detail.png"),
            });
            CoverFlowMain.JumpTo(2);
        }
Пример #3
0
        public CoverFlowDemo()
        {
            InitializeComponent();

            #region 轮播
            ObservableCollection <Models.Carousel> list = new ObservableCollection <Models.Carousel>();
            for (int i = 0; i < 5; i++)
            {
                list.Add(new Models.Carousel()
                {
                    imgpath = "../Resources/aduskin.png",
                    name    = "AduSkin",
                    info    = "追求极致,永臻完美"
                });
            }
            this.CoverFlowMain.ItemsSource = list;
            CoverFlowMain.JumpTo(2);
            #endregion
        }
Пример #4
0
        public CoverFlowDemoCtl()
        {
            InitializeComponent();

            CoverFlowMain.AddRange(new List <Uri>
            {
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Img/Album/2.jpg"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Img/Album/4.jpg"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Img/Album/6.jpg"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Img/Album/8.jpg"),
                new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/Img/Album/10.jpg")
            });
            CoverFlowMain.JumpTo(2);
        }
Пример #5
0
 public CoverFlowDemo()
 {
     InitializeComponent();
     #region 封面
     CoverFlowMain.AddRange(new[]
     {
         new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/aduskin.png"),
         new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/aduskin.png"),
         new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/aduskin.png"),
         new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/aduskin.png"),
         new Uri(@"pack://*****:*****@"pack://application:,,,/Resources/aduskin.png")
     });
     CoverFlowMain.JumpTo(2);
     #endregion
 }