使用Flash Builder创建像Nivo滑块一样的图像滑块(Create Image Slider Like Nivo Slider With Flash Builder)
我想使用Adobe Flash Builder构建像Nivo滑块这样的图像滑块。
我想要图像控件,图像标题显示在图像上方(如闪光灯中的图层)。
我想从xml中读取数据。
我想在图像之间有很好的过渡。
你可以提供教程或源代码。
谢谢!
I'd like to build image slider like Nivo slider with Adobe Flash Builder.
i'd like to have image controls, image titles displayed above the image(like layers in flash).
i'd like to read the data from xml.
i'd like to have nice transitions between images.
mayebe u can provide tutorial or source code.
thanks!
原文:https://stackoverflow.com/questions/8805306
最满意答案
select many将展平嵌套数组。 Value.Select为子列表中的每个项创建一个KVP,然后选择多个将嵌套数组转换为展平集合。
public KeyValuePair<TKey, TValue>[] Flattened() { return _dict.SelectMany(x => x.Value.Select(v => new KeyValuePair<TKey, TValue>(x.Key, v))).ToArray(); }
The select many will flatten out the a nested array. The Value.Select creates a KVP for each item in the sublist, the select many then converts the nested array into a flatten collection.
public KeyValuePair<TKey, TValue>[] Flattened() { return _dict.SelectMany(x => x.Value.Select(v => new KeyValuePair<TKey, TValue>(x.Key, v))).ToArray(); }
相关问答
更多-
var finalList = zz.SelectMany(a => a).ToList(); var finalList = zz.SelectMany(a => a).ToList();
-
你应该使用Select方法: return adGroups.Where(p => p.Key.Equals("")) //no reason to check it twice .Select(item => item.Value) .ToList(); You should use Select method: return adGroups.Where(p => p.Key.Equals("")) //no reason to check ...
-
像这样的东西: var res = ints.Select(x => new KeyValuePair
(x, "")).ToList(); 或者也可能: var dict = ints.ToDictionary(x => x, x => "") 这将创建一个基本上是KeyValue对列表的字典。 Something like this: var res = ints.Select(x => new KeyValuePair (x, "")).ToList ... -
projectContact.Roles将是一个IEnumerable
>是你想要的,还是你想要它作为List或DIctionary? 对于List,只需在语句末尾添加.ToList() 。 对于字典,它有点棘手: projectContact.Roles = xml.Elements() .First() .Elemen ... -
如何在linq中展平字典
>并将键保留在结果中(How to flatten a dictionary [2023-11-29]> in linq and keep the key in the results) 您可以使用SelectMany扩展方法: var result= foods.SelectMany(f=>f.Value.Select(s=>new Tuple(f.Key, s))) .ToList(); You can use SelectMany extension method: var result= foods.SelectMany(f=>f.Value.Select(s=>new Tuple (f ... -
使用linq [duplicate]展平KeyValuePair
>对象(Flatten a KeyValuePair [2023-05-30]> object using linq [duplicate]) select many将展平嵌套数组。 Value.Select为子列表中的每个项创建一个KVP,然后选择多个将嵌套数组转换为展平集合。 public KeyValuePair[] Flattened() { return _dict.SelectMany(x => x.Value.Select(v => new KeyValuePair (x.Key, v))).ToArray(); } The select many will flatte ... -
你可以这样做: var results = from c in Categories from p in c.subcategory.products select new MixedClass() { CategoryId = c.id, SubcategoryId = c.subcategory.id, ProductId = p.id, Supplier1Id = p.supplier1.id, ...
-
从List
>返回匹配(Returning a match from a List [2022-04-18]>) 问题在于你的foreach循环。 tempComCols是一个List,但comCD是一个KeyValuePair 。 因此,您的循环会导致无效的类型转换。 不幸的是,由于我们不知道CD类(接口?)是什么样的,我无法就其属性提出修正建议。 编辑:下面也许是你的方法更好的版本(虽然,我没有正确调试它): public CompilationCD FindTrackInComCD(string track) { CompilationCD temp = new ... -
展平列表
>> [duplicate](Flatten a List [2022-07-27]>> [duplicate]) 您可能想要使用SelectMany : List -
这个: var result = BossList.SelectMany (boss => boss.Employees). Select (employe => new { EmpID = employe.EmpID, Role = employe.Role }). Concat (BossList.Select (boss => new { EmpID = boss.EmpID, Role = boss.Role })). GroupBy (person => person.Em ...