uwp

UWP run Exe file with Parameters

你说的曾经没有我的故事 提交于 2019-12-06 12:21:26
on UWP, I want to run a Exe file with parameter. Here is an example. process.exe filename.txt this Command line application process the text file and output a result file as Text. My Question is How to pass the parameter. I success to run Exe file on UWP, but the input full path for filename maybe wrong and failed. in ViewModels, await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync("spectrum"); in Package.appxmanifest <Extensions> <desktop:Extension Category="windows.fullTrustProcess" Executable="Assets\identify\process.exe" > <desktop:FullTrustProcess> <desktop

DatePicker Flyout Presenter Style

我怕爱的太早我们不能终老 提交于 2019-12-06 11:51:46
问题 I'm looking for a way to edit the DatePickerFlyoutPresenter scroll box style. I want to change the text to white the arrow buttons and change the pointover colors but cant seem to find it. could it be useing flipview style? I am using xaml/C# http://puu.sh/lKvcW/a921089600.png 回答1: From the Live Visual Tree of Visual Studio, we can find DatePickerFlyoutPresenter use LoopingSelector in it. So to change the color of the text in arrow button, we can change the template of Windows.UI.Xaml

Horizontal swipe gesture on UWP

笑着哭i 提交于 2019-12-06 11:39:13
is there any way to get swipe gesture same as windows phone 8 with wptoolkit. Because wptoolkit nuget package is not available for uwp, so i am unable to get similar swipe gesture on UWP In windows Phone 8 with the help of WPtoolkit nugetget package i placed this <toolkit:GestureService.GestureListener> <toolkit:GestureListener Flick="OnSwipe"/> </toolkit:GestureService.GestureListener> over text block, so i can swipe left to right or right to left over textbox1 . and swipe gesture help me to implement this private static int i; private void OnSwipe(object sender, FlickGestureEventArgs e) { if

UWP suspend disable with ExtendedExecutionSession or ExtendedExecutionForegroundSession

♀尐吖头ヾ 提交于 2019-12-06 11:32:02
问题 UWP, I can not be disable to suspend. I need your knowledge. Here is my simple example to know issue. It's counter increase/decrease application. Actually, I want to monitor temperatures from device for 356 x 24 hours without any stopping. I expect to increase value++ during Suspend mode. but UWP does not work during supending.. Why ?? Uploaded code is here at Github.com. You can test My simple application. https://github.com/bidasknakayama/Basic here is my environment. It's desktop PC.

How do you get a BLE Advertisment callback in a desktop .NET app?

丶灬走出姿态 提交于 2019-12-06 11:29:33
I am trying to get a BLE advertisement callback from a .NET Windows desktop application. I am able to call into the APIs, however the Received event is never called from the OS in a WPF or Command line application. I do get events when the code is called from a Unit Test in VS2015, or universal Windows app. However, I need to do other things not available in universal Windows. Here is the code: using Windows.Devices.Bluetooth.Advertisement; public static void ScanForAdvertisments() { mWatcher = new BluetoothLEAdvertisementWatcher(); mWatcher.Received += OnAdvertismentReceived; mWatcher

C# uwp launch apps

六月ゝ 毕业季﹏ 提交于 2019-12-06 11:21:16
With this code below: await Windows.System.Launcher.LaunchUriAsync(new Uri(@"ms-windows-store://review/?ProductId=9wzdncrfj2wl")); I am opening Facebook app in Microsoft Store. There is a Launch button on that page. With it user runs the application. How can I run the application with it's product ID? I managed to open app with this code: await Windows.System.Launcher.LaunchUriAsync(new Uri("fb:post?text=foo")); But I want to open it with ID. I have found this code, but it is not working: await Windows.System.Launcher.LaunchUriAsync(new Uri(@"ms-windows-store://pdp/?ProductId=9wzdncrfj2wl"));

UWP, how to handle images and scaling?

纵饮孤独 提交于 2019-12-06 11:20:24
We have a Xamarin Forms project which shall run on Android, iOS and UWP. On Android you have a number of different images in different folder to support a vast number of different screens (and PPIs) on iOS you have a similar system (@2x, @3x etc.). I can't for the life of me find how to achive something similar for UWP. When I run the project on a Windows tablet with a recommended scaling of 150 % or 200 % all the images are also scaled up, which results in a blurry image. I can't find any thing on how to handle images in an UWP app, even for a "native" (not using Xamarin) UWP app. Scaling

Changing UWP project's Target Version from 1803 to 1809 disables NavigationView's Acrylic texture - why?

拈花ヽ惹草 提交于 2019-12-06 11:16:40
I have an UWP project which I started to build using Target Version 1803. When I upgraded the solution to use Target Version 1809 my NavigationView's behaviour changed and the acrylic effect was gone. As an illustration, this is what it looked like before: And this is what it looks like now: Why does this happen? I wouldn't believe this is to match some design guidelines since Microsoft themselves still use the acrylic effect in NavigationViews in many native UWP programs. I would also like to know if there's a way to "bring back" the acrylic to a NavigationView in a program using Target

GetFolderFromPathAsync function access denied

三世轮回 提交于 2019-12-06 11:12:43
I'm making a Windows 10 Universal App and I want the user to pick a folder to save the document files for the App. The path for this folder is saved to ApplicationData.Current.RoamingSettings.Values . Here's the code: On first Start: var folderPicker = new FolderPicker { SuggestedStartLocation = PickerLocationId.ComputerFolder }; StorageFolder folder = await folderPicker.PickSingleFolderAsync(); StorageFolder homeFolder = await folder.CreateFolderAsync("App1 Data", CreationCollisionOption.OpenIfExists); var save = ApplicationData.Current.RoamingSettings.Values; save["HomeFolder"] = homeFolder

Custom Themes in UWP Application

为君一笑 提交于 2019-12-06 10:46:38
问题 I am developing a UWP Application in which I want to set the theme dynamically from a file(Containing color codes). The file which I have created is an XML file whose nodes contains the color codes which are mapped to the controls of the application. The user can update the color codes in the provided XML file, which should reflect the theme changes in the application. Can I set any custom location for this file so that the user can edit the contents of the file? Is this the right approach