windows-phone-7

How to Use ProgressRing in Windows Phone 8

醉酒当歌 提交于 2020-01-02 05:07:07
问题 In referencing http://briandunnington.github.io/progressring-wp8.html for a fun new implementation of a progress indicator, I would like to adapt the ProgressRing control to Windows Phone 8. I am not sure though how exactly to add everything in the MainPage of my application. What I have is as follows MainPage.xaml <phone:PhoneApplicationPage.Resources> <!-- Default style for Windows.UI.Xaml.Controls.ProgressRing --> <Style TargetType="controls:ProgressRing"> <Setter Property="Foreground"

Windows Phone 7 - dynamically set button background color from Hex? [duplicate]

故事扮演 提交于 2020-01-02 02:22:28
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Change custom color for Rectangle.Fill or Grid.Background I'm trying to dynamically set a button background color from Hex in Windows Phone 7. SolidColorBrush myBrush = new SolidColorBrush(); myBrush.Color = ColorTranslator.FromHtml("#123456"); pbMood.Background = myBrush; ColorTranslator seems to not be available. That line gives a compiler error that it isn't found. Am I looking in the wrong place (a different

Get list of files from SkyDrive folder (Windows Phone)

折月煮酒 提交于 2020-01-02 02:19:04
问题 Does anyone know how to get a list of files for a particular SkyDrive folder? Currently I'm using the following snippet to try and get the files for the root SkyDrive folder: var client = new LiveConnectClient(e.Session); client.GetCompleted += (obj, arg) => { ... } client.GetAsync("me/skydrive"); but all it returns is a Result dictionary that contains a lot of info but no list of filenames! 回答1: According to OneDrive core concepts (previously SkyDrive) you have two options to list files,

How to force to use light theme in Windows Phone 7?

拟墨画扇 提交于 2020-01-02 02:03:39
问题 In my Windows Phone 7 app, I want to use the light theme, no matter what theme the user sets in the phone. How to do that ? Do I need to custom the style or theme ? I just want the default light theme. Thanks 回答1: Jeff Wilcox offers a good way to do this using a theme manager he developed. http://www.jeff.wilcox.name/2012/01/phonethememanager/ 回答2: There is a nice way of replacing the default brushes. Saves you setting Forecolor everywhere. http://www.designersilverlight.com/2011/01/17/theme

Vorbis decoder for Windows Phone 7

江枫思渺然 提交于 2020-01-01 23:32:10
问题 Anyone know of a vorbis decoder library that can be used on Windows Phone 7? The lack of native code interop make re-using any of the native code implementations difficult (impossible?) but if there are tricks to do that, I'm open to that as well. 回答1: There is a managed implementation for mono called csvorbis, it includes a sample which outputs a wav file this didn't need many changes to work with XNA's SoundEffect class. I did a whole track at once, this took a few seconds in the emulator

parsing xml content on windows phone 7 using tcp sockets

删除回忆录丶 提交于 2020-01-01 19:56:08
问题 I am working on an application for windows phone 7. I have a to parse xml stream using tcp sockets in c# silverlight. I am trying it using xmlreader and memory stream but it is of no help. When memory stream is updated by a receive async call, xmlreader has no impact of that reader. Please help me on how to parse streaming xml from sockets. I have a xmlReader such that: memoryStream= new MemoryStream(); _xmlreader = XmlReader.Create(memoryStream, xmlReaderSettings, context); now memoryStream

Can I read the WiFi SSID, MAC Address, RSSI in Windows Phone 7?

天涯浪子 提交于 2020-01-01 19:46:33
问题 I want to read certain WiFi information such as the SSID, MAC address and RSSI (Signal Strength) in my Windows Phone 7 application programmatically. If it's possible, how can I read this information on a HTC HD 7? 回答1: With the current SDK, you can't get any of that information. You can get the type of network the user is on via the NetworkInformation class, but nothing about the SSID/MAC/RSSI. 回答2: I found this and since still waiting for my Samsung Focus to confirm I asked mr Andy Pennell

Virtualizing WrapPanel for WP7

冷暖自知 提交于 2020-01-01 19:26:14
问题 I need to create a wrap panel with my facebook friends, meaning the itemcount is over 400, and it takes 5-10 seconds for all the items to load. <ListBox.ItemsPanel> <ItemsPanelTemplate> <toolkit:WrapPanel/> </ItemsPanelTemplate> </ListBox.ItemsPanel> This code would be good, but it puts all the elements in 1 Row ...: <ListBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> Any ideas how to add item wraping to

how to add context menu to WebBrowser wp7?

一个人想着一个人 提交于 2020-01-01 18:27:27
问题 Is it possible to add Context Menu to WebBrowser in WP7?(like IE) silverlight toolkit Context Menu not support WebBrowser!!! 回答1: The WebBrowser does not support context menus and doesn't function like other Silverlight controls. Therefore, it's not possible to directly add a ContextMenu. However, there are workarounds possible. One of them is to use the InvokeScript method. You should read this thread. Apparently the code at the bottom of the thread works. Note: GINternet is the WebBrowser

HttpWebRequest for ShoutCast on Windows Phone7

谁说我不能喝 提交于 2020-01-01 14:36:15
问题 I tring to stream shoutcast stream in my window phone 7 app I start an async HttpWebRequest like this //Init Request HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create("http://ACommonoShoutCastUrl:8000"); myHttpWebRequest.Headers["Icy-MetaData"] = "1"; myHttpWebRequest.UserAgent = "WinampMPEG/5.09"; myHttpWebRequest.AllowReadStreamBuffering = true; //Call // Create an instance of the RequestState and assign the previous myHttpWebRequest object to its request field.