win-universal-app

C# UWP Windows 10 Inter Process Communication with MemoryMappedFiles missing

白昼怎懂夜的黑 提交于 2020-08-01 13:36:08
问题 I'm facing a new problem, that occured while coding my IPC for my app. Before UWP I was able to use the directive using System.IO.MemoryMappedFiles; sucessfully. Now I can't use using System.IO.MemoryMappedFiles; and I need it. Is everyone facing the same issue? If yes, how do you solved it? My app doesn't compile anymore. I already tried to reimport the System.Core.dll as a reference and with DllImport, neither worked. 回答1: Direct inter-process communication is not available in Universal

ContentDialog delay after OK clicked

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-28 08:26:43
问题 I have a helper method that shows an ContentDialog with an input box that accepts string data. My issue is that it takes about 1 second after OK is clicked before the caller gets the string back (and it's very noticeable). I theorized that maybe it was the dialog fading out default animation/transition to end before the dialog returned. In the code below, there's about a 1 second delay between when OK is clicked on the dialog and when the "return textBox.Text" fires. /// <summary> /// Shows

Writing a file into the Downloads folder with UWP goes into Isolated Storage?

血红的双手。 提交于 2020-06-25 03:58:08
问题 I need to create a file in the downloads folder for a UWA on Windows 10 and copy the content of an existing file into it. I use the following code: StorageFile cleanFile = await Windows.Storage.DownloadsFolder.CreateFileAsync(cleanFileName); await file.CopyAndReplaceAsync(cleanFile); This works ok, but the folder the file is stored is this: C:\Users\MyUser\Downloads\e15e6523-22b7-4188-9ccf-8a93789aa8ef_t8q2xprhyg9dt!App\WordComment-clean.docx I assume this is some type of Isolated Storage.

What are the famous apps that are built using UWP?

流过昼夜 提交于 2020-06-09 05:37:17
问题 I am building a UWP(universal windows platform) app, I am looking for famous apps that are built using UWP. I want to look at their UI etc for reference. I came to know that calculator app we are using in our PCs is a UWP app. I want to know some more famous UWP apps in market that are available in store or elsewhere to check them. twitter, flipkart used to be UWP apps previously. But they changed to (Progressive Web Apps)PWA. reference: https://www.windowscentral.com/twitter-updates-its

Dynamically Add Grid UWP

筅森魡賤 提交于 2020-05-15 03:41:06
问题 I want to add a grid and its contents on runtime. The Grid is as follows. How can I add this from Code Behind? <Grid Width="200" Height="50" Margin="0,50,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <CheckBox Grid.Column="0" Name="chkBox" MinWidth="32" HorizontalAlignment="Left" Background="Transparent"/> <TextBlock Grid.Column="1" Text="Name" FontSize="16" HorizontalAlignment="Left"

Dynamically Add Grid UWP

限于喜欢 提交于 2020-05-15 03:38:38
问题 I want to add a grid and its contents on runtime. The Grid is as follows. How can I add this from Code Behind? <Grid Width="200" Height="50" Margin="0,50,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <CheckBox Grid.Column="0" Name="chkBox" MinWidth="32" HorizontalAlignment="Left" Background="Transparent"/> <TextBlock Grid.Column="1" Text="Name" FontSize="16" HorizontalAlignment="Left"

How can i create Flashlight app in uwp C#

两盒软妹~` 提交于 2020-04-10 06:01:15
问题 I have Lumia 830 and i've tried to create flashlight app in UWP C#. my device Flashlight works great but i don't know why i can't create my own app turn on / off Torch of my phone. I use Lamp class : var lamp = await Lamp.GetDefaultAsync(); if (lamp == null) { ShowErrorMessage("No Lamp device found"); return; } lamp.IsEnabled = true; when run this code on my phone "lamp" is null and it couldn't find my FlashLED. I've got this code from MSDN.Microsoft.com and thay said If the returned object

How to check if bluetooth is enabled on a device

▼魔方 西西 提交于 2020-02-28 05:53:47
问题 I want to check if Bluetooth is enabled on a device (so that an app could use it without user interaction). Is there any way to do that? Can I also check Bluetooth and Bluetooth Low Energy separately? 回答1: I accomplished this using the Radio class. To check if Bluetooth is enabled: public static async Task<bool> GetBluetoothIsEnabledAsync() { var radios = await Radio.GetRadiosAsync(); var bluetoothRadio = radios.FirstOrDefault(radio => radio.Kind == RadioKind.Bluetooth); return bluetoothRadio

Why can't I reference a .Net Core 1.0 assembly in a Windows Universal app?

痴心易碎 提交于 2020-02-02 12:26:07
问题 I'm using Visual Studio 2017 Community edition at home, and trying to make my first Universal Windows app. The solution has two assemblies, one for UI and one that is purely computational. Everything is fine until I try to reference the computational assembly from the UI assembly. It refuses to add the reference. At first, from my reading, I thought it was a matter of target version incompatibility, but even if I make the computational one's target as low as possible and the UI's target as

Windows 10 (Universal Windows App) data validation

╄→尐↘猪︶ㄣ 提交于 2020-02-02 04:23:06
问题 I was trying to figure out how to do the data validation under UWP, but according to what I have found out, there is basically nothing I can implemented yet. Due to that I tried to implement my custom validation logic. Problem I have now is, that I am showing error information on one TextBlock rather than directly under the specific TextBox which contains data error. This is what I do at the moment: public class Customer : ViewModel { private string _Name = default(string); public string Name