我正在为WP8应用程序工作,现在我要提出一个不规则列表,因为项目模板不统一。就像LongListSelector包含列表和网格模式一样,看起来有点复杂,任何人都可以给出一些火花吗?
答案 0 :(得分:0)
您可以拥有多个项目模板,详细说明如下:http://www.geekchamp.com/articles/implementing-windows-phone-7-datatemplateselector-and-customdatatemplateselector
但是,如果您不需要/想要那种复杂的控制,那么XAML值转换器可能就是这样。这样,您可以根据绑定类的值以不同方式自定义每个项目。 http://channel9.msdn.com/Series/Windows-Phone-8-1-Development-for-Absolute-Beginners/Part-25-Advanced-Binding-with-Value-Converters