windows-10-universal

UWP XmlSerializer PlatformNotSupportedException

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 01:14:55
问题 I'm using XmlSerializer in a UWP project. It works fine when compiled for debug but throws PlatformNotSupportedException in release. I've written a simple example C# program to illustrate this. I have not edited any project settings from what VS 2017 has given me. I have a simple SampleData.xml file in the project as Content. I have classes called SampleItemsForSerialization along with SampleItemList and SampleItem, all marked up to be able to serialize the xml file. In another class I have

Does UWP app support ajax?

末鹿安然 提交于 2019-12-11 00:57:36
问题 I have a windows 8 hybrid app and now I want to migrate it to UWP. I am facing two issues and I have been searching on the internet for quite a few time. I want to know if UWP support ajax function. Also my anchor tag in href is not parsing. What might be the reason. 回答1: I want to know if UWP support ajax function The answer is yes, you can use ajax in UWP Application. But there are a few things you need to notice when using ajax in UWP. If you are using ajax to get data from a remote server

How to add back button event in Universal Windows App without using WinjS Library?

邮差的信 提交于 2019-12-10 19:06:34
问题 This is my main.js (function () { "use strict"; //No need of WinJS var activation = Windows.ApplicationModel.Activation; var roaming = Windows.Storage.ApplicationData.current.roamingSettings; // For App Start Up Windows.UI.WebUI.WebUIApplication.addEventListener("activated", function (args) { if (args.detail[0].kind === activation.ActivationKind.launch) { if (roaming.values["currentUri"]) { if (roaming.values["UserName"]) { localStorage.setItem("UserName", roaming.values["UserName"]); window

Converting String Type To Windows.UI.Color In Windows Universal App

核能气质少年 提交于 2019-12-10 18:54:17
问题 I'm trying to make a program to parse xml files with predefined format, and add some UI controls to my MainPage in Windows Universal Application. In some part, I need to specify the background color of my TextBlocks in related xml file, so I'm looking for a way to convert string attribute, read from xml and convert it to Windows.UI.Color corresponding value. here is my xml file and my C# code to add control xml : <test-unit name ="FOG_LAMP" text ="Fog Lamp" mode ="DIG_IN" color="ORANGE"/> C#:

Page command bar overlaps Splitview Pane

我只是一个虾纸丫 提交于 2019-12-10 15:07:30
问题 In my Page I have bottom command bar, and if that command bar is open and user clicks on SplitView menu than command bar is overlaying the menu. Below is the xaml of splitview page: <SplitView x:Name="NavigationSplitView" DisplayMode="CompactOverlay" IsPaneOpen="True" CompactPaneLength="{StaticResource ShellCompactPaneSize}" OpenPaneLength="300" PaneBackground="{ThemeResource SplitViewBackgroundBrush}" > <!--//App root frame where all content data will be loaded--> <Frame x:Name="rootFrame" /

Is Windows Universal App for me? - UI Migration [closed]

。_饼干妹妹 提交于 2019-12-10 12:17:17
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . I have a console app that does some Database management stuff connecting directly to them. It works for MsSqlServer and Oracle (for now). As you might know, using a console app is not so productive. So I wanted to port the UI part to a Desktop app. I have all core code in a

Proper way to upgrade WPF program settings on program update (Desktop Bridge/Project Centennial)

时光总嘲笑我的痴心妄想 提交于 2019-12-10 11:56:18
问题 When it was a clickonce program it worked, but then I made an appxpackage and exported it as a centennial app for windows store and the upgrade does not work any more. Right now I have in App.xaml.cs protected override void OnStartup(StartupEventArgs e) { if (myprog.Properties.Settings.Default.UpgradeRequired) { myprog.Properties.Settings.Default.Upgrade(); myprog.Properties.Settings.Default.UpgradeRequired = false; myprog.Properties.Settings.Default.Save(); } With UpgradeRequired as a bool

Access raw keyboard input in Universal Windows App (IoT)

99封情书 提交于 2019-12-10 11:51:41
问题 I'm trying to build an app that will accept keyboard input from a remote control that emulates a keyboard. I need to capture all keys from the remote, including volume up/down (it emulates a multimedia keyboard, fwiw). I can't figure out how to do that in a UWA. I've tried Windows.UI.Input.KeyboardDeliveryInterceptor and Windows.UI.Core.CoreWindow.GetForCurrentThread().KeyDown, which capture some input, but not all keys (it doesn't capture the special keys). I don't plan to include this app

FormatMessage is not supported for this application type

北城余情 提交于 2019-12-10 11:32:30
问题 When running app certification on my app, I'm getting this error from supported apis. API FormatMessage in api-ms-win-core-localization-l1-2-0.dll is not supported for this application type. System.Diagnostics.Tracing.dll calls this API. Is there something obvious that I'm missing? I'm not using anything from that namespace directly. If this is a 3rd party library calling something in System.Diagnostics.Tracing, is there a way to track down which one? I'm not referencing System.Diagnostics

DesktopAppConverter (DAC) says the expanded image is invalid, when I try to convert my app

拥有回忆 提交于 2019-12-10 10:44:35
问题 I have downloaded the .wim file that matches my Windows version (14393) and gone through the process of setting up the converter. So, I have the converter app running on my machine. When I attempt to run a conversion, I get error message E_EXPANDED_BASEIMG_INVALID. I have tried to get rid of the expanded image by run DAC with the -Cleanup ExpandedImage parameter, but it fails to clear it. Have you managed to replace the expanded image? The files are quite large and I cannot keep adding