windows-store-apps

How to solve error of “returned exit code 1” while building UWP xamarin based app in Visual Studio?

佐手、 提交于 2019-12-13 03:50:15
问题 I am facing following error while publishing my UWP Xamarin based app on Windows Store. Package acceptance validation error: This package wasn't built for submission to the Microsoft Store. Make sure you're uploading a Release build with the .NET Native tool chain enabled. To remove "Windows Store" error, I have made following changes in my project After this it start another error as following while building project: 1: Error: NUTC1056:Internal Compiler Error: 0x8000ffff. Error encountered

Issue with DispatcherTimer for a Countdown clock

为君一笑 提交于 2019-12-13 03:47:52
问题 I have started developing a quiz app that will have a 60 second count down for each question. I searched other issues but could not find my specific issue. When the first question is displayed the screen dsplays "60" and the countdown proceeds normally. However, when the second questions is generated (after a button click submit) the counter starts again, but this time uses 2 second intervals. Then when the third question generates after a click, it counts down in 3 second intervals! I then

RichEditBox: Using CTRL+I to set italic text deletes the text

牧云@^-^@ 提交于 2019-12-13 03:43:56
问题 I have the following code to bold and italicise text in a RichEditBox: private async void Page_KeyDown(object sender, KeyRoutedEventArgs e) { var state = Window.Current.CoreWindow.GetKeyState(Windows.System.VirtualKey.Control); if ((state & CoreVirtualKeyStates.Down) == CoreVirtualKeyStates.Down) { switch (e.Key) { case Windows.System.VirtualKey.B: await BoldText(); break; case Windows.System.VirtualKey.I: await ItaliciseText(); break; } } } private async Task BoldText() { ITextSelection

'OperationCompleted' event not raised after 'Paste' operation

一个人想着一个人 提交于 2019-12-13 03:28:17
问题 The OperationCompleted event is supposed to be raised at the end of a Clipboard Paste operation as mentioned in DataPackage: OperationCompleted Occurs when a paste operation is completed. It's not. Why? / What's a workaround? Code : static void CopyToClipboard(string s) { DataPackage dataPackage = new DataPackage(); dataPackage.SetText(s); dataPackage.OperationCompleted += DataPackage_OperationCompleted1; Clipboard.SetContent(dataPackage); } static void DataPackage_OperationCompleted1

How to Port or Convert existing Windows Store App(Metro Style) to Desktop App?

戏子无情 提交于 2019-12-13 03:01:13
问题 I have an existing App in Windows store(Metro Style)[XAML,C#]. I would like to convert this to Desktop(Ultra-book enabled ) and upload in to the Intel AppUp Store. The application uses GPS and call several web API for certain features. I there any tool to covert? or how could i port this app to Ultra-book enabled desktop app.? Please provide step by step help or link.. 回答1: I would check with Intel what APIs they provide for AppUp. I am almost sure though that there are no tools for this and

c# UWP store-app how to save file that will not be deleted after app uninstall

与世无争的帅哥 提交于 2019-12-13 02:57:39
问题 I noticed that file saved into ApplicationData.Current.LocalFolder.CreateFileAsync folder is removed after application uninstall. Is that possible to save file that will remain in user profiler after application uninstall , so when user re-install application I can read settings from file for this user ? 回答1: Only these two ways are possible: Ask your user to pick a file or a folder using FilePicker or FolderPicker and then track them in your MostRecentlyUsedList . Then you'll get the

Combining Datepicker and Timepicker values Win 8.1

浪子不回头ぞ 提交于 2019-12-13 01:24:19
问题 I am trying to use a Datepicker + a Timepicker together to return a DateTime that can be stored in a database. For example I would like to have a StartDate and an EndDate (if applicable) to a Meeting scheduled. How would I go about combining the values into the correct format that a SQL database would handle. Any feedback would be great. 回答1: I got this to work. String dateTimeString = ""; DateTime dateTime = DateTime.MinValue; dateTimeString = DateTime.Parse(datePicker.Value.ToString())

Windows Store Apps - XAML - Scrollviewer - Turn on pixelsnapping for image inside scrollveiwer

谁说我不能喝 提交于 2019-12-13 01:23:47
问题 I have an 'Image' inside a 'Scrollviewer'. When I zoom in I want to see the true pixel values, what some people refer to as pixel snapping. I don't want my image anti-aliased. I want it to look pixelated. Similar to if you zoomed in using MS Paint. Is there an option in 'ScrollViewer' or 'Image' to accomplish this? 来源: https://stackoverflow.com/questions/29131220/windows-store-apps-xaml-scrollviewer-turn-on-pixelsnapping-for-image-insid

XamlParseException when using UserControl from class library dll

我们两清 提交于 2019-12-13 01:04:01
问题 I have created a library which has a Popup UserControl similar to the one here. When I create a fresh Universal Windows App and create the same UserControl inside an app and open the popup, it opens. But if I create a Class Library and create the same UserControl inside it and try to use it (by opening the popup) inside an app, I get a XamlParseException. It is as follows - Windows.UI.Xaml.Markup.XamlParseException occurred HResult=-2144665590 Message=XAML parsing failed. Source=Windows

Binding Images to GridView Windows 8

谁说胖子不能爱 提交于 2019-12-13 00:48:18
问题 This question is similar in some regards to this one: Windows 8 XAML: Displaying a list of images in a GridView through data binding I followed the instructions listed therein for loading images into my own GridView and I went from having a few images loading of many to only having the very first image load and that's it; the rest don't even show up as blank, whereas before they would all be there if not fully loaded. Here is my code, which utilizes much of the same as is in the