windows-phone-7.1

Custom live tile rendering issue on Windows Phone (7/8)

荒凉一梦 提交于 2019-12-06 02:13:42
问题 In my Windows Phone app's main page, users can click a button to do some stuff and that will trigger the live tile to update. The problem I am having is, if the user clicks the button and then hit the phone's Back button really quickly, the live tile sometimes will not render properly. This issue rarely happens, but it does happen and when it happens it just looks bad... The way I implement the live tile is, create a user control that looks exactly the same as the live tile and then save it

Windows Phone 7 receive UDP packet (broadcast or unicast) over wifi

时光毁灭记忆、已成空白 提交于 2019-12-05 20:49:57
I have watched for several days the various forums regarding Windows Phone 7 however none gave me a definitive answer. So far I have not been able to receive a UDP packet (neither broadcast nor unicast) sent from a computer connected over wifi to a Windows Phone 7 device (running on emulator). Apparently UDP unicast should be supported and the code below runs correctly, however no UDP packet is received form the phone. I hope someone can correct the below code. Notice the below code follows all suggestions so far given on other forums, namely: Send a packet first to the intended destination

Remove back entry in windows phone mango

风格不统一 提交于 2019-12-05 11:28:55
how can i remove back stack in wp7.1.I have 3 pages and say A,B,C when i navigate from A to B and in B there is a button to add new contact detail.when i click it page navigate to page C and In page C there is a Done button and when i clicked done button the page navigate to home page that is the page A and when i clicked back button from page A.the page C is visible since it is not finished.How can i clear the back stack.Also let me know is there any method to clear a particular page from the back stack.if the back stack contain page A,B,C,D and i have to clear the last two pages that is C

Mimicking WP7 Unlock Page Animation

前提是你 提交于 2019-12-05 04:47:48
问题 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. 回答1: 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=

How to disable the pivot flick event?

一曲冷凌霜 提交于 2019-12-05 04:43:14
问题 I'm designing a reading app with pivot control. When coming from the first page, I want to disable the right-flick event so that the user can just flick left to get to the next page. When coming from the last page, I want to disable the left-flick event. There is a lockablePivot control in Silverlight Toolkit, but this control will disable all the flick event. Would anybody give me some suggestions. 回答1: Have you looked at the LockablePivot Control in microsoft silverlight toolkit? http://www

The column name is not valid. [ Node name (if any) = t0,Column name = version ]

孤街醉人 提交于 2019-12-05 03:34:41
I am facing issue while trying to query SQLCE database in my Windows Phone Mango application. I get exception when I execute foreach (var item in myDataContext.MyTable.Select(item => item)) The column name is not valid. [ Node name (if any) = t0,Column name = version ] Strangely, when I execute query based on any individual column, it works fine foreach (var item in myDataContext.MyTable.Select(item => item.SomeColumn)) Any idea what could be wrong here? I installed LINQ to SQL Debug Visualizer to find out what query exactly is being generated behind the scene and it was {SELECT [t0].[version]

Restrict Back navigation in Pivot

拥有回忆 提交于 2019-12-04 22:09:28
I have Created a Pivot Page containing 8 Pivot items.And I Dont want my first Pivot Item to navigate backwards Mean while when it reaches the eigth page it should navigate to some other page.And also is it possible to write my own function for swipe event in pivot page. First, I agree with Gambit's comment that this is non-standard behavior and generally goes against a user's reasonable expectation of UI behavior. I would caution against it without a compelling reason. That said, you can stop the looping on the pivot in the SelectionChanged event using the AddedItems and RemovedItems

access to input data from microphone in WP7?

蓝咒 提交于 2019-12-04 16:11:52
How can I access to input data from microphone in Windows Phone 7.0 or 7.1? (like a Volume Meter), i want to detect start and end input data from microphone. Have a look at How to: Access the Microphone in a Silverlight Application for Windows Phone for basic usage. If you want to detect the start and stop of certain audio input you'll have to parse/process the returned stream yourself. This blog post also has a great tutorial (and code) showing how you access the microphone in WP7 via XNA: http://blogs.msdn.com/b/mikeormond/archive/2010/08/27/xna-from-silverlight-on-windows-phone-7-the

What is x-wmapp2 and x-wmapp1?

半腔热情 提交于 2019-12-04 14:16:04
I am getting x-wmapp2:/app/www/index.html as output when I try to console.log(windows.location.href); in my Windows Phone PhoneGap app when I try to run in emulator. When I try to run actual device, it gives x-wmapp1:/app/www/index.html . What is x-wmapp2 and x-wmapp1? What is the difference between them? I also find there exists x-wmapp0 also. Could someone explain this? It appears to be the Scheme of the WebBrowser element whenever one is opening locally-stored web pages. Actually, it starts from x-wmapp0 and is incremented for every new instance of WebBrowser . Whenever the app is started

POST Requests on WP7

最后都变了- 提交于 2019-12-04 14:15:51
问题 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 回答1: I use this to post to facebook without any