I wanna get certificates in a UWP project. As the following link
Because UWP doesn't have the 'X509Certificate2UI', so I write UI myself. But still has a problem
the code below
X509Store store = new X509Store("MY",StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
X509Certificate2Collection collection = (X509Certificate2Collection)store.Certificates;
works well in a WPF project, the 'collection' has about 600 certificates,
but in a UWP project, 'collection' has 0 certificate.
if I change 'StoreLocation.CurrentUser' to 'StoreLocation.LocalMachine' in first line,
the results of 'collection' in WPF and UWP are the same
Don't know why? Are there some problems in my environment?