Questions tagged [windows-store-apps]

This refers to Windows 8 and Windows 8.1 apps only. Use [Windows-10-Universal] for Windows apps that target Windows 10. Use [winrt-xaml] for Windows XAML-related questions. Windows Store apps (formerly Metro-style applications) are built on the Windows Runtime (WinRT) and are available on the Windows Store. They target Windows 8 and Windows RT using .NET for Windows Store Apps or html/css and are immersive full-screen applications.

Windows Store Apps, formerly called Metro style applications, are built on the Windows Runtime (WinRT) and are available through the Windows Store. They target the Modern UI interface of Windows 8 and Windows RT using .NET for Windows Store Apps or HTML/CSS and are full-screen (immersive) applications. They can be either paid or free. For more information, see Microsoft's "getting started" pages.

6979 questions
389
votes
22 answers

Signtool error: No certificates were found that met all given criteria with a Windows Store App?

I'm trying to sign a Windows 8 appx package with a pfx file I have. I'm using a command like so: signtool.exe sign /fd sha256 /f "key.pfx" "app.appx" And from this, I get: SignTool Error: No certificates were found that met all the given…
Earlz
  • 62,085
  • 98
  • 303
  • 499
376
votes
5 answers

Synchronously waiting for an async operation, and why does Wait() freeze the program here

Preface: I'm looking for an explanation, not just a solution. I already know the solution. Despite having spent several days studying MSDN articles about the Task-based Asynchronous Pattern (TAP), async and await, I'm still a bit confused about some…
360
votes
5 answers

How does Windows 8 Runtime (WinRT / Windows Store apps / Windows 10 Universal App) compare to Silverlight and WPF?

I am trying to get my head round the new Windows 8 Runtime that is used to create Metro style apps. I know you can use it with XAML and it is based on .NET so C# and VB.NET can be used to write the apps, but then it seems to have something to do…
290
votes
3 answers

Where do I mark a lambda expression async?

I've got this code: private async void ContextMenuForGroupRightTapped(object sender, RightTappedRoutedEventArgs args) { CheckBox ckbx = null; if (sender is CheckBox) { ckbx = sender as CheckBox; } if (null == ckbx) { …
271
votes
6 answers

Adding headers when using httpClient.GetAsync

I'm implementing an API made by other colleagues with Apiary.io, in a Windows Store app project. They show this example of a method I have to implement: var baseAddress = new Uri("https://private-a8014-xxxxxx.apiary-mock.com/"); using (var…
Thought
  • 5,326
  • 7
  • 33
  • 69
209
votes
19 answers

"Permission Denied" trying to run Python on Windows 10

Seems as though an update on Windows 10 overnight broke Python. Just trying to run python --version returned a "Permission Denied" error. None of the three updates; KB4507453, KB4506991, or KB4509096 look like they'd be the culprit but the timing…
notanumber
  • 6,399
  • 3
  • 20
  • 32
206
votes
11 answers

Is it possible to await an event instead of another async method?

In my C#/XAML metro app, there's a button which kicks off a long-running process. So, as recommended, I'm using async/await to make sure the UI thread doesn't get blocked: private async void Button_Click_1(object sender, RoutedEventArgs e) { …
Max
  • 9,220
  • 10
  • 51
  • 83
99
votes
5 answers

Thread.Sleep replacement in .NET for Windows Store

Thread.Sleep doesn't seem to be supported in .NET for Windows Store apps. For example, this System.Threading.Thread.Sleep(1000); will compile when targeting any .NET Framework (2.0, 3.5, 4.0, 4.5), but not when targeting .NET for Windows Store…
Max
  • 9,220
  • 10
  • 51
  • 83
85
votes
5 answers

Correct way to get the CoreDispatcher in a Windows Store app

I'm building a Windows Store app, and I have some code that needs to be posted to the UI thread. For that, i'd like to retrieve the CoreDispatcher and use it to post the code. It seems that there are a few ways to do so: // First…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
72
votes
2 answers

The 'await' operator can only be used within an async lambda expression

I've got a c# Windows Store app. I'm trying to launch a MessageDialog when one of the command buttons inside another MessageDialog is clicked. The point of this is to warn the user that their content is unsaved, and if they click cancel, it will…
roryok
  • 9,325
  • 17
  • 71
  • 138
63
votes
5 answers

The application called an interface that was marshalled for a different thread - Windows Store App

So, first I have read a ton of threads on this particular problem and I still do not understand how to fix it. Basically, I am trying to communicate with a websocket and store the message received in an observable collection that is bound to a…
Yecats
  • 1,715
  • 5
  • 26
  • 40
63
votes
15 answers

How to uninstall an app that another user installed?

I keep hitting this problem when I try to debug my Windows 8 apps and there is a copy already installed on another user account: DEP0700 : Registration of the app failed. Another user has already installed a packaged version of this app. An…
62
votes
4 answers

Setting button text via JavaScript

I am setting up a button via JavaScript, but the button doesn't show the text. Any recommendations on how to fix it? var b = document.createElement('button'); b.setAttribute('content', 'test content'); b.setAttribute('class', 'btn'); b.value = 'test…
dinnouti
  • 1,707
  • 2
  • 15
  • 21
60
votes
1 answer

how to use MVVMLight SimpleIoc?

I'm revamping my software which has messy Messenger.Default(...) bits. Is there any cheat sheet to know MVVMLight SimpleIoc usage (not general IoC description)?
Youngjae
  • 24,352
  • 18
  • 113
  • 198
55
votes
3 answers

JSON.NET DeserializeObject to List of Objects

I'm trying to Deserialize object to list of object using JSON.NET lib. My json file is: [ { "id": 1, "name": "Poczta", "description": "Opis", "latitude": 52.25197, "longitude": 20.896355, "accuracy": 0, "type": "", …
Criss
  • 725
  • 1
  • 6
  • 12
1
2 3
99 100