windows-runtime

Reading the response from HttpClient.GetStringAsync

本秂侑毒 提交于 2019-12-12 11:53:13
问题 I am working on a Windows Universal app using the new runtime for Windows Phone/Store apps. I am sending a request to a server using the following code and expecting a HTML response back. However when I return the string and display it in the UI, it just says: "System.Threading.Tasks.Task'1[System.String]" It's not showing me the actual HTML/XML that should be returned. When I use the same URL in a normal Windows Forms app, it's returning the data I expect but the code I use there is

WinRT Xaml Toolkit Column Series Error?

一曲冷凌霜 提交于 2019-12-12 11:34:20
问题 I have a Chart from Win RT Xaml Toolkit that I want to display a ColumnSeries like this: <charting:Chart Name="columnChart" Grid.Row="1" Grid.Column="1" Width="400" Height="400"> <charting:Chart.Series> <charting:ColumnSeries ItemsSource="{Binding items}" IndependentValueBinding="{Binding Name}" DependentValueBinding="{Binding Value}" IsSelectionEnabled="True"> </charting:ColumnSeries> </charting:Chart.Series> </charting:Chart> but I always receive this error: WinRT information: Cannot add

Windows::Storage::ApplicationData::Current Not Found in C++

断了今生、忘了曾经 提交于 2019-12-12 11:18:57
问题 My C++ code, which is part of Media Foundation Transform tend to able to run in Windows Store App (Metro) I modify the C++ GrayscaleTransform to include the following code. However, my C++ code fails to locate namespace Windows::Storage . LPCWSTR zPath = Windows::Storage::ApplicationData::Current->TemporaryFolder->Path->Data(); Is there any additional settings I need to do? I can make it compiled, by turning on Consume Windows Runtime Extension . But by doing this, it will give me additional

Why does FlipView ignore SelectedItem

微笑、不失礼 提交于 2019-12-12 10:52:31
问题 I'd like to use a FlipView to display some items and start showing a specific item. For this, I have defined a view model class: class MyDataContext { public MyDataContext() { Items = new List<MyClass>(); Items.Add(new MyClass("1")); Items.Add(new MyClass("2")); Items.Add(new MyClass("3")); SelectedItem = Items[1]; } public List<MyClass> Items { get; set; } public MyClass SelectedItem { get; set; } } As you can see, the selected item is not the first item. Now for the XAML: <FlipView

Debug WinRT app on second monitor with Visual Studio 2012

主宰稳场 提交于 2019-12-12 10:46:37
问题 When I run or debug a winrt application, Visual Studio 2012 seems to start it always on the same monitor. How can I force Visual Studio 2012 to start the app on my other monitor? 回答1: Windows will deploy to which ever monitor you last viewed the Start screen on. So, here is what I do. Start VS in Main Monitor Bring up charms bar on Secondary monitor and select the Start charm Launch debug from VS in Main Monitor Your app should now launch in the secondary monitor. I don't know if there is a

NodeRT: could not find assembly

两盒软妹~` 提交于 2019-12-12 10:46:36
问题 I am writing an electron app with electron-windows-notifications which is dependant on NodeRT. As I try to install my project, I get following error for each of @nodert-win10 dependencies: > if not defined npm_config_node_gyp (node "C:\Applications\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --msvs_version=2015 ) else (node "" rebuild --msvs_version=2015 ) Building the projects in this solution one at a time. To enable parallel build, please

Does the managed WinRT API include a way to compute an MD5 hash? [closed]

笑着哭i 提交于 2019-12-12 10:43:44
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . How can I compute MD5 in a Metro Style app that is written in C#? 回答1: There is lots of information on the locations of various namespaces for Metro at the Metro style app reference. I'm not sure about MD5, but

How can I make SQLite work on Windows 10?

拥有回忆 提交于 2019-12-12 10:31:21
问题 Yo, So I've been developing a Universal Windows Store app in Visual Studio 2013 on one machine, and wanted to continue developing it on an another machine running Windows 10 Technical Preview. The problem is that in Visual Studio 2015 Preview there is a new C++ Redistributable package version (2015), and the latest SQLite requires version 2013, so that particular reference is missing. I can build the project, it deploys successfully, but there is an exception saying it can't load sqlite3.dll.

Current Culture is wrong in WinRT

荒凉一梦 提交于 2019-12-12 09:56:51
问题 I am trying to format the datetime value using Current Culture in WinRT. But CurrentCulture property not seems to respect the System Culture. I tried the following two properties, System.Globalization.CultureInfo.CurrentCulture.DisplayName System.Globalization.CultureInfo.CurrentUICulture.DisplayName Both gives English (United States) even though I change the region in Control Panel. But this works perfectly fine for WPF. What am I doing wrong? 回答1: WinRT uses APIs exposed in Windows

How to enumerate through Colors in WinRT?

て烟熏妆下的殇ゞ 提交于 2019-12-12 09:45:43
问题 Enumerating through colors in non-WinRT is a common question with a simple answer. But, since the Colors 'ENUM' is actually just a class with static 'color' properties you can't use the standard approach in WinRT. How do you enumerate colors in WinRT? 回答1: Like this: Enumerating through Colors in WinRT requires using System.Reflection so you can fetch the static properties sub-classed in the container class 'Colors'. Like this: Dictionary<string, Windows.UI.Color> Colors() { var _Colors =