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); }
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); }
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 }
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); }
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 }