windows-phone-8.1

Async: How to break on exact line of code that has thrown the exception?

ぃ、小莉子 提交于 2019-12-14 00:52:39
问题 Say I have the following code: async void buttonClick(object sender, RoutedEventArgs e) { await nested1(); } async Task nested1() { await nested2(); } async Task nested2() { await nested3(); } async Task nested3() { await Task.Delay(1000); throw new Exception("Die"); // <-- I want Visual Studio to break on this line } How can I make Visual Studio break on the indicated line only when the exception is unhandled ? Normally when the exception is thrown, Visual Studio will break here in App.g.i

Style.Setter with Binding in Universal Windows Applications

穿精又带淫゛_ 提交于 2019-12-13 21:34:41
问题 As stated in the question below, Setters cannot contain Bindings in Windows RT/Phone 8.1 => Binding SelectedItems in ListView to a ViewModel in Windows Phone 8.1 Has this changed in the new Universal Windows Applications? Still not Bindings in values? 回答1: OK, you can't bind to the DataContext using the normal ways, but you can do it using other (smart) methods: Please, look at this. It provides a "helper" that allows to bind to the DataContext with a Setter. http://dlaa.me/blog/post/10089023

How does LocalSettings work?

风流意气都作罢 提交于 2019-12-13 21:30:29
问题 i'm struggling myself with a question - how does in fact LocalSettings work. It's an ApplicationDataContainer class, but is this some kind of a file? Probably yes, but when it's saved? For example we can save some data like this: localSettings.Values["exampleSetting"] = "Hello Windows"; but is it saved to file just after we add/change the Value or it's held somewhere in the memory and saved when App is being Suspended/Terminated? And the main purpose of the question: Do I've to guard the

Windows Phone 8.1 HubApp + HtmlAgilityPack

邮差的信 提交于 2019-12-13 21:12:37
问题 I know that using HAP in windows phone apps is very problematic, but I very need to. So the problem is that when I add System.Xml.XPath from silverlight 5 or 4 I get "Xaml Internal Error error WMC9999". It's got to be noticed that the version of HAP is 1.4.6 but not 1.4.9 (tha latest one), because it cannot be installed from NuGet (just doesn't add reference) and I've found no links to download it manually. In old windows phone 8 silverlight app everything worked great. Please, help. 回答1: Use

How to register my app so that it appears in the phote edit list in windows phone 8.1 runtime

空扰寡人 提交于 2019-12-13 21:08:23
问题 How can I register my windows phone 8.1 runtime app so that it appears in the poto edit list? The only way I see is to create an app for windows phone 8.0 silverlight (there is a template in VS 2013) then edit the wmappmanifest.xml and then upgrade the project to wp81. But I think there must be another way to achieve that directly in a wp81 runtime project. Does anyone know how to do that properly? 回答1: According to MSDN article Migrating your Windows Phone 8 app to a Windows Runtime XAML app

kernel32.dll is missing in Windows Phone 8.1 app thru NHunspell

删除回忆录丶 提交于 2019-12-13 21:05:22
问题 I'm trying to use NHunspell library in my windows phone app (available thru NuGet package). In the Hunspell constructor i'm getting this error: Additional information: Unable to load DLL 'kernel32.dll': The specified module could not be found. Does anyone know how why it happens and how can i fix it? i'm running my app in the emulator, maybe this cause the issue? The same code works fine in a simple desktop app, so i guess it is something with the project refrences or stuff like that... And

Get facebook total like count of a user

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 20:36:57
问题 I am using windows phone 8.1. I am trying to get total like count of a user. I have tried this link link 133231234567890/?fields=likes.summary(true).limit(0) but it returns only id 133231234567890?fields=likes.summary(1) this returns all the likes not total like count. 133231234567890/likes?summary=1 this also returns all the likes with their name , but not what i want. I am testing it on Graph api explorer with my domo facebook id, and i have enabled the required permissions ,but i am unable

Pushnotifications in windows phone app 8.1?

放肆的年华 提交于 2019-12-13 20:08:23
问题 I want to send pushnotifications to windows phone. string subscriptionUri = "https://hk2.notify.windows.com/?token=AwYAAAAqksei6yWvmlcV8RmESRNrXotwCWV0AY9PSOtmgpIo%2bNwq67tkYjG7450r%2bUKpLwxri%2bO7Re9%2f8qmZDAc3TmTlMOaONVqq9ogCKONX2oWe%2fVq%2bT9tIxEllJW3tnKJEfNM%3d"; //string subscriptionUri = "http://s.notify.live.net/u/1/hk2/H2QAAACfgMkOSS8jNp_XgLamnXFqQrk6g8L6pRJHsQxvppe8-lD4EgCu8LcwdtuDIGnY78tjyaL1lsFxLjWl5s-Sgum5tjBQMk-9emm73LJa9125iECyFCoPb5erRBRwGAgNv2o/d2luZG93c3Bob25lZGVmYXVsdA

Is it possible to access bing vision programmatically

别等时光非礼了梦想. 提交于 2019-12-13 20:08:10
问题 Hey I was wondering if it was possible to spin up Bing vision from within my application and get the returned picture. I know I can spin up the camera, but is it possible to spin it up with the bing lense? 回答1: You can open lenses only as this Windows Phone app (that opens Bing Vision). Use this code to open LensPicker: await Launcher.LaunchUriAsync(new Uri("ms-lenspicker:{5B04B775-356B-4AA0-AAF8-6491FFEA5685}", UriKind.Absolute)); 来源: https://stackoverflow.com/questions/27227962/is-it

How to bind DataTemplate width to parent and be able to update viewmodel property?

我的梦境 提交于 2019-12-13 19:27:53
问题 I have a ListView named MeditationDiaryListView with two columns and two headers. I have the width of the DataTemplate in the listview equal to the width of MeditationDiaryListViewHeaders : <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition /> </Grid.RowDefinitions> <Grid Name="MeditationDiaryListViewHeaders"> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*" /> <ColumnDefinition Width="1*" /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Text="Start time"