windows-store-apps

What's the best implemention for non-blocking wait/delay for a period of time in c#

只谈情不闲聊 提交于 2020-06-23 12:17:07
问题 Currently I need to implement a simple non-blocking delay function in a Windows Store app project. This function should do nothing, just idle for a specific period of time without blocking the UI. My question is: how to implement such a function properly? I know this is an old question, but I really have no clue after some search online. Best wishes! [Edit] I've tried this but not work. public static async Task WaitFor(int millisecondsDelay) { var idleTask = Task.Run(() => { Task.Delay

What's the best implemention for non-blocking wait/delay for a period of time in c#

好久不见. 提交于 2020-06-23 12:17:01
问题 Currently I need to implement a simple non-blocking delay function in a Windows Store app project. This function should do nothing, just idle for a specific period of time without blocking the UI. My question is: how to implement such a function properly? I know this is an old question, but I really have no clue after some search online. Best wishes! [Edit] I've tried this but not work. public static async Task WaitFor(int millisecondsDelay) { var idleTask = Task.Run(() => { Task.Delay

Windows Store asset generator as command line tool

僤鯓⒐⒋嵵緔 提交于 2020-06-17 09:32:08
问题 UWP Application requires a lot of icons and logos in different sizes. Do you know command line tool to generate assets from source image. For example in Microsoft Terminal project: https://github.com/microsoft/terminal Source image: Terminal.svg Produced icons and logos: images 回答1: You could use this open source solution which seems to generate all required assets (except badges): https://github.com/tomzorz/UwpBetterTileGen 来源: https://stackoverflow.com/questions/61953370/windows-store-asset

Programmatically read target platform during run time

别等时光非礼了梦想. 提交于 2020-04-14 08:10:31
问题 I want to know (for logging purposes) if the store application has been compiled for x86 / x64 / AnyCPU / Win32. I couldn't find anything, but it seems that this information should be available during run time. 回答1: Go to your project properties and for each platform add a Conditional compilation symbol (in Build tab). Let's say PLATFORM_X86 , PLATFORM_X64 and PLATFORM_ANYCPU (you can also use /D option from command line). You can use such symbols in your code: #if PLATFORM_X86 // Code

This submission failed with error code(s) 2003,1201

前提是你 提交于 2020-04-11 06:09:10
问题 We have created a Windows Store app and are running into error code(s) 2003 and 1201 while trying to submit the app to the store. Apparently these errors are not documented in the documentation and there is pretty much absolutely nothing that we can find about these online. Hoping somebody have a knowledge about their resolution and is willing to share it here. 回答1: It looks like error 1201 is a long-standing issue (bug) with the store. From the link above, it looks like some people have been

Windows 10 Store: You cannot submit pre-compiled .NET Native packages

烈酒焚心 提交于 2020-04-11 04:07:08
问题 I'm trying to release my application targetting Windows 10 (Universal Windows) based in Cordova to existing Windows Phone 8.1 store record. After generating app package through Store - Create App Packages I get 19 MB file named CordovaApp.Windows10_1.3.2.0_x86_x64_arm.appxbundle . Then I upload this file to App Packages and get. CordovaApp.Windows10_1.3.2.0_x86_x64_arm.appxbundle 18.9 MB Package acceptance validation error: You cannot submit pre-compiled .NET Native packages. Please upload

How do you bind to the property of a User Control?

心已入冬 提交于 2020-02-27 02:26:34
问题 In Windows Store Apps, you create a user control to encapsulate and reuse code-behind and layout XAML. A simple user control might look like this: <UserControl> <StackPanel> <TextBlock Text="First Name" /> <TextBox x:Name="MyTextBox" /> </StackPanel> </UserControl> Now, I want to setup binding. So I create code-behind with properties that expose the Text properties of the UI controls. Something like this: public string TextBoxText { get { return MyTextBoxText.Text; } set { MyTextBoxText.Text

How do you bind to the property of a User Control?

不羁的心 提交于 2020-02-27 02:26:17
问题 In Windows Store Apps, you create a user control to encapsulate and reuse code-behind and layout XAML. A simple user control might look like this: <UserControl> <StackPanel> <TextBlock Text="First Name" /> <TextBox x:Name="MyTextBox" /> </StackPanel> </UserControl> Now, I want to setup binding. So I create code-behind with properties that expose the Text properties of the UI controls. Something like this: public string TextBoxText { get { return MyTextBoxText.Text; } set { MyTextBoxText.Text

How do you bind to the property of a User Control?

风流意气都作罢 提交于 2020-02-27 02:24:47
问题 In Windows Store Apps, you create a user control to encapsulate and reuse code-behind and layout XAML. A simple user control might look like this: <UserControl> <StackPanel> <TextBlock Text="First Name" /> <TextBox x:Name="MyTextBox" /> </StackPanel> </UserControl> Now, I want to setup binding. So I create code-behind with properties that expose the Text properties of the UI controls. Something like this: public string TextBoxText { get { return MyTextBoxText.Text; } set { MyTextBoxText.Text

Issue with Swipe inside ListView

此生再无相见时 提交于 2020-02-06 18:50:59
问题 I am using a ListView in a Windows Store App. Whenever I start swiping(using simulator tap mode) over the list view all the items move together as illustrated in the picture. How can I disable this manipulation event? 回答1: To your ListView , add: ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollMode="Disabled" If that is not enough (this sometimes does not work with MouseWheel events, in that the events still tend to be caught in the ListView and also tends to