windows-phone-7

Sqlite on both Windows Phone 7.1 and Windows Phone 8

删除回忆录丶 提交于 2019-12-30 02:08:09
问题 I'm developing an app for Windows Phone 7.1(7.5) - 8 (Must work for both) , in which database connectivity is required. This Application is already realized for Iphone and Android, so I have to use there Database file to the database structure was the same for all applications. Sqlite is used as the database . All Sqlite Clients for Windows Phone are out of date and not supported any more. http://dotnetslackers.com/articles/silverlight/Windows-Phone-7-Native-Database-Programming-via-Sqlite

Cannot get cookies in wp7 using HttpWebRequest

只愿长相守 提交于 2019-12-29 09:22:33
问题 I'm trying to save cookies in a post request. Here is my code : CookieContainer myCookieContainer = new CookieContainer(); HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(url); myHttpWebRequest.ContentType = "application/x-www-form-urlencoded"; myHttpWebRequest.UserAgent = userAgent; myHttpWebRequest.CookieContainer = myCookieContainer; myHttpWebRequest.Method = "POST"; byte[] postdata = encoding.GetBytes(submitString); myHttpWebRequest.BeginGetRequestStream(async1 => {

Cannot get cookies in wp7 using HttpWebRequest

≡放荡痞女 提交于 2019-12-29 09:22:11
问题 I'm trying to save cookies in a post request. Here is my code : CookieContainer myCookieContainer = new CookieContainer(); HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(url); myHttpWebRequest.ContentType = "application/x-www-form-urlencoded"; myHttpWebRequest.UserAgent = userAgent; myHttpWebRequest.CookieContainer = myCookieContainer; myHttpWebRequest.Method = "POST"; byte[] postdata = encoding.GetBytes(submitString); myHttpWebRequest.BeginGetRequestStream(async1 => {

How to set Page Navigation from Listbox to another Page?

五迷三道 提交于 2019-12-29 09:08:08
问题 Hi am using XAML file given below.I want to Navigate Listbox selected item to another page. <ListBox x:Name="NotchsList11" Grid.ColumnSpan="2" Margin="0,0,0,0" Grid.Row="3" HorizontalAlignment="left" Width="720" Grid.RowSpan="2"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Margin="0,0,0,0" Grid.ColumnSpan="3" x:Name="ControlsPanel" Grid.Column="0" Height="215" VerticalAlignment="Top"> <StackPanel Background="#eb2427" Orientation="Horizontal"> <TextBlock Grid.Row="1" FontFamily="Calibri"

remove button highlight on press in silverlight

会有一股神秘感。 提交于 2019-12-29 09:04:45
问题 I have a button to which i add a image as its background but when i press the button i get a square on the background of the button (highlight). How can i remove this? <Button VerticalAlignment="Top" HorizontalAlignment="Left" BorderBrush="Transparent" Click="FirstCubeSelected" x:Name="cube1Button" Padding="0" Margin="1,0,-1,0"> <Image x:Name="buttonImage" Source="/images/cub2onbtn.png" Width="176" Height="176" /> </Button> I usually do this in expression blend but i don't have access to it

Implementing playlists with songs from phone storage [windows phone]

帅比萌擦擦* 提交于 2019-12-29 09:03:41
问题 I have been struggling with an issue with my media player windows phone (7) application. The problem is that I can't seem to implement playlists. What I want to do is play songs from the media library. This article seems pointless. I've tried getting into the SongCollection class and figure out how to create more of these things. It appears to be impossible (no constructor, can't cast it, can't inherit it). After that I tried getting an object on the process running the background audio agent

Implementing playlists with songs from phone storage [windows phone]

走远了吗. 提交于 2019-12-29 09:03:40
问题 I have been struggling with an issue with my media player windows phone (7) application. The problem is that I can't seem to implement playlists. What I want to do is play songs from the media library. This article seems pointless. I've tried getting into the SongCollection class and figure out how to create more of these things. It appears to be impossible (no constructor, can't cast it, can't inherit it). After that I tried getting an object on the process running the background audio agent

Facebook SDK for .NET - Security Warning Issue

南笙酒味 提交于 2019-12-29 08:22:49
问题 everyone. Today I encounter the following message in my Windows Phone App: Success SECURITY WARNING: Please treat the URL above as you would your password and do not share it with anyone. This happens when my users Login through the Web Browser Control, which get the Login URL from the GetLoginUrl method from the Facebook SDK for .net. This problem is not only happening in my Apps, I've seen users from other Apps having the same problem. Anyone found a solution to this? I'm running this SDK

problem Storing a list of Objects in Isolated Storage

戏子无情 提交于 2019-12-29 07:57:46
问题 I am trying to store a list of objects I created in the isolated storage and be able to display them in a list by auto generating a title for them. So far the code works but once I tombstone the app and start it up all my data is saved except for the list of objects. I think my problem may be with how I initialize the list in the first place, or possibly how I am displaying the names. Any help is appreciated. this code is in my App.xaml.cs: public partial class App : Application { public List

Windows Phone 7 Silverlight binding image from the IsolatedStorage

心不动则不痛 提交于 2019-12-29 07:20:11
问题 I need to find the way to save images to the IsolatedStorage and show them I the Silverlight (XAML) Important: Silverlight have to take image “himself”, I cannot set the image from the code behind I have tried many solutions before. The very last solution is, to bind byte array and convert them to the Image XAML StackPanel Orientation="Horizontal" Margin="0,0,0,20"> <Image Width="110" CacheMode="BitmapCache" Source="{Binding ThumbLocal,Converter={StaticResource imgConverter}}" Margin="12,0,9