using (var ws = await file.OpenAsync(FileAccessMode.Read))
using (var fs = new StreamReader(ws.AsStream()))
{
- await doc.LoadAsync(fs, null);
+ var prop = await file.GetBasicPropertiesAsync();
+ await doc.LoadAsync(fs, null,(int)prop.Size);
}
doc.RequestRedraw();
_list.Add(doc);