windows-store-apps

MVVM viewmodel async data initialization

依然范特西╮ 提交于 2020-01-03 04:37:22
问题 I am trying to get familiar with Windows Store apps and the MVVM pattern (I'm new to this platform). I have a very simple app that parses a list of Person objects from a json file, then shows them in a gridView. I have created a PeopleViewModel class to serve as the view model for my mainpage, which handles the parsing, and exposes the array of objects for the view. The parsing method: public async Task init() { StorageFolder resourceFolder = Windows.ApplicationModel.Package.Current

Relational SQLite on Windows RT

最后都变了- 提交于 2020-01-03 01:55:24
问题 i am using SQLite for Windows Runtime but i dont see any way to define relationships between tables. Is this feature supported in SQLite for WinRT? If not, are there any alternative solutions for relational local database for Windows RT? 回答1: The database engine itself supports relationships. One way is to specify the foreign keys when creating the tables: CREATE TABLE Foo( Id integer primary key autoincrement not null , ... ) CREATE TABLE Bar( Id integer primary key autoincrement not null,

Windows Store App writing sqlite query into the listview's textblocks

大城市里の小女人 提交于 2020-01-03 00:38:07
问题 i am developing windows store application. I am using sqlite database and i want to put the result of select query into listview. My listview has grids, and textboxes inside these grids. But however i cannot target these textboxes in c# when i gave name to them. Here is the code sample from project: First sqlite query: private void Page_Loaded(object sender, RoutedEventArgs e) { string DBPath = string.Empty; DBPath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "mydb

How do I print a TextFile OR contents of a TextBox in Metro apps?

此生再无相见时 提交于 2020-01-02 17:54:49
问题 I have a TextBox control in my Metro app and need to be able to simply print its contents. I have done my research ever since Windows 8 Dev Preview was around and I still cannot figure it out. I've tried samples, read other answers and read the documentation - over, and over, and over. It just doesn't seem possible. So, after what, 2 years? I'm offering all my reputation (well, as much as they'll allow) in the hopes that someone can help me. 回答1: Here I have created a simple helper class

Is it safe to manually generate .appxsym and .appxupload for Windows Store Apps crash analysis?

﹥>﹥吖頭↗ 提交于 2020-01-02 05:17:07
问题 We have an app with a manual packaging process (MakeAppx.exe). We would like to publish this app to the Store including the public symbols files, so that I can download the .cab process dump file for crash analysis (such as described here). I understand the .appxupload is a zip-file contaning the .appx package and an .appxsym file, which in turn is a .zip file containing the .pdb files (also according to MSDN). Is it safe to manually generate/edit these .appxsym and .appxupload for publishing

Using Fiddler with Windows Store Unit Test

旧街凉风 提交于 2020-01-01 21:56:41
问题 I want to run Fiddler to help debug a portable API client that I'm developing. In Visual Studio, on the Windows Store Unit Test project property page > Debug tab I have checked the 'Allow Local Network Loopback' option. Every web request run during a store unit test fails with a System.Net.Sockets.SocketException : A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to

Using Fiddler with Windows Store Unit Test

僤鯓⒐⒋嵵緔 提交于 2020-01-01 21:55:52
问题 I want to run Fiddler to help debug a portable API client that I'm developing. In Visual Studio, on the Windows Store Unit Test project property page > Debug tab I have checked the 'Allow Local Network Loopback' option. Every web request run during a store unit test fails with a System.Net.Sockets.SocketException : A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to

Is it possible to use Chromium Embedded Framework (CEF) inside Windows Store Apps [closed]

夙愿已清 提交于 2020-01-01 10:53:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . How to integrate Chromium Embedded Framework (CEF) inside Windows Store (Metro Style) App. I read CEF Wiki - https://code.google.com/p/chromiumembedded/ but did not find anything related to Windows Store Apps. There is tutorial for WPF app - https://code.google.com/p/chromiumembedded/wiki/Tutorial And there is

Remove focus on first textbox

会有一股神秘感。 提交于 2020-01-01 09:08:25
问题 In our Windows Store app we have a textbox, and when the application starts this textbox always get focus. In a desktop scenario that's no problem, but on a tablet device this focus will directly open the onscreen keyboard which is not a scenario that we want. We tried to set the focus on another control programmatic with the .Focus(FocusState) method, but somehow the focus is set back to the textbox. We have both set the focus in the LoadState or the OnNavigatedTo method. Only when we have

No P2P in Windows Metro applications?

冷暖自知 提交于 2020-01-01 05:17:06
问题 In the "A .NET developer's view of Windows 8 app development" session at BUILD, the lecturer mentions that only the client-side WCF features are exposed in the Metro profile, we cannot create a server. ( http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-930C?format=progressive @ ~34:00) Does this mean that direct peer to peer communication is not possible for Metro applications, and any data exchanged between 2 users over the internet will always have to actually travel through a non-metro