windows-phone-7

Scroll to bottom of listbox wp7

ⅰ亾dé卋堺 提交于 2020-01-06 03:06:26
问题 I have a listbox with more than 20 items. How I can scroll to bottom of it? I tried the ScrollIntoView method, but no success: listmy.SelectedIndex = listmy.Items.Count;// listmy.Items.Count - 1; listmy.ScrollIntoView(listmy.SelectedIndex); listmy.UpdateLayout(); 回答1: The ScrollIntoView method expects an object (the item to scroll to), but you are passing in the numeric index of the selected item. This will work: void MainPage_Loaded(object sender, RoutedEventArgs e) { listmy.SelectedIndex =

Scroll to bottom of listbox wp7

孤人 提交于 2020-01-06 03:06:15
问题 I have a listbox with more than 20 items. How I can scroll to bottom of it? I tried the ScrollIntoView method, but no success: listmy.SelectedIndex = listmy.Items.Count;// listmy.Items.Count - 1; listmy.ScrollIntoView(listmy.SelectedIndex); listmy.UpdateLayout(); 回答1: The ScrollIntoView method expects an object (the item to scroll to), but you are passing in the numeric index of the selected item. This will work: void MainPage_Loaded(object sender, RoutedEventArgs e) { listmy.SelectedIndex =

Windows Phone Toolkit How to get full Popup ListPicker?

核能气质少年 提交于 2020-01-06 02:22:24
问题 I am wondering how do you make it so the list picker goes to a separate screen when clicked on? I tried <toolkit:ListPicker Margin="155,109,179,0" VerticalAlignment="Top" ItemTemplate="{StaticResource PriceTypesTemplate1}" ItemsSource="{Binding PriceTypes}" FullModeItemTemplate="{StaticResource PickerFullModeItemTemplate}"/> But that crashes the app saying it can't find PickerFullModeItemTemplate 回答1: Did you provide a ressource named PickerFullModeItemTemplate ? Your code specify two

How can you update location data in Windows Phone in the background?

我只是一个虾纸丫 提交于 2020-01-05 10:25:24
问题 I just read that while Windows Phone 7.5 background tasks can poll for a location, they don't actually poll real-time from the GPS but rather the location API calls return a system-cached position that's only updated once every fifteen minutes. That limitation of course completely invalidates any attempt at having navigation run in the background as you can get pretty damn far off-track in fifteen minutes, let alone that a background task can only run once every thirty minutes or so! That

Texture2d.SaveAsPng() Memory Leak

白昼怎懂夜的黑 提交于 2020-01-05 10:18:47
问题 I have found strange issue with method Texture2d.SaveAsPng() Every call 1.5mb disapear. I use this method to save texture to isolated storage public static void SaveTextureToISF(string fileName, Texture2D texture) { using (IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication()) { using ( IsolatedStorageFileStream fileStream = new IsolatedStorageFileStream(fileName, FileMode.Create, file) ) { texture.SaveAsPng(fileStream, texture.Width, texture.Height); fileStream.Close();

Windows Phone 7 and HTML5?

纵然是瞬间 提交于 2020-01-05 09:34:51
问题 I am interesting: whether Windows Phone 7 will support HTML5 web sites or not? As I know IE on PC supports it only with Google's plugin :D What do you know about Windows Phone 7 internet browser "features"? Thank you!;) 回答1: From like 10 press releases in aug: Microsoft says that there is no plan currently to bring HTML 5 support to Internet Explorer Mobile. The mobile browser, which has been re-written for the next-generation operating system, is based in large part off of the desktop

How to turn on/off Bluetooth in Windows Phone 7 in my app?

▼魔方 西西 提交于 2020-01-05 08:58:17
问题 I still have not figured out how to turn on and turn off Blurtooth can within my application. Or some information about Bluetooth at this time ? 回答1: There is no API for Bluetooth functionality. Apparently it's not coming in the Mango update either. 来源: https://stackoverflow.com/questions/6093710/how-to-turn-on-off-bluetooth-in-windows-phone-7-in-my-app

How to change Directory Name and file name in IsolatedStorage

允我心安 提交于 2020-01-05 08:15:00
问题 Say I have created a few Directories in IsolatedStorage. Here are my problems: 1) How do I change the name of the Directory in IsoloatedStorage? 2) What happens to the files stored in the directory which I have change the name. 3) How do I change the file name that stored in Isolatedstorage Example : MyCity.txt to FunCity.txt Thanks 回答1: You'll have to copy the files and write them again with a new name as described in this post. You can then delete the old file/directory using the DeleteFile

jquery mobile on Windows phone 7 images not loading

梦想与她 提交于 2020-01-05 07:54:08
问题 <link rel="stylesheet" href="scripts/jquery.mobile-1.0.min.css" /> <script type="text/javascript" src="scripts/jquery-1.7.1.min.js" ></script> <script type="text/javascript" src="scripts/jquery.mobile-1.0.min.js" ></script> <script type="text/javascript" charset="utf-8" src="scripts/phonegap-1.3.0.js"></script> images address: images/ajax-loader.png I'm using phonegap and jquery trying to run this simple app i wrote on windows phone 7. it has no problem running on chrome /ios (images

Wp7 Camera Button Event

淺唱寂寞╮ 提交于 2020-01-05 07:43:28
问题 Within a Windows Phone 7 app, is it possible to capture the hardware camera button pressed event in code? Right now when I press the camera button nothing happens and I can't figure out how to hook up to the event. 回答1: Yes you can. Check this link. This is an example of the events: // The event is fired when the shutter button receives a half press. CameraButtons.ShutterKeyHalfPressed += OnButtonHalfPress; // The event is fired when the shutter button receives a full press. CameraButtons