windows-phone-7.1

How to trigger datatemplate selector in Windows Phone?

冷暖自知 提交于 2020-01-17 02:22:27
问题 I have a property and depending upon it's state (say A and B) I either show a usercontrol of animation or a image. Now, if the property changes, I want to trigger the datatemplate selector again. On searching, I found that in WPF I could have used DataTemplate.Trigger but it's not available in WP. So, my question is Is their a way to trigger datatemplate selector so when property changes from state A to B, then appropriate usercontrol gets selected. If yes, then please give some example how

ListBox does not highlight generated items(itemsSource) works fine for ListBoxItems aded during design

独自空忆成欢 提交于 2020-01-16 07:18:10
问题 I have a ListBox in a popup. It’s bound to a simple Dictionary. I also have a ItemContainerStyle to theme listbox highlights. If I add ListBoxItems at design time, the selection style works, but the same style does not work when I assign ItemsSource. To troubleshoot I stripped it to barebones, and problem persists. Below is the code I have, Launch it, and click on ShowPopup to open Popup, first you will see items added in design time, and if you click on “Add ItemsSource” it will show run

Twitter Integration In windows Phone 7

天涯浪子 提交于 2020-01-15 05:24:10
问题 I want to get the user information from the twitter and show in windows phone 7. I found some examples for twitter integration. Link 1 Link 2 But in this examples i can only login to the twitter. I can not post or can not get the user information. Can any one provide a sample application or links for windows phone 7 twitter integration. After getting login i try like this: private void btntest_Click(object sender, RoutedEventArgs e) { string newURL = string.Format("https://api.twitter.com/1.0

Access list of installed apps

眉间皱痕 提交于 2020-01-11 10:35:08
问题 I need to get the installed apps of a Windows Phone. Do you know if this is available from the SDK? 回答1: It's possible to list third party applications installed on the phone, but only from your desktop machine (ie. not from an app running on the device) and thus might not be what you are after. Firstly, you need to add a reference to this assembly: c:\Program Files (x86)\Common Files\microsoft shared\Phone Tools\CoreCon\10.0\Bin\Microsoft.Smartdevice.Connectivity.dll Then the following code

The Windows Phone Official Sample cannot even compile : Syndication misssing

别等时光非礼了梦想. 提交于 2020-01-07 02:27:06
问题 I tried to compile http://msdn.microsoft.com/en-us/gg266450 But it says It cannot find System.ServiceModel.Syndication I have 2, 3.5, 4 .NET framework installed. In add reference I can see System.ServiceModel and System.ServiceModel.Web version 2 not anything like 3 or 4 so I wonder how I could add that namespace as mentioned here http://msdn.microsoft.com/en-us/library/system.servicemodel.syndication.syndicationfeed(v=vs.95).aspx This is rather incredible that MS has messed with namespaces

Navigation in windows phone7

别来无恙 提交于 2020-01-06 18:01:30
问题 What kind of navigation is best suited for a home button in an application,Can any please help me,I am newbie? 回答1: Updated Answer based on your comments, First you need to create a button(preferably an Appbar button) and then place this code in the click event handler NavigationService.Navigate(new Uri("/Home.xaml?home=true", UriKind.Relative)); And then in the Home page in the onNavigatedTo event handler place this code string home; NavigationContext.QueryString.TryGetValue("home", out home

Navigation in windows phone7

倾然丶 夕夏残阳落幕 提交于 2020-01-06 18:00:13
问题 What kind of navigation is best suited for a home button in an application,Can any please help me,I am newbie? 回答1: Updated Answer based on your comments, First you need to create a button(preferably an Appbar button) and then place this code in the click event handler NavigationService.Navigate(new Uri("/Home.xaml?home=true", UriKind.Relative)); And then in the Home page in the onNavigatedTo event handler place this code string home; NavigationContext.QueryString.TryGetValue("home", out home

issues with template binding and binding of custom component

浪尽此生 提交于 2020-01-06 03:41:08
问题 I'm new to the world of WP7 and .net programming for that matter and i need help. I have a custom component that has a property that uses template binding. <TextBlock Text="{TemplateBinding Info}" FontSize="20" Grid.Row="1" TextWrapping="{TemplateBinding TextWrap}"/> I defined the dependency properties in the .cs file. Now in my page.xaml i placed the custom component like so, <rounded:RoundedImageView x:Name="pivotItem1" Info="Test bind" BorderBrush="White" ImageSrc="Images/default_service

Operation not permitted on IsolatedStorageFileStream

我与影子孤独终老i 提交于 2020-01-04 02:40:08
问题 I get an error when I open the file after it is created using (var myFileStore = IsolatedStorageFile.GetUserStoreForApplication()) { myFileStore.CreateFile(DateTime.Now.Ticks + ".txt"); } using (var myFileStore = IsolatedStorageFile.GetUserStoreForApplication()) { temp = myFileStore.GetFileNames(); for (int k = 0; k < temp.Length; k++) { IsolatedStorageFileStream file1 = myFileStore.OpenFile(temp[k], FileMode.Open, FileAccess.Read); dataSource.Add(new SampleData() { Name = temp[k], Size =

Compatibility between Windows Phone 7.1 - 7.8 apps and Windows Phone 8 devices

跟風遠走 提交于 2020-01-03 04:27:42
问题 Do Windows Phone 7.1 - 7.8 apps run reasonably well on Windows Phone 8 devices? Is there any reason in terms of compatibility for me to choose one over the other? 回答1: You will find the official documentation about WP 7.1 and WP 8 platform compatibility in the following link: App platform compatibility for Windows Phone Although in general any WP7 app will run without problem in a WP 8 device, this documentation addresses some cases where the behavior may be different. So, if you don't use