windows-phone

IE bug responsive [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-14 02:05:30
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I've a problem with my responsive design in IE (mobile resolution). I've just been busy with a correct view in Android and iOS phones. But now I've

Change ListBox item visibility

痴心易碎 提交于 2019-12-13 21:12:27
问题 I have List box with multiple items in it like TextBlock,Image etc... Now in the XAML file all the items visibility will be collapsed, in my .CS file based on a condition i deciding which item to display like i need to display only TextBlock or Image, but since all items visibility is collapsed by default, how to dynamically change the ListBoxItems visibility and set the data or image to the items? Here is my XAML code: <ListBox Name="listBox" HorizontalContentAlignment="Stretch"

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

Windows Phone get value from url with xml code

五迷三道 提交于 2019-12-13 19:46:16
问题 I am trying to get live currency rate from this url: http://www.webservicex.net/CurrencyConvertor.asmx/ConversionRate?FromCurrency=GBP&ToCurrency=LTL This is what I tried: public void getRate(string howmuch, string from, string to) { int hmuch = int.Parse(howmuch); string url = "http://www.webservicex.net/CurrencyConvertor.asmx/ConversionRate?FromCurrency=GBP&ToCurrency=LTL"; var xml = XDocument.Load(url); var result = xml.Descendants("double"); btn.Content = result; } I get an error from

Video playback of a file stored in Media Library

流过昼夜 提交于 2019-12-13 19:35:56
问题 Is there an API which supports playback of Video files which are stored in the Media Library on a Windows Phone 8? Until now I have only been able to find the option of playback from Isolated storage as mentioned on the following link: http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394041(v=vs.105).aspx 回答1: It seems there is no way to access videos stored in the Media Library : From StackOverflow : So there is no way to access videos on Windows Phone 8? Windows Phone 8: Media

Isolated storage reading data : System.Xml.XmlException: Unexpected XML declaration

我与影子孤独终老i 提交于 2019-12-13 19:20:03
问题 I am writing the data and reading it, i am getting the exception as "System.Xml.XmlException: Unexpected XML declaration" ,i am unable to figure it out whats the issue. I have also added the exception that its printing.Please help me to solve the issue. Here my code: public static void WriteTopicState(Topic topic) { try { using (var store = IsolatedStorageFile.GetUserStoreForApplication()) { using (StreamWriter sw = new StreamWriter(store.OpenFile("Stats.xml", FileMode.Append, FileAccess

Redirect Debug.WriteLine stream to a textblock

人盡茶涼 提交于 2019-12-13 15:13:33
问题 I would like to redirect the Debug stdout stream to a textblock. Is there an easy way to do that ? Thanks. 回答1: Add a custom Tracelistener to output you want to listen to. Here's a simple class which extends TraceListener and takes the TextBox which it is to update in the constructor class TextBoxTraceListener : TraceListener { private TextBox tBox; public TextBoxTraceListener(TextBox box) { this.tBox = box; } public override void Write(string msg) { //allows tBox to be updated from different

How to Read contacts in Xamarin forms

吃可爱长大的小学妹 提交于 2019-12-13 14:56:04
问题 I am a beginner in Xamarin Platform, & trying to read contacts in xamarin forms. Even tried using Xamarin.Mobile, But it gives lots of error. Found 1 more plugin i.e. Xamarin.contacts https://github.com/jamesmontemagno/Xamarin.Plugins/tree/master/Contacts but no relevant example is given. Please help with a relevant example using Xamarin.contacts for all 3 platforms Thanks in advance :) 回答1: Just keep in mind Xam.Plugin.Contacts is currently in alpha version. This is my implementation. Notice

How can I locally detect time cheat in my windows phone 8 app?

大兔子大兔子 提交于 2019-12-13 14:44:17
问题 Is it possible to check if as user has set the time settings as "set automatically" ? We need to use the app in offline mode, so the solution must not involve network communication. 回答1: I don't think that there is a global setting that can be viewed or modified by an app. 来源: https://stackoverflow.com/questions/29644577/how-can-i-locally-detect-time-cheat-in-my-windows-phone-8-app

Save pictures to custom folder in media library

ⅰ亾dé卋堺 提交于 2019-12-13 14:11:34
问题 WhatsApp now saves pictures to a custom folder named "WhatsApp" in the media library. Is WhatsApp using a undocumented API or is this possible for every developer? Right now I am only aware of the possibility to save pictures to the "Camera Roll" or to the "Saved Pictures". 回答1: It appears WhatsApp has special permission to do that as no current APIs for Windows Phone 8 (with GDR3) allow you to specify a folder name. The hope is that Windows Phone 8.1 will introduce new APIs for both saving