windows-runtime

WinRT MVVM Light Sample Project

穿精又带淫゛_ 提交于 2019-12-04 10:56:40
问题 If anyone starts developing Windows 8 metro applications using MVVM Light please help me to create a Windows 8 (WinRT) project template. I get bored by using Microsoft ‘s Layoutaware page(Base class). I just need to structure the class with the help of MVVM Light. If any one did this please help me or provide some links to start developing Windows 8 Metro application using MVVM Light. The major areas where i am facing issues are: Navigation (Forward and Backward) State Handling (Tombstoning

listview visual state manager in item template (WinRT, Metro, XAML)

为君一笑 提交于 2019-12-04 10:38:11
I am trying to get a listview to display a list of items made up of textblocks... when the listview item is clicked i would like to show instead a list made up of textboxes... Below is what i have come up with, it does not work. I have two grids within the templates and was hoping to simply show and hide the grids depending on if the listview item is selected. Where have i gone wrong? I ripped these visual states from the listview's template itself but i must admit im not sure how they work, or how they are meant to be triggered. Should there be some code behind to do this? <ListView Grid.Row=

Windows 8 and LOB Apps

点点圈 提交于 2019-12-04 09:59:07
问题 What is the recommended approach for building line of business apps for Windows 8? e.g. complex bespoke finance application They clearly don't fit into the Metro style so presumably will be a regular desktop app So is the recommendation to use WPF? Is there a vNext for this? The type of apps I build as a developer are desktop style apps. They are not ones that would fit into the Metro style. We haven't heard much from \Build about this style of app. So if you were going to launch a desktop

UWP UnauthorizedException

僤鯓⒐⒋嵵緔 提交于 2019-12-04 09:47:14
I am currently writing my first UWP app just to learn the ropes. I am building a small application that pulls data from downloaded facebook-archive. But when I try to open the file (even though everybody has full access) I get an UnauthorizedException. I don't understand this and I haven't found anybody having this problem with just any old file (there are many people having problems with more specific scenarios but not just a simple file on their hard drive) System.UnauthorizedAccessException was unhandled by user code HResult=-2147024891 Message=Access to the path 'C:\Users\patri\Downloads

Styling SelectedItem in ListView in Metro App XAML

与世无争的帅哥 提交于 2019-12-04 09:46:22
I am having troubles setting up the style of selected item in metro app list box. I have created the DataTemplate for the item in which there is a TextBlock which colour I would like to change. I tried many things from WPF but they are not available for metro like DataTemplate.Triggers, Style.Triggers and so on. I also tried to make a copy of the ItemContainerStyle template but since it uses ContentPresenter to display my DataTemplate I didn't know what to change to achieve what I want. The same was with value converter as I didn't know how to use RelativeSource to supply the converter with

How to get access to WriteableBitmap.PixelBuffer pixels with C++?

安稳与你 提交于 2019-12-04 09:41:22
There are a lot of samples for C#, but only some code snippets for C++ on MSDN. I have put it together and I think it will work, but I am not sure if I am releasing all the COM references I have to. Your code is correct--the reference count on the IBufferByteAccess interface of *buffer is incremented by the call to QueryInterface , and you must call Release once to release that reference. However, if you use ComPtr<T> , this becomes much simpler--with ComPtr<T> , you cannot call any of the three members of IUnknown ( AddRef , Release , and QueryInterface ); it prevents you from calling them.

How to Turn Off Automatic Termination of Suspended Apps

五迷三道 提交于 2019-12-04 09:31:26
I'm trying to debug my Windows Store App when it gets suspended (trying to prevent my server app from kicking my WSA client when it gets suspended and stops responding to keep-alive messages). But Windows keeps terminating my app almost immediately after it suspends it. Is there a way to prevent Windows from terminating suspended apps? I've searched the interwebs and the group policy editor for such a setting, but the best I can find is a setting to prevent it from auto-terminating apps on shutdown, which doesn't help me. And of course running in the debugger and pressing the Suspend button

How can I compile sqlite for WinRT / ARM?

耗尽温柔 提交于 2019-12-04 09:26:47
问题 I've successfully compiled my WinRT version of SQLite for x86 as described by Tim Heuer. However, I am still struggling how to compile the dll for WinRT on ARM CPUs. I've run nmake with the Visual Studio ARM command prompt, but that just gives me the following error: C:\sqlite>nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=/DWINAPI_FAMILY=WIN API_PARTITION_APP Microsoft (R) Program Maintenance Utility Version 11.00.50522.1 Copyright (C) Microsoft Corporation. All rights reserved. cl.exe

How can a universal windows app have multiple independent windows (Like Microsoft's app “Photos”)?

泪湿孤枕 提交于 2019-12-04 08:45:26
问题 I do know how to open additional windows using TryShowAsStandaloneAsync . However, if the original window is closed - TryShowAsStandaloneAsync fails (Why?). And I don't know how to "revive" it (-the original window). But "Photos" seems to work fine just like a desktop application. How does it do that? (I'd like to emulate that.) One can open a window with an image, open another one, close the first, and still be able to open more windows. Any way would be fine - some way to launch windows

Reactive Extensions: Process events in batches + add delay between every batch

二次信任 提交于 2019-12-04 08:33:22
问题 I have an application which at some points raises 1000 events almost at the same time. What I would like to do is to batch the events to chunks of 50 items and start processing them every 10 seconds. There's no need to wait for a batch to complete before starting a new batch processing. For example: 10:00:00: 10000 new events received 10:00:00: StartProcessing (events.Take(50)) 10:00:10: StartProcessing (events.Skip(50).Take(50)) 10:00:15: StartProcessing (events.Skip(100).Take(50)) Any ideas