windows-phone-7.1

How to parse HTML page data in Windows Phone 7?

穿精又带淫゛_ 提交于 2019-12-03 20:56:17
I want to do the below two tasks In Windows Phone 7 application. 1.Navigate to a web page (e.g.http://www.FlightsInd.com) and get the HTML page data.I wnat to ensure that all the Document data is completely downloaded. In C#.Net i am doing this using below code: WebBrowser objWB = new WebBrowser(); webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted); objWB.Navigate("http://www.FlightsInd.com") here once the DocumentCompleted event is fired it means all the data in that request is downloaded. 2.Parse HTML page elements data. In C#.Net i am

Mimicking WP7 Unlock Page Animation

偶尔善良 提交于 2019-12-03 20:36:37
In my app, i need to create wp7 page unloak animation(ie sliding up the picture and unloak the device) how i can implement that in my app either with the help of xaml or with the help of C# code. Rakesh R Nair These are the steps to achieve wp7 page unlock animation 1.Create the following storyboards <Storyboard x:Name="LockScreenSlideAnimation"> <DoubleAnimation Duration="0:0:1" To="-768" Storyboard.TargetProperty=" (UIElement.RenderTransform). (CompositeTransform.TranslateY)" Storyboard.TargetName="LockScreenGrid" d:IsOptimized="True"/> </Storyboard> <Storyboard x:Name="CoastGrid" >

How can I get the page title in WebBrowser control?

霸气de小男生 提交于 2019-12-03 11:11:05
How can I get the page title in a WebBrowser control when I navigate to different websites? xmlns xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" Properties starting with D DataContext DesiredSize Dispatcher DoubleTap xaml tag <phone:WebBrowser Name="browser" Height="760" VerticalAlignment="Top"></phone:WebBrowser> I had the same problem. @Akash Kava's answer is almost correct but this is the correct javascript to read the html title: String title = (string)browser.InvokeScript("eval", "document.title.toString()"); For me the following code works. The answers from

Implementing mutex and monitor in WP7 Mango

和自甴很熟 提交于 2019-12-03 10:09:28
what is the difference between mutex and monitor implementation. Can any one please help me to learn both of these for wp7(implementable code for wp7). Please try to add some code snippets that help me to understand the techniques in a simple way. Thanx in advance Stezma A mutex can lock across multiple processes. This would be useful in Windows Phone if you have a scheduled task running that needs exclusive access to a resource. In order to lock a mutex across processes the Mutex must be given a name. A monitor can lock only within a process. Mutex Example: Phone App Task: public class

POST Requests on WP7

佐手、 提交于 2019-12-03 09:01:17
I've been dying for about 6 hours trying to figure out how to make a regular POST request in WP7 , I tried the answers of similar questions posted here and on many other places, I also tried many different APIs POST request, they all lead to one certain problem, The remote server returned an error: NotFound. it seems like everytime there's something missing. So, if you please someone show us how to properly get a POST request right in this WP7 I use this to post to facebook without any problem: HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(requestUrl); request.Method = "POST";

Group Listbox for Windows Phone 7?

前提是你 提交于 2019-12-03 08:56:57
I'm looking for a way to group items similar to the way the applications below have it for there grouping. Is it possible to create a group listbox using View Models? I plan on having multiple customer groups for example: "AAA" (Group) -- "XDN" (Contact) "NCB" (Group) -- "XDN" (Contact) etc... I don't want it to be seperated by letters but instead by group names. Is this possible? Thanks. Nothing prevents you from creating a custom ordered collection that suits that precise purpose. Here's the collection type I usually use for it, when integrating it with the LongListSelector in the

Unable to use System.Threading.Tasks in WP7 application

可紊 提交于 2019-12-03 06:23:09
I recently completed a library for a online storage website that allows for me to call the PHP exposed RESTs between the file storage website and a windows form desktop client + Outlook add in. Now, here is a question that has the code sample for the most basic operation in the library: Gracefully killing a TPL Task . I'm linking it for reference only. My next objective is a Windows Phone 7 client. I knew I simply cannot use the same library as I need a different kind of class library for a WP7 app. So i went forward and created a WP7 version of the library hoping most of the stuff will work.

Json.net slow serialization and deserialization

强颜欢笑 提交于 2019-12-03 05:11:44
问题 I have a problem - Json.Net serializing my objects realy slow. I have some basic class: public class authenticationRequest { public string userid; public string tid; public string token; public string platform; public string version; } And I'm serializing it with string jsonDataToSend = JsonConvert.SerializeObject(dataToSend); This operation takes about 1900 ms. In compare to info from Json.net CodePlex page: It takes a really long time. For test purposes I swapped my class for a simple

Windows phone 7 Mango Development Links

断了今生、忘了曾经 提交于 2019-12-03 00:52:06
I am new to Windows Phone development. I am starting by learning C# and Silverlight. Does anybody have any links/resources for learning Windows Phone Mango? Rakesh R Nair Try out these: http://indyfromoz.wordpress.com/windows-phone-7-resources/ http://www.reddit.com/r/wp7dev/ http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx http://www.kunal-chowdhury.com/2011/06/windows-phone-7-mango-tutorial-24-local.html http://www.windowsphonegeek.com/ArticleIndex http://www.silverlight.net/ http://channel9.msdn.com/blogs/egibson/windows-phone-7-jump-start-session-1-of-12-introduction http:/

Is there any way to get XAML element by Tag property?

筅森魡賤 提交于 2019-12-02 21:46:25
问题 Is there any way to get the XAML element by its tag value?? My code is like this : <Grid Tap="StackPanel_Tap" Tag="{Binding Type}" > <Border BorderThickness="0" CornerRadius="0" BorderBrush="White" Width="100" Height="100" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="1" > <Image Tag="{Binding Type}" Source="{Binding Location}" Opacity="1" Width="100" Height="100" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center" UseLayoutRounding="True" > </Image> <