public async Task<DataItem> GetData() { // Use this to connect to the actual data service // Simulate by returning a DataItem var item = new DataItem("Welcome to MVVM Light"); return item; }
public Task<DataItem> GetData() { // Use this to create design time data DataItem item = new DataItem("Welcome to MVVM Light [design testing]"); item.Clip = MediaClip.CreateFromColor(Color.FromArgb(byte.MaxValue, byte.MinValue, byte.MaxValue, byte.MinValue), TimeSpan.FromSeconds(5)); return Task.FromResult(item); }