windows-phone-8.1

Vertical scrolling for HubSection content

落爺英雄遲暮 提交于 2019-12-11 09:57:41
问题 I am working on Windows Phone 8.1 app (Windows Runtime)and I have created a page with the following layout : <Grid Grid.Row="1" Margin="0, 10, 0, 5" > <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <maps:MapControl x:Name="LocationMap" Grid.Row="0" Height="220" MapServiceToken="..."/> <Hub Grid.Row="1" Margin="0, 25, 0, 0"> <HubSection Header="ABOUT" x:Name="AboutHubSection"> <DataTemplate> <Grid> <Grid.RowDefinitions>

Speech Recognition vs. Voice Commands in Windows phone

此生再无相见时 提交于 2019-12-11 09:54:19
问题 I trying to enable Cortana in my Win8 phone app. Anyway, from MSDN I saw there is speech recognition namespaces as well as voice commands. I couldn't understand correctly what are is the different between them. In addition, i'm running my app using the emulator (and not a real device) and I'm getting the following error "something wend wrong try again in a little bit" when i'm tryng to ask cortana one of my new voice commands. Can someone help me please? 回答1: You can view this link. Specially

How to resolve null bindings on SQLite query?

这一生的挚爱 提交于 2019-12-11 09:54:09
问题 I'm using the SQLite libs and SQLite.Net to query an existing database in my Windows Phone 8.1 project. So far the connection to the db is executing fine but the records being returned are null. I took the usual debugging steps - 1.Checked the binding types and names which map to the names in my db schema. 2.Verified the data exists in the DB. 3.Stepped through the code that queries the database, found that the db bindings are null . (This suggests to me an issue with the field mappings in my

Status request 404 for Json data in wp8.1

孤街浪徒 提交于 2019-12-11 09:53:53
问题 In my application I passed a request api url and when I try to open the link it shows the Json data in the browser. But when I try to deserialize the Json data I got 404 status. Uri geocodeRequest = new Uri(string.Format("https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=17.4271,078.4466&radius=500&type=petrol_bunk&key=MyKey")); HttpClient client = new HttpClient(); HttpResponseMessage response = await client.GetAsync(geocodeRequest); if(response.IsSuccessStatusCode==true)

File not found exception in Windows Phone app

天涯浪子 提交于 2019-12-11 09:45:39
问题 I am developing an app to manipulate XML in Windows Phone 8.1 RT. the code is below private void btnXcute_tapped(object sender, TappedRoutedEventArgs e) { xmlmanipulation(); } private async void xmlmanipulation() { Random rand = new Random(); try { var filex = await ApplicationData.Current.LocalFolder.OpenStreamForReadAsync(@"xmlfile.xml"); XDocument xdoc = XDocument.Load(filex); var word = xdoc.Descendants("word"); int max = word.Count(); txt1.Text = word.FirstOrDefault().Value.ToString();

Why CurrentApp::AppId take so long in Windows Phone 10?

雨燕双飞 提交于 2019-12-11 09:43:28
问题 I have a windows 8 universal project and have a function to get APP ID, The following function works well in Windows Phone 8.1 Platform::Guid appId = Windows::ApplicationModel::Store::CurrentApp::AppId; however, it spent around 40s in Windows Phone 10. From MSDN, only the Metadata is different, May I know is it caused by the metadata? And how to solve it? 回答1: To instead of using AppID , you might use the following code, Windows::ApplicationModel::Package^ package = Windows::ApplicationModel:

What do the numbers mean in the upper right hand side of the emulator?

断了今生、忘了曾经 提交于 2019-12-11 09:42:10
问题 I am very new to WP development and have created my first application. When I run it, I see some data printed vertically on the emulator Screen. What are these, and what do they indicate? attached. 回答1: These are performance counters for your app. Here is the image that describe them. // Display the current frame rate counters. // This is enabled by default in your app Application.Current.Host.Settings.EnableFrameRateCounter = true; These are for monitoring your app. Like frame rates etc.For

Sqlite data reader for Windows phone 8.1

 ̄綄美尐妖づ 提交于 2019-12-11 09:39:33
问题 Currently SQLite for windows phone 8.1 doesn't come with SQLite Data reader, But I need to read data from SQLite DB without knowing the Type in advance , this is because the Table data and schema can change externally (Outside of my application). So is there any way to read the SQLite table data as below var connection = new SQLiteConnection(dbName); connection.Query<T>("Select * from Table") where T is unknown? Alternatively , is it possible to create T dynamically from the Column list

Multiple resolutions on Windows Phone 8.1

你说的曾经没有我的故事 提交于 2019-12-11 09:36:38
问题 I'm moving to WP8.1 and there are different resolutions to be supported so I need to create the correct resources for each scaling factor. Following this guide I've found out that I can use a simple naming conventions and the appropriate image will be automatically loaded without having to manage it from code. What the guide doesn't say, and I can't seem to find it anywhere, is what the original size should be. I need to know which one is the resolution that corresponds to the 100 scaling

CameraCaptureTask missing in Window Phone 8.1 runtime???

自作多情 提交于 2019-12-11 09:35:55
问题 How to show camera app and capture when Chooser tab completed. I used CameraCaptureTask in window phone. http://msdn.microsoft.com/en-us/library/windows/apps/hh394006%28v=vs.105%29.aspx. But it missing in window phone 8.1 runtime. 回答1: In Windows Phone 8.1 XAML apps you can use the FileOpenPicker to select am image either from the picture library, or from the camera. Make sure you have added ".jpg" to the picker file types, otherwise the camera button may not show. Here is sample code: