windows-phone-7.1

How to override the PhoneAccentBrush in WindowsPhone?

喜欢而已 提交于 2019-12-11 05:59:16
问题 Basically PhoneAccentBrush comes with the SelectedTheme accent color from Phone. But i need always BlueAccentBrush for specific xaml file in the WindowsPhone application. Actually my requirement is, When the ListPicker is in FullMode.. The SelectedItem color in the Popup depends upon the PhoneAccentBrush... If i set the Phone theme as Red.. then SelectedItem color in the Popup will be red.. But i dont like this.. I want always BlueAccentBrush for the SelectedItem in the Popup.. So can anyone

Invalid Cross Exception on Schedule Agent when working on isolated storage

丶灬走出姿态 提交于 2019-12-11 05:09:37
问题 I am working with a Windows Phone Schedule Agent and I am trying to update the picture name after sync the problem is that I am getting an invalid cross exception when on this function at line "BitmapImage bmp = new BitmapImage();" and really don’t understand why. void UpdateSyncPictureName(int AsyncStatus, int AticketID, int AsyncID, int ApictureID, int TsyncStatus = 0, int TsyncID = 0) { string filename = AsyncStatus + "-" + AticketID + "-" + AsyncID + "-" + ApictureID; using

Windows Phone 7 Reminders

半城伤御伤魂 提交于 2019-12-11 04:54:17
问题 Is there any way to set a reminder by Day of the week? For example if I want a reminder every Friday at 10am. What is the best way to accomplish this task? I think I've been over thinking some sort of hours calculation. I'm hoping there is a more simplistic way of doing what I'm looking to do. Update: My question is more about how to figure out how to set the reminder for a specific day even if it isn't today. So lets say today is Wednesday and I want to set a reminder for every Friday (or

Reaching bottom of ScrollViewer - maximum VerticalOffset value is lower than ScrollableHeight

[亡魂溺海] 提交于 2019-12-11 03:47:19
问题 I have problem with detecting when user reached the bottom of a ScrollViewer. My Code: bool atBottom = scrollViewer.VerticalOffset >= scrollViewer.ScrollableHeight; But sometimes when I reached the bottom of Scrollviewer, value of scrollViewer.VerticalOffset is lower than scrollViewer.ScrollableHeight. It depends on items in listbox, but I dont know how. Do you know, where is the problem? 回答1: You shouldn't use this approach to detect reaching the bottom of the scrollviewer. Instead you

ZIndex of pushpins in WP7 bing map control

给你一囗甜甜゛ 提交于 2019-12-11 03:25:45
问题 I have a Bing silverlight map control for Windows phone 7. I am trying to display on top currently selected pushpin. Here is the snippet: <my:Map x:Name="map" Canvas.ZIndex="1" CredentialsProvider="{StaticResource Credentials}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" CopyrightVisibility="Collapsed" LogoVisibility="Collapsed"> <my:MapItemsControl x:Name="Pushpins"> <my:MapItemsControl.ItemTemplate > <DataTemplate> <my:Pushpin Location="{Binding Location}" Canvas.ZIndex="

How to use progressbar in an async webclient call from a viewmodel

僤鯓⒐⒋嵵緔 提交于 2019-12-11 02:19:21
问题 I am trying to use performance progressbar in a WP7 project but I have trouble with the async webclient call. My code is as follows: Update public MainPage() { InitializeComponent(); ................... this.Loaded += new RoutedEventHandler(MainPage_Loaded);} private void MainPage_Loaded(object sender, RoutedEventArgs e) { if (!App.ViewModel.IsDataLoaded) { App.ViewModel.LoadData(); } } And the ViewModel where I implement the LoadData function private bool _showProgressBar = false; public

WP 7.1 app shows thich Black header while running in WP8 emulator

回眸只為那壹抹淺笑 提交于 2019-12-11 02:09:45
问题 i have developed an windows phone app in WP7.1, while running in WP8.0 it is showing a thick black top border, here is my code <phone:PhoneApplicationPage x:Class="MapTestApp7.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com

How do I get access to the item in a ListBox that is being rendered rather than its source data?

风格不统一 提交于 2019-12-11 00:33:45
问题 In a continuation from my question here I tried using the solution provided in the linked answer, however when I give it the image which the ListBox is binding to, it gives me the wrong position, because the Item Template is loading in a source URL rather than the actual image, and it seems the data is null. My Item Template looks like this: <ListBox ItemsSource="{Binding Items}" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" ScrollViewer.VerticalScrollBarVisibility=

Does Windows Phone 7 have a standard Edit/Add/Delete convention?

跟風遠走 提交于 2019-12-10 23:45:29
问题 On the iPhone, there is a standard convention for editing lists. You have the list, above that there is the Edit button and the + button. You click on the Edit button and the list changes slightly notifying the user of change of status. Does Windows Phone 7 have some type of a standard convention for editing lists? It seems every app implements their own. 回答1: There are UI design guidelines published and maintained by Microsoft for Windows Phone development: http://go.microsoft.com/fwlink/

C# InvokeScript gives error 80020006

早过忘川 提交于 2019-12-10 23:37:24
问题 I have the piece of code as follows. webBrowser.IsScriptEnabled = true; webBrowser.InvokeScript("eval", "alert('hey')"); It gives An unknown error has occurred. Error: 80020006 . Could you guide how to rectify this error. 回答1: There is no built-in browser window.alert in Windows Phone, but you can bind one as follows to call WebBrowser.ScriptNotify //inside the page window.alert = function (__msg) { window.external.notify(' + __msg + '); }; // in your C# code this.webBrowser.ScriptNotify +=