windows-runtime

multiple update statements throw “cannot open”

夙愿已清 提交于 2019-12-12 18:26:56
问题 I am getting a "cannot open" exception when I try to do multiple updates on the same table in the same transaction on SQLite in WinRT. I have created a sample application for this use case. Below is code where on clicking the first button, I am creating a table in a transaction, and on clicking the other button, I am trying to update the same record a second time. There, it throws a "cannot open" exception. app code: private SQLiteConnection getConnection() { var connection =

How to navigate between different html pages in Windows 8 Metro application using javascript?

纵饮孤独 提交于 2019-12-12 18:14:40
问题 How can i navigate between different html pages using javascript? I tried to use the below statement but it's not working. I have added a breakpoint and found that the below statement is executed.But still It doesn't display the page2.html . WinJS.Navigation.navigate("page2.html", null); Can anyone tell me why in what all scenarios it won't work ? One option I found was iframe which I haven't tried yet. 回答1: This API isn't a specific page navigator; it's about loading the location as defined

Background task is terminated next time app launches

为君一笑 提交于 2019-12-12 17:18:37
问题 I am playing with the Background Task code sample (c#) from MSDN. I modified the code a little bit to make it run longer, so that I can see if the application can get "re-attached" to the background task next time it is launched. My test shows that the background task always gets terminated when the application is launched for a second time. Here is the test detail: The background task is trigger by a SystemTrigger of type SystemTriggerType.TimeZoneChange , and it works as expected if: I

Implementing Book Page sliding animation in winrt [closed]

淺唱寂寞╮ 提交于 2019-12-12 17:03:19
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . How to implement Book page slide effect / Animation in winrt. Is anyone tried something similar please share the logic or code. Or else anyone guide me to implement the animation in my application. NB : I need the visual feedback through mouse move. I created the ordinary sliding

sqlite not recognizing generic list

荒凉一梦 提交于 2019-12-12 16:48:27
问题 On a windows store app project i get a JSON from a webservice that looks like this:http://paste2.org/jfMJ2AGA and i have these 2 classes public class media { public string id { get; set; } public string type { get; set; } public string image { get; set; } public string video { get; set; } public string snapshot { get; set; } public string url { get; set; } public string snapshot_url { get; set; } } public class artigos { public string menu { get; set; } public string submenu { get; set; }

Boolean to Visibility Converter in Win RT XAML not working first time

你离开我真会死。 提交于 2019-12-12 16:42:51
问题 Strange one when working in XAML for Windows RT (windows store app) today, when IsValid=true is set from my view model my boolean to visibility converter does not work the first time (my path remains hidden), but then does display correctly visibility subsequent times after that. Is this a bug, or what could be going on? I want to show my tick on IsValid=true including initial time: <Path x:Name="MyTick" Data="F1 M 45.12,5.49L 21.255,40.8L 20.4525,40.8L 0,23.2875L 5.775,15.7875L 19.2525,27.3L

Parse JSON ISO8601 date in C++/CX

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 16:36:04
问题 I have a date string coming from JSON "2012-08-01T15:42:06Z" and want to parse that in Windows Runtime. As far as I know, only COleDateTime is available to handle this. I can only get it to correctly parse the string when I take out the 'T' & 'Z' characters, but that adds an extra parsing step on my end. WORKS: COleDateTime dateTime; dateTime.ParseDateTime(L"2012-08-01 15:42:06", 0UL, 1033UL); FAILS: COleDateTime dateTime; dateTime.ParseDateTime(L"2012-08-01T15:42:06Z", 0UL, 1033UL); Anyone

How to get Device Id in Windows 8 Metro app

烈酒焚心 提交于 2019-12-12 16:31:40
问题 How to get the unique Device in Windows Store App (Metro App)? Can we use: Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken(null); Windows.System.Profile.HardwareToken hToke = Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken(null); IBuffer hardwareId = hToke.Id; IBuffer signature = hToke.Signature; IBuffer certificate = hToke.Certificate; DataReader reader = Windows.Storage.Streams.DataReader.FromBuffer(hardwareId); byte[] ar = new Byte[hardwareId

Animate dependency properties

浪尽此生 提交于 2019-12-12 16:08:10
问题 I have a custom user control that registrates a dependency property HoverHeight : public sealed partial class VirtualPointer : UserControl { public static readonly DependencyProperty HoverHeightProperty = DependencyProperty.Register("HoverHeight", typeof(double), typeof(VirtualPointer), new PropertyMetadata(1.0,OnHoverHeightChanged)); public double HoverHeight { get { return (double)GetValue(HoverHeightProperty); } set { SetValue(HoverHeightProperty, value); } } ... I use this property to

Using a Keep-Alive connection in WinRT's HttpClient class?

我怕爱的太早我们不能终老 提交于 2019-12-12 16:05:27
问题 Our WinRT app is incredibly slow when opening connections to our servers. Requests take ~500ms to run. This is blocking some of our scenarios. When debugging, we noticed that when Fiddler is active, the requests are much faster - ~100ms per request. Some searches later we understood that was because Fiddler was using Keep-Alive connections when proxying calls, which makes our proxied calls much faster. We double-checked this in two ways. We set UseProxy to false and observed that the request