windows-phone-7.1

Windows Phone 7.1 “Send To” functionality?

微笑、不失礼 提交于 2019-12-13 15:24:38
问题 I've been asked to write a prototype application in C# for Windows Phone 7.1 that can take data via functionality like Android's "Share" function and then process such data. For example: The user opens the mail application and views a PDF attachment. For this attachment, he presses the application's "Share" button, selects my application from a list of registered handlers and my application can process the PDF file. Questions: Is such "Share" functionality available in Windows Phone 7.1 at

Updating live tiles from Background audio agent?

我怕爱的太早我们不能终老 提交于 2019-12-13 15:02:33
问题 Updating live tiles from Background audio agent? I know that you can update Liva Tils with ShellTile of PeriodicTask. is it possible to update the live tiles of background audio agent? I want to do, for example, when the track changed to the title track on the live tile. Is this possible? Just did not want to do would have been a few applications of background agents: agent audio and even periodic background agent. Would not this heavy load and impact on battery life? Update:

Use built-in local database or Isolated storage

对着背影说爱祢 提交于 2019-12-13 13:59:31
问题 Local database is now built into Windows Phone 7.5 Mango. I'm considering a scenario of storing a few unrelated collections with data. Using the local database is pretty straightforward, while using Isolated storage requires a bit more custom development. There are also some alternative solutions like FileDb, mentioned in a pre-mango discussion here https://stackoverflow.com/a/6954250/346995 What would be the best solution of local database/Isolated storage with regards to simplicity and

Forcing windows Phone to use WIFI connection

扶醉桌前 提交于 2019-12-13 13:18:07
问题 How to force windows phone to use wifi. The issue is that when i connected to Zune, it is using the local machines Ethernet connection. I need to disable this through code. How i can achieve this in windows phone 7. 回答1: You can't. The best thing to do is to disconnect the USB cable because the phone will still think that it is connected (it is still able to ping Zune and does not receive the same network connection changed events) This makes it impossible to debug so I resolved to add

WP7.1 backward compatibility

房东的猫 提交于 2019-12-13 09:27:28
问题 I have installed mango SDK in my machine and I want to create an application which runs on both Windows Phone OS 7.0 and Windows Phone OS 7.5 devices. Also I need to implement many of the mango features in the same application. Is it possible ? if yes please tell me how to do the version checking, because based on the version we need to implement the mango features. 回答1: You'll have to maintain two different versions. You can't compile one XAP that supports both versions at the same time. The

Conversion of PNG image to base64 in Windows phone7.1

白昼怎懂夜的黑 提交于 2019-12-13 08:26:03
问题 I want to convert a PNG image found in a path to base64 for a html page in Windows phone7.1.How can it be done? Stream imgStream; imgStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("NewUIChanges.Htmlfile.round1.png"); byte[] data = new byte[(int)imgStream.Length]; int offset = 0; while (offset < data.Length) { int bytesRead = imgStream.Read(data, offset, data.Length - offset); if (bytesRead <= 0) { throw new EndOfStreamException("Stream wasn't as long as it claimed"); }

Resize image and change background Color

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 05:52:37
问题 I finish from resizing image but how can I change Background Color (Change black Color)? Like this image: http://i.stack.imgur.com/2Y3xG.jpg BitmapImage img = new BitmapImage(); img.SetSource(e.ChosenPhoto); Image image2 = new Image() { Width=640,Height=640,Visibility=Visibility.Collapsed,Source=img }; WriteableBitmap wb1 = new WriteableBitmap(image2,st); wb1.SaveJpeg(ms1, 640, 640, 0, 100); 回答1: you must place your Image control inside a container control (like a grid) and change the

Windows Phone 7.1 - Media Element not playing

牧云@^-^@ 提交于 2019-12-13 04:45:31
问题 Windows Phone 7.1/7.5/Mango app. I have four different MediaElements on the page. One is played upon Load of the page. Rest 3 I Play() it upon leftMouseButtonClick on different image element on the page. I call Stop() in the MediaEnded event handler. Issue: The last mediaElement in the top-down order won't play. So it's not the element itself bu the order of the element that is behaving weird. I have read this where it talks about a single MediaElement which I don't understand. Does anyone

Passing a parsed string into a click event handler

…衆ロ難τιáo~ 提交于 2019-12-13 03:22:05
问题 I'm parsing data from an xml file using WebClient. In DownloadStringCompleted method I have a string, which is parsed, that I want to pass into a click event handler. I want the click event to open my app's Marketplace details. For that I need a that parsed string which is a GUID and place it in the event handler. I tried to google it and found nothing. I just can't figure out how to do it. Any help will be highly appreciated. Thanks! Here's the code: public void client

Collapse opened expanders in `Datatemplate`, when we open new one

≡放荡痞女 提交于 2019-12-13 00:37:57
问题 My view works like this. I have an Observable Collection, which contains objects put on the list. By clicking on any item, I can open an expander related to that item. Here is the question: How can I collapse (close) the previously opened expander when I open another one? I don't want to have a situation where multiple expanders are opened at the same time. My WPF code looks like this: <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <controls:Pivot> <controls:PivotItem> <ListBox