windows-phone-8

Prevent Application Bar from scrolling up Layout

坚强是说给别人听的谎言 提交于 2020-01-06 15:31:36
问题 I am building a windows phone 8 application with an ApplicationBar to keep the shortcuts and some menu options for the application. I read somewhere that that Height for ApplicationBar is 72px. So I tried with this code <Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="72"></RowDefinition> </Grid.RowDefinitions> <ScrollViewer Grid.Row="0" Name="scrollViewer" Width="Auto" VerticalAlignment="Top" > <Grid x

Namespace missing in Windows Phone 8.1 runtime app project

北慕城南 提交于 2020-01-06 14:33:32
问题 I am writing a Windows Phone 8.1 runtime app. The InkPresenter class which was available in Windows Phone 8 is not there in 8.1. Now, 8.1 should be backward compatible with 8 and that all the apps that used the InkPresenter class in Windows Phone 8 can run on 8.1 too. So my guess(and I can be wrong in assuming this) is that the Inkpresenter class should be there in Windows Phone 8.1 too but might be under a different namespace. Otherwise, how could the apps of Windows Phone 8 using the

WebBroswer query in Windows Phone

妖精的绣舞 提交于 2020-01-06 14:32:26
问题 I've got the following code, but when I Build it I get an error on WebBrowserDocumentCompletedEventArgs telling me the type or namespace could not be found. I've been searching the web and attempting to add DLLs for over an hour. Can anyone help? private void b_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { WebBrowser b = sender as WebBrowser; string response = b.DocumentText; // looks in the page source to find the authenticity token. // could also use regular exp

Convert ImageSource to Base64String - WP8

只愿长相守 提交于 2020-01-06 14:16:49
问题 am working on WP8application, I have few images in location Resources\Graphics\ i am trying to display images from these folder, but its not picking the path. Here is my code : <img src=\"/Resources;component/Graphics/"+ImageName).Append("\" ") this is in my string which i am using in my WebBrowserControl. WebBrowserControl.NavigateToString(html); // here html is a string which has all the html code in it. But its not display the images. So i want to convert the ImageSource -- Resources

Intercept a toast notification windows phone

孤者浪人 提交于 2020-01-06 13:54:26
问题 I am trying to intercept a toast notification from a facebook app to make my own customized app but I cant seem to find any information on how to intercept a toast notification from a 3rd party app from my own app. Is it possible to intercept a toast notification from some other app in my app on windows phone? 回答1: No, it's not possible. It looks like a scam for me. Use your own notifications from facebook. 来源: https://stackoverflow.com/questions/21071136/intercept-a-toast-notification

Parse json with different types value (Newtonsoft.Json)

泄露秘密 提交于 2020-01-06 13:37:12
问题 Help me parse the json with Newtonsoft.Json . { "_id": 160, "location": { "type": "Point", "coordinates": [43.59043144045182, 39.72119003534317] }, }, { "_id": 161, "location": { "type": "LineString", "coordinates": [ [43.58780105200211, 39.719191789627075], [43.58817794899264, 39.719465374946594] ] }, }, { "_id": 152, "location": { "type": "Polygon", "coordinates": [ [43.590524759627954, 39.71930980682373], [43.590474249766544, 39.71926689147949], [43.59043151061995, 39.71934735774994], [43

Access to cookies or WebBroswer class from phonegap plugin running windows phone

∥☆過路亽.° 提交于 2020-01-06 12:41:23
问题 I have to manage cookies (delete it) from my phonegap app running on a windows phone 8. I've created a C# phonegap plugin. On the web, I've found that WebBroswer class can be the way to delete the cookies of my webView. But I cannot find the exact way to access to this class from my phonegap plugin. The phonegap plugin in windows phone 8 extends the "BaseCommand" phonegap class. Any help will be really appreciated. Julien T. 回答1: This might be what you're looking for: http://github.com

How to listen to the scrolling event of scrollviewer in windows phone 8?

大憨熊 提交于 2020-01-06 04:18:45
问题 I have developed for windows 8/8.1. Its scrollviewer generates events while scrolling like - ViewChanging/ViewChanged. I couldn't find any such event for scrollviewer in windows phone 8. How can i listen to when the scrollviewer is scrolling in WP8? I am trying to look for method similar to -ScrollViewDidScroll() of iOS development. 回答1: Have tried to use this event? - ScrollViewer.ViewChanged event 回答2: If you are using a ScrollViewer, or a ListBox you can listen to the LayoutUpdated event

How to append new javascript to current HTML WebBrowser Control

有些话、适合烂在心里 提交于 2020-01-06 03:46:06
问题 I am trying to insert my own javascript to present HTML(index.html - present in IsolatedStorage) at runtime. To get call from javascript to c# webBrowser_ScriptNotify . How I will achieve this, here is my attempts to achieve this. string script = " <script type=\"text/javascript\"> function scriptNotify() { window.external.notify(\"runtime\");}</script>"; byte[] param = GetBytes(script); webBrowser.Navigate(new Uri("/index.html", UriKind.Relative), param,"Content-Type: application/x-www-form

HttpClient Portable returns 404 notfound on WP8

一世执手 提交于 2020-01-06 03:17:12
问题 I'm porting a W8 application that uses httpclient library to connect to our server. The main purpose of the application is to send images, but when I try to send pictures on my WP8 I got a 404 not found error (seems that Microsoft remapped to 404 a lot of errors), if i check the server logs, I can see that the server recevied about 1/4 of the image before failling. The same function seems to works fine in my W8 application (didn't tested on 3G), and works on WP8 if I use Wifi connection. I