uwp

Encrypt data with X509 certificate's private key in UWP

拟墨画扇 提交于 2019-12-11 14:31:58
问题 I'm displaying to the user every available certificates in his personal store, fetched with the following method : public List<X509Certificate2> GetPersonalCertificates() { var certificates = new List<X509Certificate2>(); using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser)) { store.Open(OpenFlags.MaxAllowed); foreach (var certificate in store.Certificates) { if (certificate != null && certificate.HasPrivateKey) { certificates.Add(certificate); } } } return certificates;

How to copy a file from Visual Studio project to UWP application's LocalFolder on build

我的未来我决定 提交于 2019-12-11 14:29:30
问题 I have a Xamarin solution with a UWP project in it. I cannot understand how to copy a file that is in my VS project to the UWP LocalFolder. I've tried fiddling with the file's Build Action (Compile, Content, Embedded Resource, AdditionalFiles) and I've tried to manually create this location. Apparently this code: Windows.Storage.StorageFolder appDataFolder = Windows.Storage.ApplicationData.Current.LocalFolder; string fileName = (appDataFolder.Path + "\\HighScore.csv"); Creates this path: 'C:

how to get list of all installed apps and run them in UWP WinRT 8.1

好久不见. 提交于 2019-12-11 14:29:12
问题 I'm actually creating an UWP 8.1 app for one of my client.And I've got some little issue with it.At some point of my app I've to get all the names of installed app in the device and view it as a list.When the user will click on any of them, I've to launch that certain app. I've already tried to add restricted capabilities in the app manifest but it shows a blue line when I add, Morever I can get access to the AppData/Packages by using folderpicker somehow but don't know what to do. The app is

How can I show a ProgressRing control ONLY on top of/overlaying my current page?

冷暖自知 提交于 2019-12-11 14:26:51
问题 I'm an Android developer trying to learn UWP development, and stuck on this simple need. I have 3 pages and want to make a ProgressRing accessible to all 3 pages, so when I'm doing an async task I can pop up the ProgressRing modal. I don't want to have ProgressRing code in each page. How can I accomplish this? I've looked into the ContentDialog class, but that seems to require a button in the UI and all I want to show is the ProgressRing itself without a button centered in my window The

UWP StorageFolder GetFilesAsync() not returning

白昼怎懂夜的黑 提交于 2019-12-11 14:17:21
问题 I have updated my visual studio 2017 to the creators update SDK 16299 . But ever since I cannot use the StorageFolder to get files. The execution doesn't return and no exception is thrown. try { var instalationFolder = Package.Current.InstalledLocation; var assetFolder = await instalationFolder.GetFolderAsync("Assets"); var files = await assetFolder.GetFilesAsync(); var count = files.Count; } catch (Exception ex){} Please advice, the execution disappears at assetFolder.GetFilesAsync() 回答1:

WCF discovery in UWP app

限于喜欢 提交于 2019-12-11 13:55:30
问题 I've created an universal app that connects to a WCF webservice at intranet, an it's working just fine, since the address of the service's host is known. The system's architecture allows to be more than one webservice running, in different hosts, for performance and security (redundancy) reasons. So I'm trying to make my app discover every service, with the given contract, that is been running on the same LAN, but I can't manage to do that. I'm trying the same approach used at a very similar

Use all culture versions of resources files in UWP app

末鹿安然 提交于 2019-12-11 13:53:16
问题 Accoding to Andy Wigley on this video https://www.microsoftvirtualacademy.com/en-US/training-courses/a-developer-s-guide-to-windows-10-12618 (look in additional resources -> Localization), UPW apps download only the culture resources they need. I'm writing an app that uses resource files not only to translate UI but also generate files for the user. User may want to generate files in different culture than the one the OS uses. How I can assure that e.g. if my system is in en-US I will be able

TextBox sizing inside ScrollView with horizontal scroll

穿精又带淫゛_ 提交于 2019-12-11 13:47:36
问题 I have a problem with the TextBox control. Be aware of the ScrollViewer as this makes the difference. Here is my xaml: <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <ScrollViewer HorizontalScrollMode="Auto" HorizontalScrollBarVisibility="Auto"> <TextBox HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="20" Text = "A short text"> </TextBox> </ScrollViewer> </Grid> It results in this: It looks like expected and it expends/shrinks nicely if the window is

CameraCaptureUI control size of popup?

£可爱£侵袭症+ 提交于 2019-12-11 13:28:24
问题 A couple of questions about CameraCaptureUI. 1) Can I control the size/placement of the popup? It pops up very small on my Win10 tablet and it's really annoying to enlarge it each time the app needs to take a photo! 2) I am trying to create photos that are equivalent in quality to the built-in camera app, but I had a lot of trouble with this. Only by playing around with the croppedSizeInPixels could I get anything larger that seemed decent quality. Can someone explain why this helped and if

Converting a .Net dll to a .Net Core dll

混江龙づ霸主 提交于 2019-12-11 12:49:48
问题 We have this application written in Visual Basic (Windows Form Application) and I am tasked to convert it to Universal App (UWP). the said application uses a dll that is specific to .Net Framework so in order to convert it into a Universal App, I need to have a dll that is targeting .Net Core. Is there a way to do it? I know nothing in dll stuffs, can someone enlighten me up? Any help will be appreciated. 回答1: Your best bet in this case is the Desktop App Converter. In summary, what that does