windows-phone-8

Making a StackPanel scrollable in Windows Phone 8

﹥>﹥吖頭↗ 提交于 2019-12-22 18:27:05
问题 I have a list of controls, put into a stackpanel. These controls are Hubtiles, that are added programatically after a user creates it - a list essentially. I need to make the StackPanel in which they are added, scrollable - what would be the best approach for this? Should i put the stackpanel inside a ScrollView, and then increase the StackPanels height with the actual height of the Hubtile - to make it scrollable, but not so that the user can scroll infinite without something being there. So

Very bad SQLite performance on Windows Phone 8

試著忘記壹切 提交于 2019-12-22 18:12:22
问题 I have a Windows Phone 8 Application that uses a SQLite database. To access the database, I use the WinRT Wrapper by Andy Wigley (source) My database is very simple, only one table: Locations: integer primary key "FieldIndex", varchar "Field1", varchar "Field2", varchar "Field3", varchar "Field4", varchar "Field5", varchar "Field6", int "CategoryID" I also have a index on both "FieldIndex" and "CategoryID". There are in total 4000 entries in the table with the database being 900 kB in size. I

Is it possible to load an external website inside a Cordova mobile app on Windows?

妖精的绣舞 提交于 2019-12-22 17:58:49
问题 I have created the default Cordova application using cordova create ... cordova platform add android cordova platform add windows In the index.html, I added some links to an external websites (not locally installed html files): <a href="http://www.example.com">External Website</a> <a href="http://dev2.prsx.net">External Intranet Site</a> In Android, tapping these links pulls up the site within the Cordova container. This is the behavior I want. On Windows, it pulls up the example.com page in

Set Secondary Tile BackgroundImage from Image in Isolated Storage

限于喜欢 提交于 2019-12-22 17:47:10
问题 This is how I get the stream from an image url: using (var httpClient = new HttpClient()) { response = await httpClient.GetStreamAsync(new Uri(IMAGEURL_HERE, UriKind.Absolute)); } SaveImage(response); And this is how I save it to IsoloatedStorage: private void SaveImage(Stream result) { using (IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication()) { BitmapImage bitmap = new BitmapImage(); bitmap.SetSource(result); var wb = new WriteableBitmap(bitmap); using

I cannot create SQLiteConnection in PCL version of Sqlite.net on WP8

人走茶凉 提交于 2019-12-22 17:36:14
问题 I'm using a PCL version of Sqlite.net from https://github.com/oysteinkrog/SQLite.Net-PCL This code below doesn't work for some reasons on WP8: var sqliteFilename = Path.Combine(ApplicationData.Current.LocalFolder.Path, "MyDB.db3"); var db = new SQLiteConnection(new SQLitePlatformWP8CSharp(), sqliteFilename); And I am receiving this error: An exception of type 'SQLite.Net.SQLiteException' occurred in SQLite.Net.DLL but was not handled in user code Additional information: Could not open

How To Create Chart/Graph For Windows Phone 8 Application? [closed]

核能气质少年 提交于 2019-12-22 17:06:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I would like to create a Graph something like this on a Windows Phone 8 Application . Chart/Graph http://img837.imageshack.us/img837/5816/chartgraph.png I'm aware that there are APIs and references available for WP8 but those are paid . I'm looking for a free alternative. If anyone would point me in the right

Windows Phone Pivot Displaying above where it should

爱⌒轻易说出口 提交于 2019-12-22 14:55:26
问题 I have the following xaml <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <StackPanel Orientation="Horizontal"> <Frame Height="Auto" Width="200" Background="Green" /> </StackPanel> <Pivot Grid.Row="1" Background="Red" Width="200" VerticalAlignment="Stretch" Title="Pivot Title"> <PivotItem Header="Blah"> <TextBlock Text="Pivot content"/> </PivotItem> </Pivot> </Grid> Which produces the following layout The issue is that the pivot is

Creating a build on windows phone 8

落花浮王杯 提交于 2019-12-22 12:59:27
问题 I want to make a build (like APK) of my windows phone 8 app for testing. How can i do so.? 回答1: When you Run the Windows Phone 8 app in VS 2012, an XAP file is created in the Bin folder of your app. Its similar to the apk file of Android app. But you cannot directly install this in the phone. You need a developer account to developer unlock the device for testing. You can test the app in Emulator any way. You can also make use of the Beta testing feature of the Windows Phone marketplace, but

pass photochosen image from one page to another C#

青春壹個敷衍的年華 提交于 2019-12-22 12:21:04
问题 I know how to pass data through NavigationService.Navigate(new Uri("/Second.xaml?msg=mesage", UriKind.Relative)); The question is, how can I pass an image selected from the library to another page? To select an image, I use the PhotoChooserTask and in the event where it is completed I have this: private void photoChooserTask_Completed(object sender, PhotoResult e) { if (e.ChosenPhoto != null) { BitmapImage image = new BitmapImage(); image.SetSource(e.ChosenPhoto); this.img.Source = image; } }

GeocodeQuery - GeoCoordinate property

时光总嘲笑我的痴心妄想 提交于 2019-12-22 12:17:11
问题 Can somebody explain me difference between these pieces of code? What is the role of GeoCoordinate property in GeocodeQuery? #1 - this works only with internet connection GeocodeQuery geocodeQuery = new GeocodeQuery(); geocodeQuery.GeoCoordinate = new GeoCoordinate(); geocodeQuery.SearchTerm = "London"; IList<MapLocation> locations = await geocodeQuery.GetMapLocationsAsync(); #2 - this works without internet connection // my location Geolocator geolocator = new Geolocator(); geolocator