Comet/sample/Comet.Samples/ListViewDetails.cs

20 строки
384 B
C#
Исходник Обычный вид История

2019-06-28 01:47:54 +03:00
using System;
2019-08-15 06:53:57 +03:00
using Comet.Samples.Models;
2019-06-28 01:47:54 +03:00
2019-08-15 06:53:57 +03:00
namespace Comet.Samples {
2019-06-28 01:47:54 +03:00
public class ListViewDetails : View {
[State]
2019-07-25 18:49:11 +03:00
readonly Song song;
2019-06-28 01:47:54 +03:00
public ListViewDetails (Song song)
{
this.song = song;
Body = () => new VStack {
2019-07-25 18:49:11 +03:00
new Image(() => song.ArtworkUrl),
new Text(() => song.Title),
new Text(() => song.Artist),
new Text(() => song.Album),
2019-06-28 01:47:54 +03:00
};
}
}
}